Unnamed: 0
int64
0
535k
source
stringlengths
50
89.8k
target
stringlengths
23
37.7k
5,000
CWE-000 t_mapfile * map_get_fat_header ( t_mapfile * map ) { map -> fat_subtype = get_fat_subtype ( map ) ; if ( map -> fat_subtype == B32 || map -> fat_subtype == B64 ) { <S2SV_StartBug> if ( map -> file_size < sizeof ( t_fh ) ) <S2SV_EndBug> { ft_fdprint ( 2 , "File<S2SV_blank>%s<S2SV_blank>is<S2SV_blank>corrupted<S2...
<S2SV_ModStart> sizeof ( t_fh ) + sizeof ( uint32_t
5,001
CWE-000 RmFile * rm_file_new ( struct RmSession * session , const char * path , RmStat * statp , RmLintType type , bool is_ppath , unsigned path_index , short depth ) { RmCfg * cfg = session -> cfg ; RmOff actual_file_size = statp -> st_size ; RmOff start_seek = 0 ; if ( actual_file_size != 0 ) { if ( cfg -> use_absolu...
<S2SV_ModStart> skip_end_factor ; } if ( ( self -> file_size - start_seek ) == 0 && actual_file_size != 0 ) { return NULL ; }
5,002
CWE-000 void SCC_Init ( void ) { SCC_Reset ( ) ; oldTBE = 0 ; oldStatus = 0 ; D ( bug ( "SCC:<S2SV_blank>interface<S2SV_blank>initialized\\n" ) ) ; if ( ! ConfigureParams . RS232 . bEnableSccB || ! ConfigureParams . RS232 . sSccBFileName [ 0 ] ) { handle = - 1 ; return ; } handle = open ( ConfigureParams . RS232 . sScc...
<S2SV_ModStart> O_RDWR | O_NDELAY <S2SV_ModEnd> ) ; if
5,003
CWE-000 int handlehandshakeframes ( time_t tvsec , uint8_t * mac_ap , int handshake ) { apl_t * zeiger ; int c ; zeiger = beaconliste ; for ( c = 0 ; c < aplistesize ; c ++ ) { if ( memcmp ( mac_ap , zeiger -> addr_ap . addr , 6 ) == 0 ) { zeiger -> tv_sec = tvsec ; zeiger -> handshake |= handshake ; <S2SV_StartBug> qs...
<S2SV_ModStart> , APL_SIZE , sortaplist_by_time <S2SV_ModEnd> ) ; if
5,004
CWE-000 void DeleteObject ( void * this ) { <S2SV_StartBug> StringDestruct ( this ) ; <S2SV_EndBug> free ( ( ( Object * ) this ) -> pVFTable ) ; free ( this ) ; this = NULL ; }
<S2SV_ModStart> this ) { ObjectDestruct <S2SV_ModEnd> ( this )
5,005
CWE-000 void gal_fits_img_info ( fitsfile * fptr , int * type , size_t * ndim , size_t * * dsize , char * * name , char * * unit ) { char * * str ; size_t i , dsize_key = 1 ; int bitpix , status = 0 , naxis ; double bzero = NAN , bscale = NAN ; gal_data_t * key , * keysll = NULL ; long naxes [ GAL_FITS_MAX_NDIM ] ; if ...
<S2SV_ModStart> * str ; * str = NULL ; <S2SV_ModStart> * str ; * str = NULL ;
5,006
CWE-000 static void update_crc ( struct rar5 * rar , const uint8_t * p , size_t to_read ) { int verify_crc ; if ( rar -> skip_mode ) { # if defined CHECK_CRC_ON_SOLID_SKIP verify_crc = 1 ; # else verify_crc = 0 ; # endif } else verify_crc = 1 ; if ( verify_crc ) { if ( rar -> file . stored_crc32 > 0 ) { rar -> file . c...
<S2SV_ModStart> += to_read ; <S2SV_ModEnd> } if (
5,007
CWE-000 static int xgene_enet_tx_completion ( struct xgene_enet_desc_ring * cp_ring , struct xgene_enet_raw_desc * raw_desc ) { struct xgene_enet_pdata * pdata = netdev_priv ( cp_ring -> ndev ) ; struct sk_buff * skb ; struct device * dev ; skb_frag_t * frag ; dma_addr_t * frag_dma_addr ; u16 skb_index ; <S2SV_StartBug...
<S2SV_ModStart> skb_index ; u8 mss_index ; u8 <S2SV_ModStart> ; int i <S2SV_ModEnd> ; skb_index = <S2SV_ModStart> ) ) { cp_ring -> tx_dropped ++ ; cp_ring -> tx_errors ++ ; } if ( likely ( skb ) ) { dev_kfree_skb_any ( skb ) ; } else { netdev_err <S2SV_ModEnd> ( cp_ring -> <S2SV_ModStart> cp_ring -> ndev <S2SV_ModEnd> ...
5,008
CWE-000 <S2SV_StartBug> const char * sunlight_status_string ( const struct predict_orbit * orbit , const struct predict_observation * obs ) <S2SV_EndBug> { if ( obs -> visible ) { return SUNLIGHT_BASESTRING "visible<S2SV_blank><S2SV_blank><S2SV_blank><S2SV_blank>" ; } else if ( ! ( orbit -> eclipsed ) ) { return SUNLIG...
<S2SV_ModStart> ( const struct predict_position <S2SV_ModEnd> * orbit ,
5,009
CWE-000 void test_tx_cmd_a2dof_r ( void ) { uint8_t test_cmdCode = 0 , test_cmdType = 0 ; uint16_t test_len = 0 ; uint8_t slave = 17 , controller = CTRL_OPEN ; int16_t pwm = - 1234 , current = 12500 ; int16_t res_pwm = 0 , res_current = 0 ; uint16_t numb = 0 ; uint8_t outputBuf [ 48 ] ; uint16_t index = 0 ; <S2SV_Start...
<S2SV_ModStart> = 0 ; <S2SV_ModEnd> tx_cmd_ankle2dof_r ( outputBuf
5,010
CWE-000 <S2SV_StartBug> const char * get_libname ( const char * base_libname ) <S2SV_EndBug> { DIR * dp ; struct dirent * dirp ; int index = 0 ; char * libname_path = NULL ; char current_test_path [ LARGEBUF ] ; for ( index = 0 ; ( search_paths [ index ] != NULL ) && ( libname_path == NULL ) ; index ++ ) { memset ( cur...
<S2SV_ModStart> <S2SV_null> <S2SV_null> <S2SV_null> <S2SV_ModEnd> char * get_libname
5,011
CWE-000 int zephir_update_static_property_array_multi_ce ( zend_class_entry * ce , const char * property , zend_uint property_length , zval * value , const char * types , int types_length , int types_count , ... ) { va_list ap ; zval tmp_arr ; int separated = 0 ; ZVAL_UNDEF ( & tmp_arr ) ; zephir_read_static_property_c...
<S2SV_ModStart> separated ) { zend_update_static_property <S2SV_ModEnd> ( ce ,
5,012
CWE-000 int parse_and ( t_lexer * lex ) { t_lexer * tmp ; tmp = lex ; if ( tmp -> token_id == SAND && ! LNEXT ) return ( 1 ) ; <S2SV_StartBug> else if ( tmp -> token_id == PIPE && LNEXT && ! LDNEXT <S2SV_EndBug> && is_full_spaces ( LNEXT -> content ) ) return ( 1 ) ; else if ( tmp -> token_id == SAND && LNEXT && tmp ->...
<S2SV_ModStart> -> token_id == SAND && LNEXT && tmp -> prev && tmp -> prev -> token_id == GREAT && LNEXT -> token_id == 14 ) return ( 0 ) ; else if ( tmp -> token_id == AND <S2SV_ModEnd> && LNEXT &&
5,013
CWE-000 static void set_beams ( struct SYMBOL * sym ) { struct SYSTEM * sy ; struct SYMBOL * s , * t , * g , * s_opp ; int n , m , beam , laststem , mid_p ; beam = 0 ; laststem = - 1 ; s_opp = NULL ; sy = cursys ; for ( s = sym ; s ; s = s -> next ) { if ( s -> abc_type != ABC_T_NOTE ) { switch ( s -> type ) { default ...
<S2SV_ModStart> pu + pd > <S2SV_ModEnd> mid_p ) {
5,014
CWE-000 int replica_update_ruv ( Replica * r , const CSN * updated_csn , const char * replica_purl ) { char csn_str [ CSN_STRSIZE ] ; int rc = RUV_SUCCESS ; PR_ASSERT ( NULL != r ) ; PR_ASSERT ( NULL != updated_csn ) ; # ifdef DEBUG slapi_log_err ( SLAPI_LOG_REPL , repl_plugin_name , "replica_update_ruv:<S2SV_blank>csn...
<S2SV_ModStart> , replica_purl , <S2SV_ModEnd> r -> repl_rid
5,015
CWE-000 int test_string_substr ( ) { allocator_t * allocator = allocator_get_default_alloc ( ) ; String * string , * pstr , * substr ; int ret ; char * test = "&rsv//_sug1<S2SV_blank>=<S2SV_blank>107&rsv_sug7<S2SV_blank>=<S2SV_blank>100&rsv_sug2<S2SV_blank>=<S2SV_blank>0&prefixsug<S2SV_blank>=<S2SV_blank>ffmpeg%2520hls...
<S2SV_ModStart> value ) ; object_destroy ( string ) ; object_destroy ( pstr ) ; object_destroy ( substr ) ;
5,016
CWE-000 v_U8_t vos_pkt_get_proto_type ( void * pskb , v_U8_t tracking_map ) { v_U8_t pkt_proto_type = 0 ; v_U16_t ether_type ; v_U16_t SPort ; v_U16_t DPort ; struct sk_buff * skb = NULL ; if ( NULL == pskb ) { return pkt_proto_type ; } else { skb = ( struct sk_buff * ) pskb ; } if ( VOS_PKT_PROTO_TYPE_EAPOL & tracking...
<S2SV_ModStart> } if ( VOS_PKT_PROTO_TYPE_ARP & tracking_map ) { ether_type = ( v_U16_t ) ( * ( v_U16_t * ) ( skb -> data + VOS_PKT_PROT_ETH_TYPE_OFFSET ) ) ; if ( VOS_PKT_PROT_ARP_ETH_TYPE == VOS_SWAP_U16 ( ether_type ) ) { pkt_proto_type |= VOS_PKT_PROTO_TYPE_ARP ; } } if (
5,017
CWE-000 int mlx5_init_cq_table ( struct mlx5_core_dev * dev ) { struct mlx5_cq_table * table = & dev -> priv . cq_table ; int err ; <S2SV_StartBug> int x ; <S2SV_EndBug> spin_lock_init ( & table -> lock ) ; for ( x = 0 ; x != MLX5_CQ_LINEAR_ARRAY_SIZE ; x ++ ) spin_lock_init ( & table -> linear_array [ x ] . lock ) ; I...
<S2SV_ModStart> ; int x ; memset ( table , 0 , sizeof ( * table ) )
5,018
CWE-000 int xta_acquired_xa_resource_init ( xta_acquired_xa_resource_t * this , const char * name , const char * open_info ) { enum Exception { NULL_OBJECT , OBJ_CORRUPTED , INVALID_OPTION1 , INVALID_OPTION2 , G_STRDUP_ERROR , NONE } excp ; int ret_cod = LIXA_RC_INTERNAL_ERROR ; LIXA_TRACE ( ( "xta_acquired_xa_resource...
<S2SV_ModStart> open_info [ MAXINFOSIZE - 1
5,019
CWE-000 static int msm_eeprom_config ( struct msm_eeprom_ctrl_t * e_ctrl , void __user * argp ) { struct msm_eeprom_cfg_data * cdata = ( struct msm_eeprom_cfg_data * ) argp ; int rc = 0 ; <S2SV_StartBug> CDBG ( "%s<S2SV_blank>E\\n" , __func__ ) ; <S2SV_EndBug> switch ( cdata -> cfgtype ) { case CFG_EEPROM_GET_INFO : CD...
<S2SV_ModStart> = 0 ; size_t length = 0 ; <S2SV_ModStart> -> is_supported ; length = strlen ( e_ctrl -> eboard_info -> eeprom_name ) + 1 ; if ( length > MAX_EEPROM_NAME ) { pr_err ( "%s:%d<S2SV_blank>invalid<S2SV_blank>eeprom<S2SV_blank>name<S2SV_blank>length<S2SV_blank>%d\\n" , __func__ , __LINE__ , ( int ) length ) ;...
5,020
CWE-000 static int adjust ( double * val ) { int i ; i = 0 ; if ( * val >= 10 ) { while ( * val >= 10 ) { * val /= 10 ; i ++ ; } <S2SV_StartBug> i ++ ; <S2SV_EndBug> } else if ( * val < 1 ) { while ( * val < 1 ) { * val *= 10 ; i -- ; } <S2SV_StartBug> i -- ; <S2SV_EndBug> } return ( i ) ; }
<S2SV_ModStart> ++ ; } <S2SV_ModEnd> } else if <S2SV_ModStart> -- ; } <S2SV_ModEnd> } return (
5,021
CWE-000 void c_term_mv_down ( t_comp * c ) { int i ; int value ; i = 0 ; <S2SV_StartBug> if ( c -> c_sy > c -> win_y ) <S2SV_EndBug> value = c -> m_size ; else value = c -> c_line ; while ( i < value ) { ft_putstr ( tgetstr ( "do" , NULL ) ) ; ft_putstr ( tgetstr ( "cd" , NULL ) ) ; i ++ ; } i = 0 ; <S2SV_StartBug> if ...
<S2SV_ModStart> ( c -> c_line <S2SV_ModEnd> > c -> <S2SV_ModStart> ( c -> c_line <S2SV_ModEnd> > c ->
5,022
CWE-000 static RealF _add_annuals ( const GrpIndex rg , const SppIndex sp , const RealF lastyear_relsize ) { IntU i , num_est ; RealF viable_seeds ; float var ; GroupType * g ; SpeciesType * s ; g = RGroup [ rg ] ; s = Species [ sp ] ; _add_annual_seedprod ( sp , lastyear_relsize ) ; viable_seeds = ( g -> regen_ok ) ? ...
<S2SV_ModStart> sp ] -> beta <S2SV_ModEnd> ) ; num_est
5,023
CWE-000 void ntreeGPUMaterialNodes ( bNodeTree * localtree , GPUMaterial * mat , bool * has_surface_output , bool * has_volume_output ) { bNode * output = ntreeShaderOutputNode ( localtree , SHD_OUTPUT_EEVEE ) ; <S2SV_StartBug> bNodeTreeExec * exec ; <S2SV_EndBug> ntree_shader_relink_displacement ( localtree , output )...
<S2SV_ModStart> bNodeTreeExec * exec ; ntree_shader_groups_expand_inputs ( localtree )
5,024
CWE-000 static void create_base_gui ( appdata_s * ad ) { ad -> win = elm_win_util_standard_add ( PACKAGE , PACKAGE ) ; elm_win_autodel_set ( ad -> win , EINA_TRUE ) ; ad -> interval = 5 ; ad -> xml . writeNextWpt = 0 ; ad -> xml . docWpt = NULL ; ad -> tracker . maxSpeed = 0 ; ad -> tracker . distance = 0 ; <S2SV_Start...
<S2SV_ModStart> maxAcceleration = 15 <S2SV_ModEnd> ; if ( <S2SV_ModStart> ELM_MAP_ZOOM_MODE_MANUAL ) ; elm_map_zoom_set ( ad -> map , 12 ) ; <S2SV_ModStart> ad -> sliderInterval <S2SV_ModEnd> ) ; btn_exit
5,025
CWE-000 AST * re2ast ( const char * re ) { <S2SV_StartBug> RE = re ; <S2SV_EndBug> return parse_re ( ) ; }
<S2SV_ModStart> re ) { set_re ( re ) <S2SV_ModEnd> ; return parse_re
5,026
CWE-000 int bnxt_re_query_port ( struct ib_device * ibdev , u8 port_num , struct ib_port_attr * port_attr ) { struct bnxt_re_dev * rdev = to_bnxt_re_dev ( ibdev , ibdev ) ; struct bnxt_qplib_dev_attr * dev_attr = & rdev -> dev_attr ; memset ( port_attr , 0 , sizeof ( * port_attr ) ) ; if ( netif_running ( rdev -> netde...
<S2SV_ModStart> = 0 ; <S2SV_ModEnd> port_attr -> active_speed <S2SV_ModStart> port_attr -> active_speed = rdev -> active_speed ; <S2SV_ModEnd> port_attr -> active_width <S2SV_ModStart> port_attr -> active_width = rdev -> active_width <S2SV_ModEnd> ; return 0
5,027
CWE-000 <S2SV_StartBug> inline void NEG_Overflow_Flag ( uint8_t u8Result_ ) <S2SV_EndBug> { stCPU . pstRAM -> stRegisters . SREG . V = ( u8Result_ == 0x80 ) ; }
<S2SV_ModStart> <S2SV_null> <S2SV_null> <S2SV_null> static <S2SV_ModEnd> void NEG_Overflow_Flag (
5,028
CWE-000 static int fib_nl_fill_rule ( struct sk_buff * skb , struct fib_rule * rule , u32 pid , u32 seq , int type , int flags , struct fib_rules_ops * ops ) { struct nlmsghdr * nlh ; struct fib_rule_hdr * frh ; nlh = nlmsg_put ( skb , pid , seq , type , sizeof ( * frh ) , flags ) ; if ( nlh == NULL ) return - EMSGSIZE...
<S2SV_ModStart> uid_range ) ) || ( fib_rule_port_range_set ( & rule -> sport_range ) && nla_put_port_range ( skb , FRA_SPORT_RANGE , & rule -> sport_range ) ) || ( fib_rule_port_range_set ( & rule -> dport_range ) && nla_put_port_range ( skb , FRA_DPORT_RANGE , & rule -> dport_range ) ) || ( rule -> ip_proto && nla_put...
5,029
CWE-000 static Bool msStartFlippingPixmapTracking ( RRCrtcPtr crtc , DrawablePtr src , PixmapPtr slave_dst1 , PixmapPtr slave_dst2 , int x , int y , int dst_x , int dst_y , Rotation rotation ) { ScreenPtr pScreen = src -> pScreen ; modesettingPtr ms = modesettingPTR ( xf86ScreenToScrn ( pScreen ) ) ; <S2SV_StartBug> ms...
<S2SV_ModStart> drmmode , slave_dst1 -> master_pixmap <S2SV_ModStart> drmmode , slave_dst2 -> master_pixmap
5,030
CWE-000 static herr_t H5L_delete_cb ( H5G_loc_t * grp_loc , const char * name , const H5O_link_t * lnk , H5G_loc_t H5_ATTR_UNUSED * obj_loc , void * _udata , H5G_own_loc_t * own_loc ) { H5L_trav_rm_t * udata = ( H5L_trav_rm_t * ) _udata ; herr_t ret_value = SUCCEED ; FUNC_ENTER_NOAPI_NOINIT if ( grp_loc == NULL ) HGOTO...
<S2SV_ModStart> , FAIL , "callback<S2SV_blank>link<S2SV_blank>pointer<S2SV_blank>is<S2SV_blank>NULL<S2SV_blank>(specified<S2SV_blank>link<S2SV_blank>may<S2SV_blank>be<S2SV_blank>\'.\'<S2SV_blank>or<S2SV_blank>not<S2SV_blank>exist)" <S2SV_ModEnd> ) if (
5,031
CWE-000 char * concString ( char * s1 , char * s2 ) { char * newString = ( char * ) malloc ( 100 ) ; int i ; for ( i = 0 ; s1 [ i ] != '\\0' ; i ++ ) { newString [ i ] = s1 [ i ] ; } <S2SV_StartBug> for ( int j = 0 ; s2 [ j ] != '\\0' ; j ++ , i ++ ) { <S2SV_EndBug> newString [ i ] = s2 [ j ] ; } newString [ i ] = '\\0...
<S2SV_ModStart> ] ; } newString [ i ] = '/' ; i ++ ;
5,032
CWE-000 void ApplyFirmware ( ) { system ( "unzip<S2SV_blank>-o<S2SV_blank>remote_monitoring.zip<S2SV_blank>-d<S2SV_blank>cmake/samples/remote_monitoring/" ) ; <S2SV_StartBug> system ( "sudo<S2SV_blank>chmod<S2SV_blank>+x<S2SV_blank>firmwareupdate.sh" ) ; <S2SV_EndBug> system ( "sudo<S2SV_blank>chmod<S2SV_blank>+x<S2SV_...
<S2SV_ModStart> ; system ( "sudo<S2SV_blank>mv<S2SV_blank>cmake/samples/remote_monitoring/firmwarereboot.sh<S2SV_blank>." ) ; system ( "sudo<S2SV_blank>chmod<S2SV_blank>+x<S2SV_blank>firmwarereboot.sh" ) ; system ( "sed<S2SV_blank>-i<S2SV_blank>\'s/\\r//\'<S2SV_blank>firmwarereboot.sh" <S2SV_ModEnd> ) ; system <S2SV_Mo...
5,033
CWE-000 BAT * BATsample ( BAT * b , BUN n ) { BAT * bn ; BUN cnt , slen ; BUN rescnt ; struct oidtreenode * tree = NULL ; mtwist * mt_rng ; unsigned int range ; <S2SV_StartBug> dbl random ; <S2SV_EndBug> BATcheck ( b , "BATsample" , NULL ) ; ERRORcheck ( n > BUN_MAX , "BATsample:<S2SV_blank>sample<S2SV_blank>size<S2SV_...
<S2SV_ModStart> int range ; <S2SV_ModEnd> BATcheck ( b
5,034
CWE-000 static void py_byref ( lua_State * L ) { <S2SV_StartBug> python_setnumber ( L , PY_OBJECT_BY_REFERENCE , 1 ) ; <S2SV_EndBug> py_object_index_get ( L ) ; <S2SV_StartBug> python_setnumber ( L , PY_OBJECT_BY_REFERENCE , 0 ) ; <S2SV_EndBug> }
<S2SV_ModStart> L ) { int stacked = is_byref ( L ) ; if ( ! stacked ) set_byref ( L <S2SV_ModEnd> , 1 ) <S2SV_ModStart> L ) ; if ( ! stacked ) set_byref ( L <S2SV_ModEnd> , 0 )
5,035
CWE-000 static void <S2SV_StartBug> record_btrace_insn_history ( struct target_ops * self , int size , int flags ) <S2SV_EndBug> { struct btrace_thread_info * btinfo ; struct btrace_insn_history * history ; struct btrace_insn_iterator begin , end ; struct ui_out * uiout ; unsigned int context , covered ; uiout = curren...
<S2SV_ModStart> int size , gdb_disassembly_flags <S2SV_ModEnd> flags ) { <S2SV_ModStart> ( "insn-history<S2SV_blank>(0x%x):<S2SV_blank>%d" , ( unsigned ) <S2SV_ModStart> ( "insn-history<S2SV_blank>(0x%x):<S2SV_blank>%d,<S2SV_blank>prev:<S2SV_blank>[%u;<S2SV_blank>%u)" , ( unsigned )
5,036
CWE-000 static int ov7740_set_ctrl ( struct v4l2_ctrl * ctrl ) { struct ov7740 * ov7740 = container_of ( ctrl -> handler , struct ov7740 , ctrl_handler ) ; struct i2c_client * client = v4l2_get_subdevdata ( & ov7740 -> subdev ) ; struct regmap * regmap = ov7740 -> regmap ; int ret ; u8 val = 0 ; <S2SV_StartBug> if ( pm...
<S2SV_ModStart> ; if ( ! <S2SV_ModStart> -> dev ) <S2SV_ModEnd> ) return 0
5,037
CWE-000 GLvoid glColorPointer ( GLint size , GLenum type , GLsizei stride , const GLvoid * ptr ) <S2SV_StartBug> { <S2SV_EndBug> vt_attrib_pointer [ WES_ACOLOR0 ] . isenabled = GL_TRUE ; vt_attrib_pointer [ WES_ACOLOR0 ] . size = size ; vt_attrib_pointer [ WES_ACOLOR0 ] . type = type ; vt_attrib_pointer [ WES_ACOLOR0 ]...
<S2SV_ModStart> ptr ) { wes_vertbuffer_flush ( ) ; <S2SV_ModStart> , type , GL_TRUE <S2SV_ModEnd> , stride ,
5,038
CWE-000 static void pthreads_prepared_entry_static_members ( pthreads_object_t * thread , zend_class_entry * candidate , zend_class_entry * prepared ) { if ( candidate -> default_static_members_count ) { int i ; if ( prepared -> default_static_members_table != NULL ) { efree ( prepared -> default_static_members_table )...
<S2SV_ModStart> . ce = pthreads_prepared_entry_internal <S2SV_ModEnd> ( thread , <S2SV_ModStart> zc -> ce , 0
5,039
CWE-000 static FLAC__StreamDecoderWriteStatus write_callback ( const FLAC__StreamDecoder * decoder , const FLAC__Frame * frame , const FLAC__int32 * const ibuffer [ ] , void * obuffer ) { FLAC__uint64 i , ch ; unsigned channels = frame -> header . channels ; ( void ) decoder ; switch ( round_to_bytes ( frame -> header ...
<S2SV_ModStart> [ i ] + 0x80
5,040
CWE-000 void Draw ( ESContext * esContext ) { UserData * userData = esContext -> userData ; GLfloat vVertices [ ] = { - 1.0f , 1.0f , 0.0f , 0.0f , 0.0f , - 1.0f , - 1.0f , 0.0f , 0.0f , 1.0f , 1.0f , - 1.0f , 0.0f , 1.0f , 1.0f , 1.0f , 1.0f , 0.0f , 1.0f , 0.0f } ; GLushort indices [ ] = { 0 , 1 , 2 , 0 , 2 , 3 } ; g...
<S2SV_ModStart> 0 ) ; imwLoc = glGetUniformLocation ( userData -> programObject , "uimage_width" ) ; if ( - 1 == imwLoc ) { fprintf ( stderr , "warning<S2SV_blank>imwLoc<S2SV_blank>error\\n" ) ; check_error ( "war<S2SV_blank>imwLoc" ) ; } else { glUniform1i ( imwLoc , im_width ) ; check_error ( "war<S2SV_blank>after<S2...
5,041
CWE-000 int reserve_memtype ( u64 start , u64 end , enum page_cache_mode req_type , enum page_cache_mode * new_type ) { struct memtype * new ; enum page_cache_mode actual_type ; int is_range_ram ; int err = 0 ; start = sanitize_phys ( start ) ; end = sanitize_phys ( end ) ; <S2SV_StartBug> BUG_ON ( start >= end ) ; <S2...
<S2SV_ModStart> end ) ; if <S2SV_ModEnd> ( start >= <S2SV_ModStart> >= end ) { WARN ( 1 , "%s<S2SV_blank>failed:<S2SV_blank>[mem<S2SV_blank>%#010Lx-%#010Lx],<S2SV_blank>req<S2SV_blank>%s\\n" , __func__ , start , end - 1 , cattr_name ( req_type ) ) ; return - EINVAL ; } <S2SV_ModEnd> if ( !
5,042
CWE-000 void ugl_start ( struct ifnet * ifp ) { struct ugl_softc * sc = ifp -> if_softc ; struct mbuf * m_head = NULL ; if ( usbd_is_dying ( sc -> sc_udev ) ) return ; DPRINTFN ( 10 , ( "%s:<S2SV_blank>%s:<S2SV_blank>enter\\n" , sc -> sc_dev . dv_xname , __func__ ) ) ; if ( ifq_is_oactive ( & ifp -> if_snd ) ) return ;...
<S2SV_ModStart> ) ) { ifq_deq_rollback <S2SV_ModEnd> ( & ifp
5,043
CWE-000 GtkTreeIter * keyword_add_from_config ( GtkTreeStore * keyword_tree , GtkTreeIter * parent , const gchar * * attribute_names , const gchar * * attribute_values ) { gchar * name = NULL ; gboolean is_kw = TRUE ; <S2SV_StartBug> while ( * attribute_names ) <S2SV_EndBug> { const gchar * option = * attribute_names +...
<S2SV_ModStart> = TRUE ; gchar * mark_str = NULL ; <S2SV_ModStart> "kw" , is_kw ) ) continue ; if ( READ_CHAR_FULL ( "mark" , mark_str <S2SV_ModStart> is_kw ) ; if ( mark_str ) { meta_data_connect_mark_with_keyword ( GTK_TREE_MODEL ( keyword_tree ) , & iter , ( gint ) atoi ( mark_str ) - 1 ) ; }
5,044
CWE-000 void sort_players ( t_vm * vm ) { int c ; t_player * tmp ; t_player * tmp2 ; int i ; c = count_players ( vm ) ; tmp = vm -> player ; i = 0 ; while ( tmp != NULL ) { i ++ ; if ( tmp -> idx > c ) die ( "Error:<S2SV_blank>Player<S2SV_blank>index<S2SV_blank>cannot<S2SV_blank>exceed<S2SV_blank>players<S2SV_blank>cou...
<S2SV_ModStart> next ; } i = - <S2SV_ModEnd> 1 ; tmp <S2SV_ModStart> { tmp -> idx = i -- <S2SV_ModEnd> ; tmp =
5,045
CWE-000 static void file_load_delete_cb ( GObject * source_object , GAsyncResult * result , gpointer user_data ) { GFile * file = G_FILE ( source_object ) ; g_autoptr ( GTask ) task = G_TASK ( user_data ) ; g_autoptr ( GError ) local_error = NULL ; EpgManager * self = g_task_get_source_object ( task ) ; g_autoptr ( GFi...
<S2SV_ModStart> self ) ; GError * error = g_task_get_task_data ( task ) ; <S2SV_ModStart> G_IO_ERROR_NOT_FOUND ) ) { if ( error == NULL ) error = local_error ; else <S2SV_ModStart> message ) ; } if ( error <S2SV_ModEnd> == NULL ) <S2SV_ModStart> , G_STRFUNC , g_error_copy ( error <S2SV_ModEnd> ) ) ;
5,046
CWE-000 status_t sl_get_maxkey ( skiplist_t * sl , void * * key , size_t * size ) { <S2SV_StartBug> status_t _status = _sl_get_maxkey ( sl , key , size ) ; <S2SV_EndBug> if ( _status . code == STATUS_SKIPLIST_MAXKEY_NOTFOUND ) { * key = sl -> maxkey ; * size = sl -> maxkey_len ; _status . code = 0 ; } <S2SV_StartBug> r...
<S2SV_ModStart> ) { status_t _status ; uint64_t _offsets [ ] = { } ; _status = sl_rdlock ( sl , _offsets , 0 ) ; if ( _status . code != 0 ) { return _status ; } <S2SV_ModStart> 0 ; } sl_unlock ( sl , _offsets , 0 ) ;
5,047
CWE-000 static NTSTATUS Kph2Extract ( _In_ PPH_STRING KphFileName ) { NTSTATUS status = STATUS_FAIL_CHECK ; HANDLE fileHandle = NULL ; HANDLE sectionHandle = NULL ; PVOID viewBase = NULL ; PVOID fileResource ; HRSRC resourceHandle ; HGLOBAL fileResourceHandle ; SIZE_T viewSize = 0 ; SIZE_T resourceLength ; LARGE_INTEGE...
<S2SV_ModStart> KphFileName ) , FILE_GENERIC_READ | FILE_GENERIC_WRITE , FILE_ATTRIBUTE_NORMAL <S2SV_ModEnd> , FILE_SHARE_READ | <S2SV_ModStart> FILE_SHARE_READ | FILE_SHARE_WRITE , FILE_OPEN_IF <S2SV_ModEnd> , FILE_NON_DIRECTORY_FILE |
5,048
CWE-000 static int qh_link_periodic ( struct ehci_hcd * ehci , struct ehci_qh * qh ) { unsigned i ; unsigned period = qh -> period ; dev_dbg ( & qh -> dev -> dev , <S2SV_StartBug> "link<S2SV_blank>qh%d-%04x/%p<S2SV_blank>start<S2SV_blank>%d<S2SV_blank>[%d/%d<S2SV_blank>us]\\n" , <S2SV_EndBug> period , hc32_to_cpup ( eh...
<S2SV_ModStart> -> dev , "link<S2SV_blank>qh%d-%04x/%pK<S2SV_blank>start<S2SV_blank>%d<S2SV_blank>[%d/%d<S2SV_blank>us]\\n" <S2SV_ModEnd> , period ,
5,049
CWE-000 static int thread_aff_line ( void * arg ) { t_th_data * a ; t_env * e ; a = ( t_th_data * ) arg ; <S2SV_StartBug> e = copy_env ( a -> e ) ; <S2SV_EndBug> ft_aff_line ( a , e ) ; <S2SV_StartBug> return ( 0 ) ; <S2SV_EndBug> }
<S2SV_ModStart> ) arg ; while ( pthread_mutex_lock ( & ( a -> mutex ) ) != 0 ) ; ++ a -> th_nb ; pthread_mutex_unlock ( & ( a -> mutex ) ) ; <S2SV_ModStart> e ) ; while ( pthread_mutex_lock ( & ( a -> mutex ) ) != 0 ) ; -- a -> th_nb ; pthread_mutex_unlock ( & ( a -> mutex ) ) ;
5,050
CWE-000 boolean dri_create_buffer ( __DRIscreen * sPriv , __DRIdrawable * dPriv , const struct gl_config * visual , boolean isPixmap ) { struct dri_screen * screen = sPriv -> driverPrivate ; struct dri_drawable * drawable = NULL ; if ( isPixmap ) goto fail ; drawable = CALLOC_STRUCT ( dri_drawable ) ; if ( drawable == ...
<S2SV_ModStart> 1 ) ; drawable -> base . ID = p_atomic_inc_return ( & drifb_ID ) ;
5,051
CWE-000 static BOOL android_post_connect ( freerdp * instance ) { rdpSettings * settings ; rdpUpdate * update ; if ( ! instance || ! instance -> settings || ! instance -> context || ! instance -> update ) return FALSE ; update = instance -> update ; settings = instance -> settings ; if ( ! gdi_init ( instance , PIXEL_F...
<S2SV_ModStart> = android_desktop_resize ; <S2SV_ModEnd> freerdp_callback ( "OnSettingsChanged"
5,052
CWE-000 mbox_t do_mbox_open ( const char * name ) { ( void ) name ; int size = strlen ( name ) ; if ( free_head == 0 ) { bcopy ( name , MessageBoxen [ boxArr [ free_head ] ] . name , size ) ; return boxArr [ free_head ++ ] ; } for ( int i = 0 ; i < free_head ; i ++ ) { <S2SV_StartBug> bool res = same_string ( MessageBo...
<S2SV_ModStart> ++ ) { bool_t <S2SV_ModEnd> res = same_string <S2SV_ModStart> ( res == TRUE <S2SV_ModEnd> ) { MessageBoxen
5,053
CWE-000 int atoip ( char * buf , u_int32_t * ip_addr ) { <S2SV_StartBug> u_int i0 , i1 , i2 , i3 ; <S2SV_EndBug> if ( sscanf ( buf , "%u.%u.%u.%u" , & i0 , & i1 , & i2 , & i3 ) == 4 ) { * ip_addr = ( i0 << 24 ) + ( i1 << 16 ) + ( i2 << 8 ) + i3 ; <S2SV_StartBug> return ( 0 ) ; <S2SV_EndBug> } <S2SV_StartBug> if ( sscan...
<S2SV_ModStart> ip_addr ) { unsigned <S2SV_ModEnd> i0 , i1 <S2SV_ModStart> i2 , i3 ; unsigned long hex_addr <S2SV_ModStart> i3 ; return 0 <S2SV_ModEnd> ; } if <S2SV_ModStart> , "0x%lx" , & hex_addr ) >= 1 ) { * ip_addr = ( u_int32_t ) hex_addr ; return 0 ; } return - 1 <S2SV_ModEnd> ; } <S2SV_null>
5,054
CWE-000 void display_game ( void ) { int i ; volatile unsigned int * JP1_IRQ_MASK = ( unsigned int * ) 0xFF200068 ; if ( game_begin ) { initChessBoard ( & chess_board ) ; for ( i = 0 ; i < 8 ; i ++ ) { last_move_highlight [ i ] = 0 ; } LCD_Clear ( LCD_BLACK ) ; vga_clear_screen ( ) ; time1 . hours = 0 ; <S2SV_StartBug>...
<S2SV_ModStart> . minutes = 0 <S2SV_ModEnd> ; time1 . <S2SV_ModStart> . seconds = 20 <S2SV_ModEnd> ; time2 . <S2SV_ModStart> . minutes = 0 <S2SV_ModEnd> ; time2 . <S2SV_ModStart> . seconds = 20 <S2SV_ModEnd> ; game_begin = <S2SV_ModStart> 0x00 ; } increment_time_sec ( 30 ) ;
5,055
CWE-000 static void XLogDumpDisplayRecord ( XLogDumpConfig * config , XLogReaderState * record ) { const char * id ; const RmgrDescData * desc = & RmgrDescTable [ XLogRecGetRmid ( record ) ] ; <S2SV_StartBug> RelFileNode rnode ; <S2SV_EndBug> ForkNumber forknum ; BlockNumber blk ; int block_id ; uint8 info = XLogRecGet...
<S2SV_ModStart> ) ] ; uint32 rec_len ; uint32 fpi_len ; <S2SV_ModStart> record ) ; XLogDumpRecordLen ( record , & rec_len , & fpi_len ) ; <S2SV_ModStart> -> rm_name , rec_len <S2SV_ModEnd> , XLogRecGetTotalLen (
5,056
CWE-000 static int get_index ( size_t size ) { int i ; for ( i = DATA_SIZES - 1 ; i >= 0 ; i -- ) { <S2SV_StartBug> if ( size >= ( 1 << ( i + 3 ) ) ) { <S2SV_EndBug> break ; } } return i ; }
<S2SV_ModStart> if ( size > <S2SV_ModEnd> ( 1 << <S2SV_ModStart> ( i + MIN_ALLOC_BITS - 1 <S2SV_ModEnd> ) ) )
5,057
CWE-000 static int add_to_xchild_list ( afni_xml_t * parent , afni_xml_t * child ) { if ( parent -> nchild <= 0 ) { parent -> nchild = 0 ; parent -> xchild = NULL ; } parent -> nchild ++ ; <S2SV_StartBug> parent -> xchild = ( afni_xml_t * * ) realloc ( parent -> xchild , <S2SV_EndBug> parent -> nchild * sizeof ( afni_x...
<S2SV_ModStart> * * ) safe_realloc <S2SV_ModEnd> ( parent ->
5,058
CWE-000 static ssize_t punc_store ( struct kobject * kobj , struct kobj_attribute * attr , const char * buf , size_t count ) { int x ; struct st_var_header * p_header ; struct punc_var_t * var ; char punc_buf [ 100 ] ; unsigned long flags ; x = strlen ( buf ) ; if ( x < 1 || x > 99 ) return - EINVAL ; p_header = spk_va...
<S2SV_ModStart> EINVAL ; } memcpy <S2SV_ModEnd> ( punc_buf ,
5,059
CWE-000 static int ubifs_xattr_remove ( struct inode * host , const char * name ) { struct inode * inode ; struct ubifs_info * c = host -> i_sb -> s_fs_info ; struct fscrypt_name nm = { . disk_name = FSTR_INIT ( ( char * ) name , strlen ( name ) ) } ; struct ubifs_dent_node * xent ; union ubifs_key key ; int err ; ubif...
<S2SV_ModStart> ; if ( <S2SV_ModEnd> fname_len ( &
5,060
CWE-000 static void esdhc_init ( struct platform_device * pdev , struct sdhci_host * host ) { struct sdhci_pltfm_host * pltfm_host ; struct sdhci_esdhc * esdhc ; struct device_node * np ; struct clk * clk ; u32 val ; u16 host_ver ; pltfm_host = sdhci_priv ( host ) ; esdhc = sdhci_pltfm_priv ( pltfm_host ) ; <S2SV_Start...
<S2SV_ModStart> pltfm_host ) ; <S2SV_ModEnd> host_ver = sdhci_readw
5,061
CWE-000 int main ( int argc , char * argv [ ] ) { if ( argc != 4 ) { printf ( "Usage:<S2SV_blank>./resize<S2SV_blank>n<S2SV_blank>infile<S2SV_blank>outfile\\n" ) ; return 1 ; } char * factorArg = argv [ 1 ] ; char * inName = argv [ 2 ] ; char * outName = argv [ 3 ] ; int factor ; if ( ! checkFactor ( factorArg ) ) { pr...
<S2SV_ModStart> ( padding * abs ( <S2SV_ModStart> infHeader . biHeight )
5,062
CWE-000 iota_api_result_t iota_api_broadcast_transactions ( const iota_http_service_t * const service , broadcast_transactions_req_t * req ) { iota_api_result_t result = { 0 } ; char_buffer_t * res_buff = char_buffer_new ( ) ; <S2SV_StartBug> char_buffer_t * req_buff = char_buffer_new ( ) ; <S2SV_EndBug> if ( req_buff ...
<S2SV_ModStart> = char_buffer_new ( ) ; log_info ( CCLIENT_CORE_LOGGER_ID , "[%s:%d]\\n" , __func__ , __LINE__ <S2SV_ModStart> NULL ) { log_critical ( CCLIENT_CORE_LOGGER_ID , "[%s:%d]<S2SV_blank>%s\\n" , __func__ , __LINE__ , STR_CCLIENT_OOM ) ; <S2SV_ModStart> RC_OK ) { log_error ( CCLIENT_CORE_LOGGER_ID , "[%s:%d]<S...
5,063
CWE-000 static void * worker_thread ( void * thread_func_param ) { <S2SV_StartBug> struct worker_thread_args * pwta = <S2SV_EndBug> ( struct worker_thread_args * ) thread_func_param ; struct sigaction sa ; memset ( & sa , 0 , sizeof ( sa ) ) ; sa . sa_handler = SIG_IGN ; sigaction ( SIGPIPE , & sa , NULL ) ; <S2SV_Star...
<S2SV_ModStart> thread_func_param ) { <S2SV_ModEnd> struct sigaction sa <S2SV_ModStart> ; worker_thread_run ( ( struct mg_connection * ) <S2SV_ModEnd> thread_func_param ) ;
5,064
CWE-000 int blkfree ( void * ptr ) { if ( ! ptr ) { return - 1 ; } blkhead_t * h = ptr - sizeof ( blkhead_t ) ; if ( h -> bh_magic != MAGIC ) { <S2SV_StartBug> fprintf ( stderr , "memory<S2SV_blank>boundaries<S2SV_blank>corrupted\\n" ) ; <S2SV_EndBug> <S2SV_StartBug> return - 1 ; <S2SV_EndBug> } blist -> b_holes = blks...
<S2SV_ModStart> ( stderr , "Memory<S2SV_blank>boundaries<S2SV_blank>corrupted\\n" ) ; fprintf ( stderr , "(or<S2SV_blank>pointer<S2SV_blank>is<S2SV_blank>from<S2SV_blank>a<S2SV_blank>different<S2SV_blank>allocator)\\n" <S2SV_ModEnd> ) ; return <S2SV_ModStart> return - 1 ; } if ( h -> bh_size + sizeof ( blkhead_t ) > BL...
5,065
CWE-000 const char * virDomainGraphicsGetRenderNode ( const virDomainGraphicsDef * graphics ) { const char * ret = NULL ; switch ( graphics -> type ) { case VIR_DOMAIN_GRAPHICS_TYPE_SPICE : <S2SV_StartBug> if ( graphics -> data . spice . gl == VIR_TRISTATE_BOOL_YES ) <S2SV_EndBug> ret = graphics -> data . spice . rende...
<S2SV_ModStart> case VIR_DOMAIN_GRAPHICS_TYPE_SPICE : <S2SV_ModEnd> ret = graphics
5,066
CWE-000 <S2SV_StartBug> static bool icp_tc_port_hotplug_long_detect ( enum port port , u32 val ) <S2SV_EndBug> { <S2SV_StartBug> switch ( port ) { <S2SV_EndBug> <S2SV_StartBug> case PORT_C : <S2SV_EndBug> return val & ICP_TC_HPD_LONG_DETECT ( PORT_TC1 ) ; <S2SV_StartBug> case PORT_D : <S2SV_EndBug> return val & ICP_TC_...
<S2SV_ModStart> icp_tc_port_hotplug_long_detect ( enum hpd_pin pin <S2SV_ModEnd> , u32 val <S2SV_ModStart> { switch ( pin <S2SV_ModEnd> ) { case <S2SV_ModStart> ) { case HPD_PORT_C <S2SV_ModEnd> : return val <S2SV_ModStart> ) ; case HPD_PORT_D <S2SV_ModEnd> : return val <S2SV_ModStart> ) ; case HPD_PORT_E <S2SV_ModEnd>...
5,067
CWE-000 void decodeToBinBase64 ( const char * source , unsigned char * destination ) { decodeToBinValidateBase64 ( source ) ; int destinationIdx = 0 ; <S2SV_StartBug> for ( int sourceIdx = 0 ; sourceIdx < strlen ( source ) ; sourceIdx += 4 ) <S2SV_EndBug> { destination [ destinationIdx ++ ] = ( unsigned char ) ( decode...
<S2SV_ModStart> ; for ( unsigned
5,068
CWE-000 INLINE void <S2SV_StartBug> AddEntry ( HeapP * h1 , HeapP * h2 ) <S2SV_EndBug> { assert ( ( h1 != NULL ) && ( h2 != NULL ) ) ; if ( CHILD ( h1 ) == NULL ) { CHILD ( h1 ) = h2 ; } else { CombineLists ( CHILD ( h1 ) , h2 ) ; } PARENT ( h2 ) = h1 ; RANK ( h1 ) = RANK ( h1 ) + RANK ( h2 ) + 1 ; }
<S2SV_ModStart> void AddEntry ( _Ptr < HeapP > h1 , _Ptr < HeapP > <S2SV_ModEnd> h2 ) {
5,069
CWE-000 static Bool gridCommon ( CompDisplay * d , CompAction * action , CompActionState state , CompOption * option , int nOption , GridType where ) { Window xid ; CompWindow * cw ; xid = getIntOptionNamed ( option , nOption , "window" , 0 ) ; cw = findWindowAtDisplay ( d , xid ) ; <S2SV_StartBug> gridCommonWindow ( c...
<S2SV_ModStart> cw , where , TRUE
5,070
CWE-000 <S2SV_StartBug> static void <S2SV_EndBug> json_print_anydata ( struct lyout * out , int level , const struct lyd_node * node , int toplevel , int options ) { const char * schema = NULL ; struct lyd_node_anydata * any = ( struct lyd_node_anydata * ) node ; if ( toplevel || ! node -> parent || nscmp ( node , node...
<S2SV_ModStart> <S2SV_null> <S2SV_null> static int <S2SV_ModEnd> json_print_anydata ( struct <S2SV_ModStart> case LYD_ANYDATA_DATATREE : if ( <S2SV_ModStart> LYP_FORMAT ) ) ) { return EXIT_FAILURE ; } <S2SV_ModEnd> break ; case <S2SV_ModStart> ) ; } if ( <S2SV_ModStart> , NULL ) ) { return EXIT_FAILURE ; } <S2SV_ModEnd...
5,071
CWE-000 void InsertWhodata ( const sk_sum_t * sum ) { if ( sum -> wdata . user_id && sum -> wdata . user_name && * sum -> wdata . user_id != '\\0' ) { snprintf ( sdb . user_name , OS_FLSIZE , "(Audit)<S2SV_blank>User:<S2SV_blank>\'%s<S2SV_blank>(%s)\'\\n" , sum -> wdata . user_name , sum -> wdata . user_id ) ; } else {...
<S2SV_ModStart> process_id != '\\0' && strcmp ( sum -> wdata . process_id , "0" )
5,072
CWE-000 void RotateFiles ( char * name , int number ) { int i , fd ; struct stat statbuf ; char from [ CF_BUFSIZE ] , to [ CF_BUFSIZE ] ; if ( IsItemIn ( ROTATED , name ) ) { return ; } PrependItem ( & ROTATED , name , NULL ) ; if ( stat ( name , & statbuf ) == - 1 ) { Log ( LOG_LEVEL_VERBOSE , "No<S2SV_blank>access<S2...
<S2SV_ModStart> ( LOG_LEVEL_ERR , "Failed<S2SV_blank>to<S2SV_blank>create<S2SV_blank>new<S2SV_blank>\'%s\'<S2SV_blank>in<S2SV_blank>disable(rotate).<S2SV_blank>(create:<S2SV_blank>%s)" <S2SV_ModEnd> , name ,
5,073
CWE-000 <S2SV_StartBug> static PHP_METHOD ( Phalcon_Session_Adapter_Libmemcached , getLifetime ) { <S2SV_EndBug> zval * this_ptr = getThis ( ) ; <S2SV_StartBug> RETURN_MEMBER ( getThis ( ) , "_lifetime" ) ; <S2SV_EndBug> }
<S2SV_ModStart> static PHP_METHOD ( Phalcon_Annotations_Collection , getAnnotations ) { <S2SV_ModEnd> RETURN_MEMBER ( getThis <S2SV_ModStart> ( ) , "_annotations" <S2SV_ModEnd> ) ; }
5,074
CWE-000 int main ( ) { <S2SV_StartBug> unsigned long int a , b , c , d , e , f , q ; <S2SV_EndBug> FILE * input = fopen ( "input.txt" , "r" ) ; FILE * output = fopen ( "output.txt" , "w" ) ; fscanf ( input , "%lu<S2SV_blank>%lu<S2SV_blank>%lu<S2SV_blank>%lu<S2SV_blank>%lu<S2SV_blank>%lu<S2SV_blank>%lu" , & a , & b , & ...
<S2SV_ModStart> ( ) { char arr [ MAX_LEN_STR ] = { 0 } ; int qty_perm ; scanf ( "%10s" , arr ) ; scanf ( "%d" , & qty_perm ) ; int len = strlen ( arr ) ; test ( arr , len ) ; print_permutation ( arr , qty_perm , len <S2SV_ModEnd> ) ; } <S2SV_ModStart> ) ; } <S2SV_ModEnd> <S2SV_null> <S2SV_null> <S2SV_null>
5,075
CWE-000 void record_dump ( struct seq_file * file ) { struct atom * i ; struct hlist_node * tmp ; int bkt ; mutex_lock ( & record_lock ) ; hash_for_each_safe ( atoms , bkt , tmp , i , hlist ) { if ( current -> pid == i -> pid ) { continue ; } <S2SV_StartBug> if ( is_alive ( i -> pid ) ) { <S2SV_EndBug> _record_dump_det...
<S2SV_ModStart> continue ; } <S2SV_ModEnd> _record_dump_detail ( file <S2SV_ModStart> i ) ; <S2SV_ModEnd> } mutex_unlock (
5,076
CWE-000 LF_PINS * lf_pinbox_get_pins ( LF_PINBOX * pinbox ) { <S2SV_StartBug> uint32 pins , next , top_ver ; <S2SV_EndBug> LF_PINS * el ; top_ver = pinbox -> pinstack_top_ver ; do { if ( ! ( pins = top_ver % LF_PINBOX_MAX_PINS ) ) { <S2SV_StartBug> pins = my_atomic_add32 ( ( int32 volatile * ) & pinbox -> pins_in_array...
<S2SV_ModStart> pinbox ) { uint64 <S2SV_ModEnd> pins , next <S2SV_ModStart> { pins = my_atomic_add64 ( ( int64 <S2SV_ModEnd> volatile * ) <S2SV_ModStart> while ( ! my_atomic_cas64 ( ( int64 <S2SV_ModEnd> volatile * ) <S2SV_ModStart> pinstack_top_ver , ( int64 <S2SV_ModEnd> * ) &
5,077
CWE-000 static int direct_specular_OK ( COLOR cval , FVECT ldir , double omega , BSDFDAT * ndp ) { int nsamp , ok = 0 ; FVECT vsrc , vsmp , vjit ; double tomega , tomega2 ; double sf , tsr , sd [ 2 ] ; COLOR csmp , cdiff ; double diffY ; SDValue sv ; SDError ec ; int i ; setcolor ( cval , .0 , .0 , .0 ) ; if ( SDmapDir...
<S2SV_ModStart> ; if ( <S2SV_ModEnd> ndp -> pr <S2SV_ModStart> > 0 ) && bright ( ndp -> cthru ) > FTINY
5,078
CWE-000 static int parse_tpmstate_options ( char * options , char * * tpmstatedir ) { OptionValues * ovs = NULL ; char * error = NULL ; const char * directory = NULL ; ovs = options_parse ( options , tpmstate_opt_desc , & error ) ; if ( ! ovs ) { <S2SV_StartBug> fprintf ( stderr , "Error<S2SV_blank>parsing<S2SV_blank>t...
<S2SV_ModStart> ovs ) { logprintf ( STDERR_FILENO <S2SV_ModEnd> , "Error<S2SV_blank>parsing<S2SV_blank>tpmstate<S2SV_blank>options:<S2SV_blank>%s\\n" , <S2SV_ModStart> directory ) { logprintf ( STDERR_FILENO <S2SV_ModEnd> , "The<S2SV_blank>file<S2SV_blank>parameter<S2SV_blank>is<S2SV_blank>required<S2SV_blank>for<S2SV_...
5,079
CWE-000 <S2SV_StartBug> static void AlarmTimeout ( unsigned long data ) <S2SV_EndBug> { <S2SV_StartBug> OSS_ALARM_HANDLE * alarm = ( OSS_ALARM_HANDLE * ) data ; <S2SV_EndBug> OSS_ALARM_STATE flags ; flags = OSS_AlarmMask ( alarm -> oss ) ; alarm -> funct ( alarm -> arg ) ; if ( ! alarm -> cyclic ) alarm -> active = FAL...
<S2SV_ModStart> void AlarmTimeout ( struct timer_list * t ) # endif { # if LINUX_VERSION_CODE <= KERNEL_VERSION ( 4 , 14 , 34 ) <S2SV_ModEnd> OSS_ALARM_HANDLE * alarm <S2SV_ModStart> ) data ; # else OSS_ALARM_HANDLE * alarm = from_timer ( alarm , t , tmr ) ; # endif
5,080
CWE-000 bool uxr_discovery_agents_unicast ( int64_t time , int period , uxrOnAgentFound on_agent_func , void * args , uxrAgentAddress * choosen , const uxrAgentAddress * agent_list , size_t agent_list_size ) { CallbackData callback = { choosen , on_agent_func , args } ; uint8_t output_buffer [ UXR_UDP_TRANSPORT_MTU_DAT...
<S2SV_ModStart> port ) ; <S2SV_ModEnd> UXR_DEBUG_PRINT_MESSAGE ( UXR_SEND <S2SV_ModStart> ) ; } <S2SV_ModEnd> int64_t timestamp = <S2SV_ModStart> int ) ( uxr_milli_time ( ) - timestamp <S2SV_ModEnd> ) ; }
5,081
CWE-000 void i2c_start ( void ) { TWCR = ( 1 << TWINT ) | ( 1 << TWEN ) | ( 1 << TWSTA ) ; <S2SV_StartBug> while ( ! ( TWCR & ( 1 << TWINT ) ) ) ; <S2SV_EndBug> }
<S2SV_ModStart> TWSTA ) ; timeout_timer = TIMEOUT_VALUE ; <S2SV_ModStart> TWINT ) ) && ( timeout_timer -- )
5,082
CWE-000 static rsRetVal closeSess ( ptcpsess_t * pSess ) { DEFiRet ; if ( pSess -> compressionMode >= COMPRESS_STREAM_ALWAYS ) doZipFinish ( pSess ) ; const int sock = pSess -> sock ; close ( sock ) ; pthread_mutex_lock ( & pSess -> pLstn -> pSrv -> mutSessLst ) ; if ( pSess -> next != NULL ) pSess -> next -> prev = pS...
<S2SV_ModStart> ) ; } STATSCOUNTER_INC ( pSess -> pLstn -> ctrSessClose , pSess -> pLstn -> mutCtrSessClose ) ; <S2SV_ModStart> pSess ) ; <S2SV_ModEnd> DBGPRINTF ( "imptcp:<S2SV_blank>session<S2SV_blank>on<S2SV_blank>socket<S2SV_blank>%d<S2SV_blank>closed<S2SV_blank>with<S2SV_blank>iRet<S2SV_blank>%d.\\n"
5,083
CWE-000 void make_arr ( t_wolf * wolf , int fd ) { int i ; int j ; char * line ; i = 0 ; <S2SV_StartBug> wolf -> map = ( char * * ) malloc ( sizeof ( char * ) * ( wolf -> map_height * 200 ) ) ; <S2SV_EndBug> wolf -> map_tmp = ( char * * ) malloc ( sizeof ( char * ) * ( wolf -> map_height * 200 ) ) ; wolf -> map [ wolf ...
<S2SV_ModStart> wolf -> map_height + 1 ) ) ; wolf -> map_tmp = ( char * * ) malloc ( sizeof ( char * ) * ( wolf -> map_height + 1 <S2SV_ModEnd> ) ) ; <S2SV_ModStart> wolf -> map_len + 1 ) ) ; wolf -> map_tmp [ i ] = ( char * ) malloc ( sizeof ( char ) * ( wolf -> map_len + 1 <S2SV_ModEnd> ) ) ;
5,084
CWE-000 static void sds_bptree_txn_decrement ( sds_bptree_transaction * btxn ) { # ifdef DEBUG sds_log ( "sds_bptree_txn_decrement" , "<S2SV_blank><S2SV_blank><S2SV_blank><S2SV_blank>txn_%p<S2SV_blank>%d<S2SV_blank>-<S2SV_blank>1" , btxn , btxn -> reference_count ) ; # endif sds_bptree_cow_instance * binst = btxn -> bi...
<S2SV_ModStart> 0 ) { <S2SV_ModEnd> while ( result <S2SV_ModStart> NULL ) { result = __atomic_sub_fetch <S2SV_ModEnd> ( & ( <S2SV_ModStart> reference_count ) , 1 <S2SV_ModEnd> , __ATOMIC_SEQ_CST ) <S2SV_ModStart> ; } } <S2SV_ModEnd> } # ifdef
5,085
CWE-000 static ssize_t i2schar_read ( FAR struct file * filep , FAR char * buffer , size_t buflen ) { <S2SV_StartBug> FAR struct inode * inode = filep -> f_inode ; <S2SV_EndBug> FAR struct i2schar_dev_s * priv ; FAR struct ap_buffer_s * apb ; size_t nbytes ; int ret ; i2sinfo ( "buffer=%p<S2SV_blank>buflen=%d\\n" , buf...
<S2SV_ModStart> inode * inode <S2SV_ModEnd> ; FAR struct
5,086
CWE-000 static int hash_netportnet4_uadt ( struct ip_set * set , struct nlattr * tb [ ] , enum ipset_adt adt , u32 * lineno , u32 flags , bool retried ) { const struct hash_netportnet4 * h = set -> data ; ipset_adtfn adtfn = set -> variant -> adt [ adt ] ; struct hash_netportnet4_elem e = { } ; struct ip_set_ext ext = ...
<S2SV_ModStart> ; if ( <S2SV_ModEnd> e . cidr <S2SV_ModStart> ; if ( <S2SV_ModEnd> e . cidr
5,087
CWE-000 <S2SV_StartBug> void copy_point ( struct point * src , struct point * dst , int num ) { <S2SV_EndBug> int i ; # pragma omp parallel for <S2SV_StartBug> for ( i = 0 ; i < num ; i ++ ) { <S2SV_EndBug> dst -> values [ i ] = src -> values [ i ] ; } dst -> label = src -> label ; }
<S2SV_ModStart> dst , int size <S2SV_ModEnd> ) { int <S2SV_ModStart> ; i < size <S2SV_ModEnd> ; i ++
5,088
CWE-000 int32_t odp_recv_pkts ( struct mtcp_thread_context * ctxt , int ifidx ) { <S2SV_StartBug> # ifdef _DEBUG_ <S2SV_EndBug> TRACE_INFO ( "[MTCP-ODP]:<S2SV_blank>recv_pkts.\\n" ) ; # endif struct odp_private_context * opc ; odp_pktin_queue_t pktin ; int total , got , expected , qidx , q_num ; opc = ( struct odp_priv...
<S2SV_ModStart> ifidx ) { <S2SV_ModEnd> struct odp_private_context * <S2SV_ModStart> = total ; <S2SV_ModEnd> return total ;
5,089
CWE-000 int main ( int argc , char * argv [ ] ) { bool appendFlags = false ; <S2SV_StartBug> char * fileName = NULL ; <S2SV_EndBug> for ( int i = 0 ; argv [ i ] != NULL ; i ++ ) { if ( appendFlags == false && strcmp ( argv [ i ] , "run" ) == 0 ) { appendFlags = true ; if ( argv [ i + 1 ] == NULL ) { errno = EBADF ; per...
<S2SV_ModStart> fileName = NULL ; action_t action = { . allField = 0 } <S2SV_ModStart> { argvList = appendCmdByVar ( argvList , argv ) ; argvList = appendCmdByVar ( argvList , addedCmd ) ; argvList = appendDevices ( argvList ) ; argvList = appendCmdByList ( argvList , APPEND_CMD <S2SV_ModEnd> ) ; argvList
5,090
CWE-000 int mrsas_ioc_init ( struct mrsas_softc * sc ) { struct mrsas_init_frame * init_frame ; pMpi2IOCInitRequest_t IOCInitMsg ; MRSAS_REQUEST_DESCRIPTOR_UNION req_desc ; u_int8_t max_wait = MRSAS_INTERNAL_CMD_WAIT_TIME ; bus_addr_t phys_addr ; int i , retcode = 0 ; u_int32_t scratch_pad_2 ; if ( mrsas_alloc_ioc_cmd ...
<S2SV_ModStart> { scratch_pad_2 = mrsas_read_reg_with_retries <S2SV_ModEnd> ( sc , <S2SV_ModStart> { scratch_pad_2 = mrsas_read_reg_with_retries <S2SV_ModEnd> ( sc ,
5,091
CWE-000 static void test_setPathGradientSurroundColorsWithCount ( ) { GpStatus status ; GpPathGradient * brush ; ARGB threeSurroundColors [ 3 ] = { 1 , 2 , 3 } ; ARGB threeEmptyColors [ 3 ] = { 0 , 0 , 0 } ; ARGB twoSameColors [ 2 ] = { 1 , 1 } ; ARGB colors [ 3 ] ; INT count = 3 ; GdipCreatePathGradient ( threePoints ...
<S2SV_ModStart> InvalidParameter ) ; # if ! defined ( USE_WINDOWS_GDIPLUS ) status = GdipSetPathGradientSurroundColorsWithCount ( brush , colors , NULL ) ; assertEqualInt ( status , InvalidParameter ) ; # endif
5,092
CWE-000 uint32_t demand_create ( lower_info * li , algorithm * algo ) { num_page = _NOP ; num_block = _NOS ; p_p_b = _PPS ; num_tblock = ( ( num_block / EPP ) + ( ( num_block % EPP != 0 ) ? 1 : 0 ) ) * 8 ; num_tpage = num_tblock * p_p_b ; num_dblock = num_block - num_tblock - 2 ; num_dpage = num_dblock * p_p_b ; max_ca...
<S2SV_ModStart> num_max_cache = max_cache_entry <S2SV_ModEnd> ; real_max_cache =
5,093
CWE-000 void make_new_buffer ( void ) { openfilestruct * newnode = make_new_opennode ( ) ; if ( openfile == NULL ) { newnode -> prev = newnode ; newnode -> next = newnode ; firstfile = newnode ; } else { newnode -> prev = openfile ; newnode -> next = openfile -> next ; openfile -> next -> prev = newnode ; openfile -> n...
<S2SV_ModStart> ; openfile -> pristine = TRUE ; openfile ->
5,094
CWE-000 static void fast_xmit ( struct recvbuf * rbufp , int xmode , keyid_t xkeyid , int flags ) { struct pkt xpkt ; struct pkt * rpkt ; l_fp xmt_tx , xmt_ty ; size_t sendlen ; rpkt = & rbufp -> recv_pkt ; if ( flags & RES_KOD ) { sys_kodsent ++ ; xpkt . li_vn_mode = PKT_LI_VN_MODE ( LEAP_NOTINSYNC , PKT_VERSION ( rpk...
<S2SV_ModStart> ) printf ( "transmit:<S2SV_blank>at<S2SV_blank>%lu<S2SV_blank>%s->%s<S2SV_blank>mode<S2SV_blank>%d<S2SV_blank>len<S2SV_blank>%zu\\n" <S2SV_ModEnd> , current_time , <S2SV_ModStart> ) printf ( "transmit:<S2SV_blank>at<S2SV_blank>%lu<S2SV_blank>%s->%s<S2SV_blank>mode<S2SV_blank>%d<S2SV_blank>keyid<S2SV_bla...
5,095
CWE-000 TechnicalSupport * getTechnicalSupport ( int idTechnicalSupport , PersonDatabase * personDatabase ) { for ( int i = 0 ; i < personDatabase -> technicalMaxCapacity ; i ++ ) { if ( personDatabase -> technicalSupportBooleanArray [ i ] != 0 ) { <S2SV_StartBug> if ( personDatabase -> technicalSupportArray [ i ] -> i...
<S2SV_ModStart> -> idTechnicalSupport == idTechnicalSupport <S2SV_ModEnd> ) { TechnicalSupport
5,096
CWE-000 static void free_gid_entry_locked ( struct ib_gid_table_entry * entry ) { struct ib_device * device = entry -> attr . device ; u8 port_num = entry -> attr . port_num ; struct ib_gid_table * table = rdma_gid_table ( device , port_num ) ; dev_dbg ( & device -> dev , "%s<S2SV_blank>port=%d<S2SV_blank>index=%d<S2SV...
<S2SV_ModStart> gid . raw <S2SV_ModEnd> ) ; write_lock_irq
5,097
CWE-000 void idle ( void ) { if ( state != last_state ) { last_state = state ; dispSeconds ( max_time ) ; BUTTON_LED = ON ; } delay_by_nop ( 2000000 ) ; state = run ; <S2SV_StartBug> if ( state != last_state ) { <S2SV_EndBug> BUTTON_LED = OFF ; } }
<S2SV_ModStart> = run ; U1_puts ( "Setup" ) ; U1_putc ( '\\r' ) ; U1_putc ( '\\n' ) ; U1_flush_tx_buffer ( ) ;
5,098
CWE-000 static void wiiu_joypad_poll ( void ) { wpad_driver . poll ( ) ; kpad_driver . poll ( ) ; <S2SV_StartBug> hidpad_driver . poll ( ) ; <S2SV_EndBug> <S2SV_StartBug> } <S2SV_EndBug>
<S2SV_ModStart> ( ) ; # ifdef WIIU_HID <S2SV_ModStart> ( ) ; # endif
5,099
CWE-000 static BEH_DECL ( map_args_beh ) { CONS * state = MINE ; <S2SV_StartBug> CONS * cust ; <S2SV_EndBug> <S2SV_StartBug> CONS * env ; <S2SV_EndBug> CONS * msg = WHAT ; CONS * appl ; CONS * lists ; CONS * k_unwrap ; <S2SV_StartBug> DBUG_ENTER ( "map_args_beh" ) ; <S2SV_EndBug> ENSURE ( is_pr ( state ) ) ; cust = hd ...
<S2SV_ModStart> = MINE ; # if 0 <S2SV_ModStart> * env ; # endif <S2SV_ModStart> "map_args_beh" ) ; # if 0 <S2SV_ModStart> state ) ; # endif