Unnamed: 0
int64
0
535k
source
stringlengths
50
89.8k
target
stringlengths
23
37.7k
6,700
CWE-000 Plan * <S2SV_StartBug> apply_shareinput_dag_to_tree ( PlannerGlobal * glob , Plan * plan , List * rtable ) <S2SV_EndBug> { <S2SV_StartBug> glob -> share . curr_rtable = rtable ; <S2SV_EndBug> <S2SV_StartBug> shareinput_walker ( shareinput_mutator_dag_to_tree , ( Node * ) plan , glob ) ; <S2SV_EndBug> return pla...
<S2SV_ModStart> * apply_shareinput_dag_to_tree ( PlannerInfo * root <S2SV_ModEnd> , Plan * <S2SV_ModStart> Plan * plan ) { PlannerGlobal * glob = root -> glob ; <S2SV_ModEnd> glob -> share <S2SV_ModStart> . curr_rtable = root -> parse -> <S2SV_ModStart> ) plan , root <S2SV_ModEnd> ) ; return
6,701
CWE-000 int destination_connect ( ) { struct sockaddr_in dest_socket ; char dest_servername [ 255 ] ; int dest_rc , dest_sd ; if ( strcmp ( PROTOCOL , "TCP" ) == 0 ) { if ( ( dest_sd = socket ( AF_INET , SOCK_STREAM , 0 ) ) < 0 ) { perror ( "socket<S2SV_blank>error" ) ; return - 1 ; } <S2SV_StartBug> } <S2SV_EndBug> el...
<S2SV_ModStart> 1 ; } <S2SV_ModEnd> dest_socket . sin_family <S2SV_ModStart> SERVPORT ) ; if ( inet_aton ( SERVER , & dest_socket . sin_addr ) == 0 ) { perror ( "inet_aton<S2SV_blank>error" ) ; return - 1 ; } <S2SV_ModStart> 1 ; } } else { if ( ( dest_sd = socket ( AF_INET , SOCK_DGRAM , IPPROTO_UDP ) ) < 0 ) { perror ...
6,702
CWE-000 <S2SV_StartBug> int main ( void ) { <S2SV_EndBug> <S2SV_StartBug> calc ( TRUE , FALSE , '|' ) ; <S2SV_EndBug> <S2SV_StartBug> calc ( TRUE , FALSE , '&' ) ; <S2SV_EndBug> <S2SV_StartBug> calc ( TRUE , turnStringToInt ( "oi" ) , '^' ) ; <S2SV_EndBug> <S2SV_StartBug> calc ( TRUE , FALSE , 'x' ) ; <S2SV_EndBug> <S2...
<S2SV_ModStart> int main ( <S2SV_ModEnd> ) { calc <S2SV_ModStart> , FALSE , "|" <S2SV_ModEnd> ) ; calc <S2SV_ModStart> , FALSE , "&" <S2SV_ModEnd> ) ; calc <S2SV_ModStart> "oi" ) , "^" <S2SV_ModEnd> ) ; calc <S2SV_ModStart> , FALSE , "x" <S2SV_ModEnd> ) ; calc <S2SV_ModStart> , FALSE , ">" <S2SV_ModEnd> ) ; calc <S2SV_...
6,703
CWE-000 extern void UpdateNormExp ( int state , void * ss , hmm_t * hmm ) { <S2SV_StartBug> Rprintf ( "[UpdateNormExp]<S2SV_blank>START" ) ; <S2SV_EndBug> ssNormExp * SS = ( ssNormExp * ) ss ; double epsilon = 0.00001 ; double * stateParams = hmm [ 0 ] . em_args [ state ] ; double * sp = ( double * ) calloc ( 4 , sizeo...
<S2SV_ModStart> hmm ) { if ( hmm -> verb ) <S2SV_ModStart> { Rprintf ( "[UpdateNormExp]<S2SV_blank>WARNING::Updates<S2SV_blank>failed<S2SV_blank>w/<S2SV_blank>message<S2SV_blank>%d.<S2SV_blank><S2SV_blank>\\\n<S2SV_blank><S2SV_blank><S2SV_blank><S2SV_blank><S2SV_blank><S2SV_blank><S2SV_blank><S2SV_blank>fncount=<S2SV_b...
6,704
CWE-000 static void gsc_src_set_transf ( struct gsc_context * ctx , unsigned int rotation ) { unsigned int degree = rotation & DRM_MODE_ROTATE_MASK ; u32 cfg ; cfg = gsc_read ( GSC_IN_CON ) ; cfg &= ~ GSC_IN_ROT_MASK ; switch ( degree ) { case DRM_MODE_ROTATE_0 : <S2SV_StartBug> if ( rotation & DRM_MODE_REFLECT_Y ) <S2...
<S2SV_ModStart> ( rotation & DRM_MODE_REFLECT_X ) cfg |= GSC_IN_ROT_XFLIP ; if ( rotation & DRM_MODE_REFLECT_Y <S2SV_ModEnd> ) cfg |= <S2SV_ModStart> ( rotation & DRM_MODE_REFLECT_X ) cfg |= GSC_IN_ROT_XFLIP ; if ( rotation & DRM_MODE_REFLECT_Y <S2SV_ModEnd> ) cfg |= <S2SV_ModStart> ( rotation & DRM_MODE_REFLECT_X ) cf...
6,705
CWE-000 static av_cold int libopenjpeg_encode_init ( AVCodecContext * avctx ) { LibOpenJPEGContext * ctx = avctx -> priv_data ; int err = 0 ; opj_set_default_encoder_parameters ( & ctx -> enc_params ) ; # if HAVE_OPENJPEG_2_1_OPENJPEG_H switch ( ctx -> cinema_mode ) { case OPJ_CINEMA2K_24 : ctx -> enc_params . rsiz = O...
<S2SV_ModStart> ; # endif if ( ! ctx -> numresolution ) { ctx -> numresolution = 6 ; while ( FFMIN ( avctx -> width , avctx -> height ) >> ctx -> numresolution < 1 ) ctx -> numresolution -- ; }
6,706
CWE-000 enum gru_error gru_z64fs_vprev ( struct gru_z64fs * z64fs , size_t index , size_t * index_out ) { if ( index >= z64fs -> files . size ) return GRU_ERROR_RANGE ; struct z64_file * file = vector_at ( & z64fs -> files , index ) ; size_t vrom_order = file -> vrom_order ; if ( vrom_order == 0 ) return GRU_ERROR_RANG...
<S2SV_ModStart> return GRU_ERROR_RANGE ; <S2SV_ModEnd> gru_z64fs_vindex ( z64fs <S2SV_ModStart> ( z64fs , vrom_order - 1 , index_out ) <S2SV_ModEnd> ; return GRU_SUCCESS <S2SV_ModStart> GRU_SUCCESS ; } <S2SV_ModEnd> <S2SV_null> <S2SV_null> <S2SV_null>
6,707
CWE-000 static pointer do_wait_process ( scheme * sc , pointer args ) { FFI_PROLOG ( ) ; const char * name ; pid_t pid ; int hang ; int retcode ; FFI_ARG_OR_RETURN ( sc , const char * , name , string , args ) ; FFI_ARG_OR_RETURN ( sc , pid_t , pid , number , args ) ; FFI_ARG_OR_RETURN ( sc , int , hang , bool , args ) ...
<S2SV_ModStart> ; err = gpgrt_wait_process <S2SV_ModEnd> ( name ,
6,708
CWE-000 <S2SV_StartBug> static void keygen ( unsigned char * send , poly * sk , OQS_RAND * rand ) { <S2SV_EndBug> poly a , e , r , pk ; unsigned char seed [ NEWHOPE_SEEDBYTES ] ; rand -> rand_n ( rand , seed , NEWHOPE_SEEDBYTES ) ; gen_a ( & a , seed ) ; poly_getnoise ( sk , rand ) ; poly_ntt ( sk ) ; poly_getnoise ( &...
<S2SV_ModStart> <S2SV_null> <S2SV_null> <S2SV_null> <S2SV_ModEnd> void keygen (
6,709
CWE-000 void stm32_clock_init ( void ) { # if ! STM32_NO_INIT RCC -> CR |= RCC_CR_HSION ; while ( ! ( RCC -> CR & RCC_CR_HSIRDY ) ) ; RCC -> CFGR &= ~ RCC_CFGR_SW ; RCC -> CFGR |= RCC_CFGR_SWS_HSI ; while ( ( RCC -> CFGR & RCC_CFGR_SWS ) != RCC_CFGR_SWS_HSI ) ; RCC -> CR &= RCC_CR_HSITRIM | RCC_CR_HSION ; RCC -> CFGR =...
<S2SV_ModStart> STM32_PPRE | STM32_HPRE | ( ( STM32_PREDIV & STM32_PLLXTPRE_MASK ) << STM32_PLLXTPRE_OFFSET )
6,710
CWE-000 void EditEscapeCChars ( HWND hwnd ) { if ( SendMessage ( hwnd , SCI_GETSELECTIONEND , 0 , 0 ) - SendMessage ( hwnd , SCI_GETSELECTIONSTART , 0 , 0 ) ) { if ( SC_SEL_RECTANGLE != SendMessage ( hwnd , SCI_GETSELECTIONMODE , 0 , 0 ) ) { <S2SV_StartBug> EDITFINDREPLACE efr = { "" , "" , "" , "" , 0 , 0 , 0 , 0 , 0 ...
<S2SV_ModStart> , 0 , 0 ,
6,711
CWE-000 int32_t get_free_pages ( struct ftl_base_t * _ftl_base , struct ftl_context_t * ptr_ftl_context , uint32_t nr_pages , uint32_t * ptr_bus , uint32_t * ptr_chip , uint32_t * ptr_block , uint32_t * ptr_page ) { if ( _ftl_base -> ftl_get_free_physical_page_address ( ptr_ftl_context , nr_pages , ptr_bus , ptr_chip ,...
<S2SV_ModStart> NULL ) { printf ( "start<S2SV_blank>GC\\n" ) ;
6,712
CWE-000 str compileString ( Symbol * fcn , Client cntxt , str s ) { Client c ; int len = ( int ) strlen ( s ) ; buffer * b ; str msg = MAL_SUCCEED ; str qry ; str old = s ; ( void ) cntxt ; s = mal_cmdline ( s , & len ) ; mal_unquote ( qry = GDKstrdup ( s ) ) ; if ( old != s ) GDKfree ( s ) ; b = ( buffer * ) GDKmalloc...
<S2SV_ModStart> ( b , "compileString" <S2SV_ModEnd> ) , b <S2SV_ModStart> -> usermodule = cntxt -> usermodule <S2SV_ModEnd> ; c -> <S2SV_ModStart> = 0 ; c -> listing = 0 ; <S2SV_ModStart> ) ) { c -> usermodule = 0 ; <S2SV_ModStart> "user" , "main" <S2SV_ModEnd> ) ; if <S2SV_ModStart> = 0 ; c -> usermodule = 0 ;
6,713
CWE-000 static void gen_lea_v_seg ( DisasContext * s , TCGMemOp aflag , TCGv a0 , int def_seg , int ovr_seg ) { switch ( aflag ) { # ifdef TARGET_X86_64 case MO_64 : if ( ovr_seg < 0 ) { tcg_gen_mov_tl ( cpu_A0 , a0 ) ; return ; } break ; # endif case MO_32 : <S2SV_StartBug> if ( ovr_seg < 0 ) { <S2SV_EndBug> if ( s ->...
<S2SV_ModStart> ovr_seg < 0 && <S2SV_ModEnd> s -> addseg <S2SV_ModStart> def_seg ; } if ( ovr_seg < 0 ) <S2SV_ModEnd> { tcg_gen_ext32u_tl ( <S2SV_ModStart> ; return ; <S2SV_ModEnd> } break ;
6,714
CWE-000 static matrix * matrix_create ( size_t rows , size_t columns ) { <S2SV_StartBug> matrix * instance = malloc ( sizeof ( matrix ) ) ; <S2SV_EndBug> instance -> type = MATRIX_TYPE ; instance -> rows = rows ; instance -> columns = columns ; instance -> vector = Vector . create ( rows * columns ) ; return instance ;...
<S2SV_ModStart> columns ) { check ( rows > 0 && columns > 0 , "Wrong<S2SV_blank>matrix<S2SV_blank>size" ) ; <S2SV_ModStart> ( matrix ) ) ; check_memory ( instance <S2SV_ModStart> return instance ; error : return NULL ;
6,715
CWE-000 static int nmea_reader_handler ( zloop_t * zloop , zsock_t * zsock , void * arg ) { ( void ) zloop ; ( void ) arg ; zmsg_t * msg ; while ( 1 ) { msg = zmsg_recv ( zsock ) ; if ( msg != NULL ) { break ; } else if ( errno == EINTR ) { continue ; } else { sbp_log ( LOG_ERR , "error<S2SV_blank>in<S2SV_blank>zmsg_re...
<S2SV_ModStart> ) ) ; } exit_success : zmsg_destroy ( & msg ) ; <S2SV_ModStart> 0 ; } <S2SV_ModEnd> <S2SV_null> <S2SV_null> <S2SV_null>
6,716
CWE-000 int rpc_get_block_callback ( void * data , int flags , xdag_hash_t hash , xdag_amount_t amount , xdag_time_t time , const xdag_remark_t remark ) { cJSON * callback_data = ( cJSON * ) data ; if ( ! callback_data ) { return - 1 ; } char address_buf [ 33 ] = { 0 } ; xdag_hash2address ( hash , address_buf ) ; cJSON...
<S2SV_ModStart> json_state ) ; char remark_buf [ 33 ] = { 0 } ; memcpy ( remark_buf , remark , 32 ) ; <S2SV_ModStart> = cJSON_CreateString ( remark_buf <S2SV_ModEnd> ) ; cJSON_AddItemToObject
6,717
CWE-000 static UA_StatusCode typeCheckVariableNode ( UA_Server * server , UA_Session * session , const UA_VariableNode * node , const UA_NodeId * typeDef ) { const UA_VariableTypeNode * vt = ( const UA_VariableTypeNode * ) UA_NodestoreSwitch_getNode ( server , typeDef ) ; if ( ! vt || vt -> nodeClass != UA_NODECLASS_VA...
<S2SV_ModStart> ; } } const UA_Node * nodeUpdate = UA_NodestoreSwitch_getNode ( server , & node -> nodeId ) ; retval = typeCheckVariableNodeWithValue ( server , session , <S2SV_ModEnd> ( const UA_VariableNode <S2SV_ModStart> UA_VariableNode * ) nodeUpdate <S2SV_ModEnd> , vt , <S2SV_ModStart> vt ) ; UA_NodestoreSwitch_r...
6,718
CWE-000 void log_vemit ( config_t * conf , int priority , const char * fmt , va_list ap ) { FILE * stream ; if ( conf -> cf_flags & CONFIG_LOG_INITIALIZED ) { # if HAVE_VSYSLOG vsyslog ( priority , fmt , ap ) ; # else char msg_buf [ LOGMSG_BUF ] ; vsnprintf ( msg_buf , sizeof ( msg_buf ) , fmt , ap ) ; msg_buf [ sizeof...
<S2SV_ModStart> : stdout ; fprintf ( stream , prefixes [ priority ] ) ;
6,719
CWE-000 static void enable_odl_phy_mux ( uint32_t gcid , int index ) { uint64_t reg ; uint64_t phy_config_scom ; prlog ( PR_DEBUG , "OCAPI:<S2SV_blank>%s:<S2SV_blank>Enabling<S2SV_blank>ODL<S2SV_blank>to<S2SV_blank>PHY<S2SV_blank>MUXes\\n" , __func__ ) ; switch ( index ) { case 2 : case 3 : phy_config_scom = OBUS_LL0_I...
<S2SV_ModStart> ~ OBUS_IOOL_PHY_CONFIG_LINK1_OLL_ENABLED ; <S2SV_ModEnd> xscom_write ( gcid
6,720
CWE-000 void selectBestState ( int * parentOne ) { int leastAttacked = - 1 ; int leastAttackedPairs = ( nqueens - 1 ) * nqueens / 2 ; for ( int i = 0 ; i < popSize ; i ++ ) { <S2SV_StartBug> if ( leastAttackedPairs > countConflicts ( i ) ) { <S2SV_EndBug> leastAttacked = i ; <S2SV_StartBug> leastAttackedPairs = countCo...
<S2SV_ModStart> ( leastAttackedPairs > nConflicts [ i ] <S2SV_ModEnd> ) { leastAttacked <S2SV_ModStart> ; leastAttackedPairs = nConflicts [ i ] <S2SV_ModEnd> ; } }
6,721
CWE-000 static PyObject * unicode_encode_locale ( PyObject * unicode , const char * errors , int current_locale ) { _Py_error_handler error_handler = _Py_GetErrorHandler ( errors ) ; Py_ssize_t wlen ; wchar_t * wstr = PyUnicode_AsWideCharString ( unicode , & wlen ) ; if ( wstr == NULL ) { return NULL ; } Py_ssize_t wle...
<S2SV_ModStart> str ) ; _PyMem_RawFreeCtx ( & interp -> core_config . ctx , <S2SV_ModEnd> str ) ;
6,722
CWE-000 int cpuidle_idle_call ( void ) { struct cpuidle_device * dev = __this_cpu_read ( cpuidle_devices ) ; struct cpuidle_driver * drv ; int next_state , entered_state ; if ( off ) return - ENODEV ; if ( ! initialized ) return - ENODEV ; if ( ! dev || ! dev -> enabled ) return - EBUSY ; drv = cpuidle_get_cpu_driver (...
<S2SV_ModStart> , dev ) ; if ( next_state < 0 ) return - EBUSY
6,723
CWE-000 static bool decode_unix_diag_inode ( struct tcb * const tcp , const kernel_ulong_t addr , const unsigned int len , const void * const opaque_data ) { uint32_t inode ; const size_t nmemb = len / sizeof ( inode ) ; if ( ! nmemb ) return false ; print_array ( tcp , addr , nmemb , & inode , sizeof ( inode ) , <S2SV...
<S2SV_ModStart> inode ) , ucopyn_for_print <S2SV_ModEnd> , print_inode ,
6,724
CWE-000 static inline bool vector_check_bounds ( struct qb_vector * vector , const int index ) { <S2SV_StartBug> return ( index < vector -> size ) ; <S2SV_EndBug> }
<S2SV_ModStart> vector -> size && index >= 0
6,725
CWE-000 static void test_Image_2D ( void * * state ) { ( void ) state ; Image image2D ; char * * image1 = { "" } ; <S2SV_StartBug> Image_init_2D ( & image2D , 1 , 1 , image1 ) ; <S2SV_EndBug> assert_int_equal ( image2D . get_height ( & image2D ) , 1 ) ; <S2SV_StartBug> assert_int_equal ( image2D . get_width ( & image2D...
<S2SV_ModStart> & image2D , 0 <S2SV_ModEnd> , 1 , <S2SV_ModStart> image2D ) , 0 <S2SV_ModEnd> ) ; assert_int_equal
6,726
CWE-000 void get_info ( WINDOW * win , int devid , char * address ) { myLog ( LOG_DEBUG , "--><S2SV_blank>%s" , __FUNCTION__ ) ; int _dd , _timeout = 20000 , _connected = 0 , _scroll = 0 ; bdaddr_t _bdaddr ; uint16_t _handle ; struct hci_conn_info_req * _cr ; struct hci_version _ver ; uint8_t _features [ 8 ] ; struct h...
<S2SV_ModStart> ) ; } free ( _cr ) ;
6,727
CWE-000 static void rtwn_newassoc ( struct ieee80211_node * ni , int isnew __unused ) { struct rtwn_softc * sc = ni -> ni_ic -> ic_softc ; struct rtwn_node * un = RTWN_NODE ( ni ) ; int id ; if ( un -> id != RTWN_MACID_UNDEFINED ) return ; RTWN_NT_LOCK ( sc ) ; for ( id = 0 ; id <= sc -> macid_limit ; id ++ ) { if ( id...
<S2SV_ModStart> return ; } <S2SV_ModEnd> id |= RTWN_MACID_VALID <S2SV_ModStart> rtwn_set_media_status ) ; <S2SV_ModEnd> } <S2SV_null> <S2SV_null>
6,728
CWE-000 void pg_set_regex_collation ( Oid collation ) { if ( lc_ctype_is_c ( collation ) ) { pg_regex_strategy = PG_REGEX_LOCALE_C ; pg_regex_locale = 0 ; } else { if ( collation == DEFAULT_COLLATION_OID ) pg_regex_locale = 0 ; else if ( OidIsValid ( collation ) ) { pg_regex_locale = pg_newlocale_from_collation ( colla...
<S2SV_ModStart> { ereport ( WARNING <S2SV_ModEnd> , ( errcode
6,729
CWE-000 static char * * create_tmp_env ( t_sh * sh , int size , t_token * token ) { char * * tmp_env ; int i ; if ( ! token ) { sh -> current_token = NULL ; return ( NULL ) ; } else if ( size == 1 ) { token = text_rules ( sh ) ; return ( NULL ) ; } if ( ft_strcmp ( token -> value , "env" ) ) ++ size ; tmp_env = ( char ...
<S2SV_ModStart> while ( i <S2SV_ModEnd> < size ) <S2SV_ModStart> tmp_env [ i ++
6,730
CWE-000 static int write ( devfs_dev_t * dev , fs_filed_t * fd , void * buf , size_t n ) { <S2SV_StartBug> n = ringbuf_write ( & loop_buf , buf , n ) ; <S2SV_EndBug> DEBUG ( "copy<S2SV_blank>to<S2SV_blank>buffer<S2SV_blank>\\"%*.*s\\"\\n" , n , n , buf ) ; return n ; }
<S2SV_ModStart> ringbuf_write ( & buf <S2SV_ModEnd> , buf ,
6,731
CWE-000 esp_err_t touch_pad_read ( touch_pad_t touch_num , uint16_t * touch_value ) { RTC_MODULE_CHECK ( touch_num < TOUCH_PAD_MAX , "Touch_Pad<S2SV_blank>Num<S2SV_blank>Err" , ESP_ERR_INVALID_ARG ) ; <S2SV_StartBug> RTC_MODULE_CHECK ( touch_value != NULL , "touch_value" , ESP_ERR_INVALID_ARG ) ; <S2SV_EndBug> uint32_t...
<S2SV_ModStart> "touch_value" , ESP_ERR_INVALID_ARG ) ; RTC_MODULE_CHECK ( rtc_touch_sem != NULL , "Touch<S2SV_blank>pad<S2SV_blank>not<S2SV_blank>initialized" , ESP_FAIL ) ; xSemaphoreTake ( rtc_touch_sem , portMAX_DELAY <S2SV_ModStart> SENS_TOUCH_XPD_WAIT_S ) ; portEXIT_CRITICAL ( & rtc_spinlock ) ; <S2SV_ModStart> v...
6,732
CWE-000 static void imx6_pcie_init_phy ( struct pcie_port * pp ) { int ret ; struct imx6_pcie * imx6_pcie = to_imx6_pcie ( pp ) ; if ( is_imx7d_pcie ( imx6_pcie ) ) { regulator_set_voltage ( imx6_pcie -> pcie_phy_regulator , <S2SV_StartBug> 1030000 , 1030000 ) ; <S2SV_EndBug> ret = regulator_enable ( imx6_pcie -> pcie_...
<S2SV_ModStart> -> pcie_phy_regulator , 1000000 , 1000000 <S2SV_ModEnd> ) ; ret
6,733
CWE-000 int timebar_click ( int x , int y ) { <S2SV_StartBug> if ( screenHeight - y < VP_timebar . height && nglobal_times > 0 ) { <S2SV_EndBug> int timebar_right_pos ; int timebar_left_pos ; timebar_left_pos = VP_timebar . left + timebar_left_width ; timebar_right_pos = VP_timebar . right - timebar_right_width ; if ( ...
<S2SV_ModStart> - y < titlesafe_offset +
6,734
CWE-000 static int mt7697_wext_siwencodeext ( struct net_device * ndev , struct iw_request_info * info , struct iw_point * erq , char * extra ) { struct mt7697_cfg80211_info * cfg = mt7697_priv ( ndev ) ; struct wireless_dev * wdev = ndev -> ieee80211_ptr ; struct mt7697_vif * vif = mt7697_vif_from_wdev ( wdev ) ; stru...
<S2SV_ModStart> key_len ) ; <S2SV_ModEnd> } cleanup :
6,735
CWE-000 static SSIZE_T nio_ethernet_recv ( nio_ethernet_t * nio_ethernet , void * pkt , SSIZE_T max_len ) { struct pcap_pkthdr * pkt_info ; const u_char * pkt_data ; SSIZE_T rlen ; <S2SV_StartBug> int res ; <S2SV_EndBug> timedout : <S2SV_StartBug> res = pcap_next_ex ( nio_ethernet -> pcap_dev , & pkt_info , & pkt_data ...
<S2SV_ModStart> ; int res = 0 ; while ( res == 0 ) { <S2SV_ModEnd> res = pcap_next_ex <S2SV_ModStart> & pkt_data ) <S2SV_ModEnd> ; } if <S2SV_ModStart> ( max_len , ( SSIZE_T )
6,736
CWE-000 void config_set_value ( t_config * self , char * key , char * value ) { <S2SV_StartBug> t_dictionary * dictionary = self -> properties ; <S2SV_EndBug> if ( dictionary_has_key ( dictionary , key ) ) { void * element = dictionary_remove ( dictionary , key ) ; free ( element ) ; } <S2SV_StartBug> dictionary_put ( ...
<S2SV_ModStart> self -> properties ; char * duplicate_key ; char * duplicate_value ; duplicate_key = string_duplicate ( key ) ; duplicate_value = string_duplicate ( value ) <S2SV_ModStart> -> properties , duplicate_key , ( void * ) duplicate_value <S2SV_ModEnd> ) ; }
6,737
CWE-000 size_t binary_tree_height ( const binary_tree_t * tree ) { size_t count = 0 , count2 = 0 ; <S2SV_StartBug> if ( ( tree == NULL ) || ( tree -> left == NULL && tree -> right == NULL ) ) <S2SV_EndBug> <S2SV_StartBug> return ( 0 ) ; <S2SV_EndBug> if ( binary_tree_is_leaf ( tree -> left ) != 1 ) <S2SV_StartBug> { <S...
<S2SV_ModStart> ; if ( <S2SV_ModEnd> tree == NULL <S2SV_ModStart> tree == NULL <S2SV_ModEnd> ) return ( <S2SV_ModStart> 0 ) ; if ( tree -> left != NULL ) { <S2SV_ModStart> != 1 ) <S2SV_ModEnd> ++ count ; <S2SV_ModStart> left ) ; ++ count ; } if ( tree -> right != NULL ) { <S2SV_ModEnd> if ( binary_tree_is_leaf <S2SV_Mo...
6,738
CWE-000 <S2SV_StartBug> static void _on_timer_retry ( void * source , zRPC_event event , void * param ) { <S2SV_EndBug> zRPC_resolved_param * resolved_param = param ; zRPC_resolved * resolved = resolved_param -> resolved ; blocking_resolve_address_impl ( resolved -> resolve_name , & resolved -> inetaddres ) ; if ( & re...
<S2SV_ModStart> void _on_timer_retry ( zRPC_timespec deadline <S2SV_ModEnd> , void * <S2SV_ModStart> resolved_param -> scheduler ) ; zRPC_timer_deadline ( <S2SV_ModEnd> resolved -> retry_timer <S2SV_ModStart> resolved -> retry_timer , deadline <S2SV_ModEnd> , _on_timer_retry , <S2SV_ModStart> param ) ; <S2SV_ModEnd> } ...
6,739
CWE-000 static ssize_t hwmon_attr_show ( struct device * dev , struct device_attribute * devattr , char * buf ) { struct hwmon_device_attribute * hattr = to_hwmon_attr ( devattr ) ; long val ; int ret ; ret = hattr -> ops -> read ( dev , hattr -> type , hattr -> attr , hattr -> index , & val ) ; if ( ret < 0 ) return r...
<S2SV_ModStart> return ret ; trace_hwmon_attr_show ( hattr -> index + hwmon_attr_base ( hattr -> type ) , hattr -> name , val ) ;
6,740
CWE-000 static int lo_init_request ( struct blk_mq_tag_set * set , struct request * rq , unsigned int hctx_idx , unsigned int numa_node ) { <S2SV_StartBug> struct loop_cmd * cmd = blk_mq_rq_to_pdu ( rq ) ; <S2SV_EndBug> cmd -> rq = rq ; kthread_init_work ( & cmd -> work , loop_queue_work ) ; return 0 ; }
<S2SV_ModStart> ) { struct lo_cmd <S2SV_ModEnd> * cmd =
6,741
CWE-000 bool isMyKingSafe ( boardGame * board ) { assert ( board != NULL ) ; bool safe = false ; int position = - 1 ; if ( board -> curPlayer == 1 ) { position = trackKingPosition ( board , WhiteKing ) ; if ( position == - 1 ) { printf ( "whiteKing<S2SV_blank>wasn\'t<S2SV_blank>found" ) ; return true ; } safe = safeAre...
<S2SV_ModStart> WhiteKing ) ; if ( ! safe ) printf ( "not<S2SV_blank>safe\\n" ) ;
6,742
CWE-000 static void init_shared_dict ( DictInfo * info , char * dictFile , char * affFile , char * stopFile ) { int size ; SharedIspellDict * shdict = NULL ; SharedStopList * shstop = NULL ; <S2SV_StartBug> IspellDict * dict ; <S2SV_EndBug> StopList stoplist ; shdict = get_shared_dict ( dictFile , affFile ) ; clean_dic...
<S2SV_ModStart> = NULL ; <S2SV_ModEnd> shdict = get_shared_dict <S2SV_ModStart> NULL ) { IspellDict * dict ; <S2SV_ModStart> NULL ) { StopList stoplist ; <S2SV_ModStart> -> affixFile , affFile <S2SV_ModEnd> , strlen ( <S2SV_ModStart> -> stopFile , stopFile <S2SV_ModEnd> , strlen ( <S2SV_ModStart> ) ) ; info -> saveCntx...
6,743
CWE-000 s_map * * filenames_to_table ( char * * filenames ) { int y ; int i ; s_map * * files ; i = 0 ; y = i ; if ( ! ( files = ( s_map * * ) malloc ( sizeof ( s_map * ) * MAX_FILES_PER_DIR + 1 ) ) ) error ( "Failed<S2SV_blank>to<S2SV_blank>allocate<S2SV_blank>memory.<S2SV_blank>(Filenames<S2SV_blank>to<S2SV_blank>tab...
<S2SV_ModStart> NULL ) { my_printf_fd ( 1 , "Creating<S2SV_blank>node<S2SV_blank>for<S2SV_blank>:<S2SV_blank>%s\\n" , filenames [ y ] ) ;
6,744
CWE-000 static void test_string_strappstream ( void ) { <S2SV_StartBug> } <S2SV_EndBug>
<S2SV_ModStart> void ) { struct cap_string * s = cap_strnew ( ) ; assert ( s != NULL ) ; cap_strdel ( s ) ;
6,745
CWE-000 void vm_init ( struct VM * vm , char * filepath , char * filename , struct GarbageCollector * gc ) { vm -> valueStack = valuestack_make ( ) ; vm -> callStack = valuestack_make ( ) ; vm -> envStack = envstack_make ( ) ; envstack_push ( vm -> envStack , 0 ) ; vm -> globalEnv = malloc ( sizeof ( struct Env ) ) ; *...
<S2SV_ModStart> = gc ; value_gc = gc ; <S2SV_ModStart> value_make ( FUN ) ; dummy -> funValue = 0 ; dummy -> funArgc = 0 ; dummy -> funArgs = malloc ( 1 ) ; dummy -> funClosureStack = valuestack_make (
6,746
CWE-000 static int get_free_inum ( struct fsmem * fsm , fs_u64_t * inump ) { fs_u64_t off = 0 , blkno , len ; fs_u64_t inum = 0 ; fs_u32_t rd ; char * buf = NULL , bit ; int i , j , error = 0 , nbytes = 0 ; * inump = 0 ; if ( ( fsm -> fsm_imapip -> mino_size << 3 ) > fsm -> fsm_sb -> iused ) { buf = ( char * ) malloc (...
<S2SV_ModStart> ++ ) { <S2SV_ModEnd> if ( buf <S2SV_ModStart> i << 3 <S2SV_ModEnd> ; if ( <S2SV_ModStart> bit <<= 1 <S2SV_ModEnd> ; inum ++
6,747
CWE-000 irqreturn_t inv_mpu6050_read_fifo ( int irq , void * p ) { struct iio_poll_func * pf = p ; struct iio_dev * indio_dev = pf -> indio_dev ; struct inv_mpu6050_state * st = iio_priv ( indio_dev ) ; size_t bytes_per_datum ; int result ; u8 data [ INV_MPU6050_OUTPUT_DATA_SIZE ] ; u16 fifo_count ; s64 timestamp ; u64...
<S2SV_ModStart> indio_dev ) ; <S2SV_ModEnd> mutex_unlock ( &
6,748
CWE-000 void hidinput_hid_event ( struct hid_device * hid , struct hid_field * field , struct hid_usage * usage , __s32 value ) { struct input_dev * input ; unsigned * quirks = & hid -> quirks ; if ( ! field -> hidinput ) return ; input = field -> hidinput -> input ; if ( ! usage -> type ) return ; if ( usage -> hat_mi...
<S2SV_ModStart> ( field -> flags & HID_MAIN_ITEM_NULL_STATE ) && ( field ->
6,749
CWE-000 int main ( ) { char * cmd_str = ( char * ) malloc ( MAX_COMMAND_SIZE ) ; while ( 1 ) { printf ( "msh><S2SV_blank>" ) ; while ( ! fgets ( cmd_str , MAX_COMMAND_SIZE , stdin ) ) ; char * token [ MAX_NUM_ARGUMENTS + 1 ] ; int token_count = 0 ; char * arg_ptr ; char * working_str = strdup ( cmd_str ) ; char * worki...
<S2SV_ModStart> , "quit" ) == 0 <S2SV_ModStart> , "exit" ) == 0
6,750
CWE-000 int piControlGetVariableInfo ( SPIVariable * pSpiVariable ) { piControlOpen ( ) ; if ( PiControlHandle_g < 0 ) <S2SV_StartBug> return PiControlHandle_g ; <S2SV_EndBug> return ioctl ( PiControlHandle_g , KB_FIND_VARIABLE , pSpiVariable ) ; }
<S2SV_ModStart> 0 ) return - errno <S2SV_ModEnd> ; return ioctl
6,751
CWE-000 int pool_set_file_write ( struct pool_set_file * file , void * buff , size_t nbytes , uint64_t off ) { if ( off + nbytes > file -> size ) return - 1 ; if ( file -> fileio ) { ssize_t num = pwrite ( file -> fd , buff , nbytes , ( off_t ) off ) ; if ( num < ( ssize_t ) nbytes ) return - 1 ; } else { memcpy ( ( ch...
<S2SV_ModStart> nbytes ) ; util_persist_auto ( 0 , ( char * ) file -> addr + off , nbytes ) ;
6,752
CWE-000 void sy ( Input * I , Output * O , char * prec ) { Stack ostack ; Stack_Init ( & ostack ) ; while ( I -> sum [ I -> position ] != '\\0' ) { char currentToken = I -> sum [ I -> position ] ; if ( currentToken == '(' ) { Stack_Push ( & ostack , currentToken ) ; } else if ( currentToken == ')' ) { while ( Stack_Top...
<S2SV_ModStart> currentToken != '(' && currentToken != '\\0' <S2SV_ModStart> ) ) { <S2SV_ModEnd> atoo ( O
6,753
CWE-000 IOR_test_t * ReadConfigScript ( char * scriptName ) { int test_num = 0 ; int runflag = 0 ; char linebuf [ MAX_STR ] ; char empty [ MAX_STR ] ; <S2SV_StartBug> FILE * file ; <S2SV_EndBug> IOR_test_t * head = NULL ; IOR_test_t * tail = NULL ; head = CreateTest ( & initialTestParams , test_num ++ ) ; tail = head ;...
<S2SV_ModStart> MAX_STR ] ; char * ptr ; <S2SV_ModStart> NULL ) { ptr = linebuf ; while ( isspace ( * ptr ) ) ptr ++ ; <S2SV_ModStart> ( sscanf ( ptr <S2SV_ModEnd> , "%s" , <S2SV_ModStart> ( sscanf ( ptr <S2SV_ModEnd> , "<S2SV_blank>#%s" , <S2SV_ModStart> ( contains_only ( ptr <S2SV_ModEnd> , "ior<S2SV_blank>stop" ) <S...
6,754
CWE-000 int is_banned ( struct Channel * chptr , struct Client * who , struct membership * msptr , const char * s , const char * s2 , const char * * forward ) <S2SV_StartBug> { <S2SV_EndBug> if ( chptr -> last_checked_client != NULL && who == chptr -> last_checked_client && chptr -> last_checked_type == CHFL_BAN && chp...
<S2SV_ModStart> forward ) { # if 0 <S2SV_ModStart> -> last_checked_result ; # else return is_banned_list ( chptr , & chptr -> banlist , who , msptr , s , s2 , forward ) ; # endif
6,755
CWE-000 void mlAdvance ( MovLayer * ml , Region * fence , Region * pad1Fence , Region * pad2Fence ) { Vec2 newPos ; u_char axis ; Region shapeBoundary ; char hitPaddle = 0 ; for ( ; ml ; ml = ml -> next ) { vec2Add ( & newPos , & ml -> layer -> posNext , & ml -> velocity ) ; abShapeGetBounds ( ml -> layer -> abShape , ...
<S2SV_ModStart> = 1 ; break ; <S2SV_ModStart> hitPaddle = 1 ; break
6,756
CWE-000 static void determine_decryption_key ( genaro_download_state_t * state ) { if ( ! state -> env -> encrypt_options || ! state -> env -> encrypt_options -> priv_key ) { state -> decryption_key_ctr -> key = NULL ; state -> decryption_key_ctr -> ctr = NULL ; <S2SV_StartBug> } else if ( state -> decryption_key_ctr &...
<S2SV_ModStart> -> decryption_key_ctr -> key_len != 0 <S2SV_ModEnd> && state -> <S2SV_ModStart> -> decryption_key_ctr -> ctr_len != 0 <S2SV_ModEnd> ) { return
6,757
CWE-000 s32 igb_pll_workaround_i210 ( struct e1000_hw * hw ) { s32 ret_val ; u32 wuc , mdicnfg , ctrl , ctrl_ext , reg_val ; u16 nvm_word , phy_word , pci_word , tmp_nvm ; int i ; wuc = rd32 ( E1000_WUC ) ; mdicnfg = rd32 ( E1000_MDICNFG ) ; reg_val = mdicnfg & ~ E1000_MDICNFG_EXT_MDIO ; wr32 ( E1000_MDICNFG , reg_val ...
<S2SV_ModStart> E1000_PHY_PLL_FREQ_PAGE ) ; phy_word = E1000_PHY_PLL_UNCONF ;
6,758
CWE-000 static int secretUndefine ( virSecretPtr secret ) { int ret = - 1 ; virSecretObjPtr obj ; virSecretDefPtr def ; virObjectEventPtr event = NULL ; if ( ! ( obj = secretObjFromSecret ( secret ) ) ) goto cleanup ; def = virSecretObjGetDef ( obj ) ; if ( virSecretUndefineEnsureACL ( secret -> conn , def ) < 0 ) goto...
<S2SV_ModStart> obj ) ; virObjectUnref ( obj ) ; obj = NULL ;
6,759
CWE-000 int file_read ( struct node * n , struct sample * smps [ ] , unsigned cnt , unsigned * release ) { struct file * f = ( struct file * ) n -> _vd ; int ret ; uint64_t steps ; assert ( cnt == 1 ) ; retry : ret = io_scan ( & f -> io , smps , cnt ) ; <S2SV_StartBug> if ( ret = 0 ) { <S2SV_EndBug> if ( io_eof ( & f -...
<S2SV_ModStart> if ( ret <= <S2SV_ModEnd> 0 ) {
6,760
CWE-000 static int dvb_device_open ( struct inode * inode , struct file * file ) { struct dvb_device * dvbdev ; mutex_lock ( & dvbdev_mutex ) ; down_read ( & minor_rwsem ) ; dvbdev = dvb_minors [ iminor ( inode ) ] ; if ( dvbdev && dvbdev -> fops ) { int err = 0 ; <S2SV_StartBug> const struct file_operations * old_fops...
<S2SV_ModStart> struct file_operations * new_fops ; new_fops <S2SV_ModEnd> = fops_get ( <S2SV_ModStart> ; if ( ! new_fops ) <S2SV_ModEnd> goto fail ; <S2SV_ModStart> goto fail ; file -> private_data = dvbdev ; replace_fops ( file , new_fops ) ; <S2SV_ModEnd> if ( file <S2SV_ModStart> inode , file <S2SV_ModEnd> ) ; up_r...
6,761
CWE-000 static int upathmatch ( struct tcb * const tcp , const kernel_ulong_t upath ) { char path [ PATH_MAX + 1 ] ; <S2SV_StartBug> return umovestr ( tcp , upath , sizeof path , path ) > 0 && <S2SV_EndBug> pathmatch ( path ) ; }
<S2SV_ModStart> upath , sizeof ( path ) <S2SV_ModEnd> , path )
6,762
CWE-000 static int khttpd_file_get_exchange_get ( struct khttpd_exchange * exchange , void * arg , ssize_t space , struct mbuf * * data_out ) { struct khttpd_mbuf_json logent ; struct khttpd_file_get_exchange_data * data ; struct thread * td ; struct mbuf * hd , * mb , * lmb ; struct sf_buf * sf ; struct vm_page * * pa...
<S2SV_ModStart> ( data -> io_offset == data -> end_offset <S2SV_ModEnd> ) { * <S2SV_ModStart> = MIN ( ptoa ( nitems ( data -> pages ) ) - ( data -> io_offset & PAGE_MASK ) , MIN ( <S2SV_ModStart> , data -> end_offset - data -> io_offset ) <S2SV_ModEnd> ) ; khttpd_file_read_file <S2SV_ModStart> ; data -> <S2SV_ModEnd> i...
6,763
CWE-000 static void gf_enable_irq ( struct gf_dev * gf_dev ) <S2SV_StartBug> { <S2SV_EndBug> if ( gf_dev -> irq_enabled ) { pr_warn ( "IRQ<S2SV_blank>has<S2SV_blank>been<S2SV_blank>enabled.\\n" ) ; } else { <S2SV_StartBug> enable_irq ( gf_dev -> irq ) ; <S2SV_EndBug> gf_dev -> irq_enabled = 1 ; <S2SV_StartBug> } <S2SV_...
<S2SV_ModStart> gf_dev ) { struct irq_desc * desc ; <S2SV_ModStart> } else { desc = irq_to_desc ( gf_dev -> irq ) ; if ( desc && desc -> depth > 0 ) { <S2SV_ModStart> = 1 ; pr_info ( "%s:<S2SV_blank>irq_enabled:%d" , __func__ , gf_dev -> irq_enabled ) ; }
6,764
CWE-000 json_t * get_ob_campaigns_all ( void ) { int ret ; char * sql ; json_t * j_res ; json_t * j_tmp ; asprintf ( & sql , "select<S2SV_blank>*<S2SV_blank>from<S2SV_blank>ob_campaign<S2SV_blank>where<S2SV_blank>in_use=%d;" , E_USE_OK ) ; <S2SV_StartBug> ret = db_ctx_query ( g_db_ob , sql ) ; <S2SV_EndBug> if ( ret ==...
<S2SV_ModStart> ( g_db_ob , sql ) ; sfree (
6,765
CWE-000 int rnl_set_destroy ( struct rnl_set * set ) { int i ; size_t count ; if ( ! set ) { LOG_ERR ( "Bogus<S2SV_blank>set<S2SV_blank>passed,<S2SV_blank>cannot<S2SV_blank>destroy" ) ; return - 1 ; } count = 0 ; for ( i = 0 ; i < ARRAY_SIZE ( set -> handlers ) ; i ++ ) { if ( set -> handlers [ i ] . cb != NULL ) { cou...
<S2SV_ModStart> count ++ ; LOG_WARN <S2SV_ModEnd> ( "Set<S2SV_blank>%pK<S2SV_blank>has<S2SV_blank>at<S2SV_blank>least<S2SV_blank>one<S2SV_blank>hander<S2SV_blank>still<S2SV_blank>" "registered,<S2SV_blank>it<S2SV_blank>will<S2SV_blank>be<S2SV_blank>unregistered" <S2SV_ModStart> set ) ; LOG_INFO <S2SV_ModEnd> ( "Set<S2S...
6,766
CWE-000 extern void UpdateGamma_SCALE1 ( int state , void * ss , hmm_t * hmm ) { ssGamma * SS = ( ssGamma * ) ss ; MLEGamma_SCALE1 ( SS [ 0 ] . N , SS [ 0 ] . sumPiXi , SS [ 0 ] . sumLogPiXi , & ( hmm [ 0 ] . em_args [ state ] [ 0 ] ) , & ( hmm [ 0 ] . em_args [ state ] [ 1 ] ) ) ; <S2SV_StartBug> Rprintf ( "[UpdateGam...
<S2SV_ModStart> ) ) ; if ( hmm -> verb )
6,767
CWE-000 static int s_Adjust ( SConnNetInfo * net_info , void * data , unsigned int n ) { SServiceConnector * uuu = ( SServiceConnector * ) data ; const char * user_header ; char * iter_header ; SSERV_InfoCPtr info ; assert ( n || uuu -> extra . adjust ) ; assert ( ! net_info -> firewall || net_info -> stateless ) ; if ...
<S2SV_ModStart> . data , n <S2SV_ModEnd> ) ; uuu
6,768
CWE-000 static bool variable_matches ( const char * var_name , size_t len , const char * match_name , int * match ) { for ( * match = 0 ; ; ( * match ) ++ ) { char c = match_name [ * match ] ; <S2SV_StartBug> char u = var_name [ * match ] ; <S2SV_EndBug> if ( c == '*' ) return true ; if ( ! c && * match == len ) return...
<S2SV_ModStart> match ] ; switch ( c ) { case '*' : return true ; case '\\0' : return ( * match == len ) ; default : if ( * match < len && c == <S2SV_ModEnd> var_name [ * <S2SV_ModStart> * match ] ) continue ; <S2SV_ModEnd> return false ; <S2SV_ModStart> return false ; } } <S2SV_ModEnd> } <S2SV_null> <S2SV_null>
6,769
CWE-000 static void dbg_print_value ( struct json_value * v ) { if ( v == ROOT_VALUE ) { printf ( "ROOT_VALUE<S2SV_blank>sentinel\\n" ) ; return ; } if ( v == RESUME_ARRAY ) { printf ( "RESUME_ARRAY<S2SV_blank>sentinel\\n" ) ; return ; } if ( v == RESUME_OBJ ) { printf ( "RESUME_OBJ<S2SV_blank>sentinel\\n" ) ; return ;...
<S2SV_ModStart> ; break ; default : printf ( "unknown<S2SV_blank>enum:<S2SV_blank>%d\\n" , v -> type ) ;
6,770
CWE-000 int search_read_title_file_partial ( search_workspace_t * p_s_ws ) { assert ( p_s_ws -> index . next_unused_id > LINKED_LIST_FIRST_ID ) ; assert ( p_s_ws -> searchable_strings_len > 0 ) ; assert ( p_s_ws -> searchable_strings . fd > - 1 ) ; title_chunks_t * p_chunks = & p_s_ws -> chunks ; int const fd = p_s_ws ...
<S2SV_ModStart> 0 ) { _save_latest_topic_string ( p_s_ws ) ; <S2SV_ModEnd> int i ;
6,771
CWE-000 void AddVarDec2SymbolTable ( ParserTreeNode * x , Type typex ) { if ( x -> m_childrennum == 1 ) { <S2SV_StartBug> AddVar2SymbolTable ( x -> m_lineno , ( x -> m_firstchild ) -> IDname , typex ) ; <S2SV_EndBug> } else { ParserTreeNode * temp = x -> m_firstchild ; temp = temp -> m_nextsibiling ; temp = temp -> m_n...
<S2SV_ModStart> 1 ) { if ( checkparentstruct ( x ) == 0 ) AddVar2SymbolTable ( x -> m_lineno , ( x -> m_firstchild ) -> IDname , typex ) ; else AddStructVar2SymbolTable <S2SV_ModEnd> ( x -> <S2SV_ModStart> = typex ; if ( checkparentstruct ( x ) == 0 ) AddVar2SymbolTable ( x -> m_lineno , <S2SV_ModEnd> ( x -> <S2SV_ModS...
6,772
CWE-000 static bool max_parallel_hazard_walker ( Node * node , max_parallel_hazard_context * context ) { if ( node == NULL ) return false ; if ( check_functions_in_node ( node , max_parallel_hazard_checker , context ) ) return true ; if ( IsA ( node , CoerceToDomain ) ) { <S2SV_StartBug> if ( max_parallel_hazard_test (...
<S2SV_ModStart> max_parallel_hazard_test ( PROPARALLEL_RESTRICTED , context ) ) return true ; } if ( IsA ( node , NextValueExpr ) ) { if ( max_parallel_hazard_test ( PROPARALLEL_UNSAFE
6,773
CWE-000 int picoquic_tlsinput_stream_zero ( picoquic_cnx_t * cnx ) { int ret = 0 ; picoquic_stream_data * data = cnx -> first_stream . stream_data ; struct st_ptls_buffer_t sendbuf ; if ( data == NULL || data -> offset > cnx -> first_stream . consumed_offset ) { return 0 ; } ptls_buffer_init ( & sendbuf , "" , 0 ) ; wh...
<S2SV_ModStart> 1 ) ; if ( sendbuf . off == 0 && ( ( ptls_context_t * ) cnx -> quic -> tls_master_ctx ) -> require_client_authentication == 1 ) { cnx -> cnx_state = picoquic_state_server_ready ; } else { <S2SV_ModStart> = picoquic_state_server_almost_ready ; }
6,774
CWE-000 static void ImageDisplay ( ClientData clientData , Display * display , Drawable drawable , int imageX , int imageY , int width , int height , int drawableX , int drawableY ) { TImageInstance * instPtr = ( TImageInstance * ) clientData ; char buffer [ 200 + TCL_INTEGER_SPACE * 6 ] ; sprintf ( buffer , "%s<S2SV_b...
<S2SV_ModStart> imageY ; } SIMULATE_DRAWING
6,775
CWE-000 int main ( int argc , char * * argv ) { struct dirent * ent ; DIR * directory ; if ( argc == 1 ) { directory = opendir ( "." ) ; } if ( argc == 2 ) { directory = opendir ( argv [ 1 ] ) ; } if ( directory == NULL ) { printf ( "Cannot<S2SV_blank>open<S2SV_blank>directory." ) ; <S2SV_StartBug> exit ( 0 ) ; <S2SV_E...
<S2SV_ModStart> ; exit ( 1 <S2SV_ModEnd> ) ; } <S2SV_ModStart> ) ; } while ( ( <S2SV_ModStart> ( directory ) ) <S2SV_ModEnd> != NULL ) <S2SV_ModStart> { printf ( "%s\\n" <S2SV_ModEnd> , ent ->
6,776
CWE-000 UInt ExecProccall5args ( Stat call ) { Obj func ; Obj arg1 ; Obj arg2 ; Obj arg3 ; Obj arg4 ; Obj arg5 ; SET_BRK_CURR_STAT ( call ) ; func = EVAL_EXPR ( FUNC_CALL ( call ) ) ; <S2SV_StartBug> while ( TNUM_OBJ ( func ) != T_FUNCTION ) { <S2SV_EndBug> func = ErrorReturnObj ( "Function<S2SV_blank>Calls:<S2SV_blank...
<S2SV_ModStart> ) ) ; arg1 = EVAL_EXPR ( ARGI_CALL ( call , 1 ) ) ; arg2 = EVAL_EXPR ( ARGI_CALL ( call , 2 ) ) ; arg3 = EVAL_EXPR ( ARGI_CALL ( call , 3 ) ) ; arg4 = EVAL_EXPR ( ARGI_CALL ( call , 4 ) ) ; arg5 = EVAL_EXPR ( ARGI_CALL ( call , 5 ) ) ; if <S2SV_ModEnd> ( TNUM_OBJ ( <S2SV_ModStart> != T_FUNCTION ) <S2SV_...
6,777
CWE-000 int raxIteratorNextStep ( raxIterator * it , int noup ) { if ( it -> flags & RAX_ITER_EOF ) { return 0 ; } else if ( it -> flags & RAX_ITER_JUST_SEEKED ) { <S2SV_StartBug> it -> flags &= ~ RAX_ITER_JUST_SEEKED ; <S2SV_EndBug> return 1 ; } size_t orig_key_len = it -> key_len ; size_t orig_stack_items = it -> sta...
<S2SV_ModStart> &= ~ RAX_ITER_JUST_SEEKED ; it -> data = raxGetData ( it -> node )
6,778
CWE-000 <S2SV_StartBug> static void NRF_CE_RESETPIN ( nrf24L01_Dev * dev ) { <S2SV_EndBug> HAL_GPIO_WritePin ( dev -> NRF_CE_GPIOx , dev -> NRF_CE_GPIO_PIN , GPIO_PIN_RESET ) ; }
<S2SV_ModStart> void NRF_CE_RESETPIN ( nrf24l01_dev <S2SV_ModEnd> * dev )
6,779
CWE-000 static zx_status_t cdc_ethmac_queue_tx ( void * cookie , uint32_t options , ethmac_netbuf_t * netbuf ) { usb_cdc_t * cdc = cookie ; <S2SV_StartBug> size_t length = netbuf -> len ; <S2SV_EndBug> if ( ! cdc -> online || length > ETH_MTU || length == 0 ) { return ZX_ERR_INVALID_ARGS ; } zxlogf ( LTRACE , "%s:<S2SV...
<S2SV_ModStart> netbuf -> len ; zx_status_t status <S2SV_ModStart> tx_mutex ) ; if ( cdc -> unbound ) { status = ZX_ERR_IO_NOT_PRESENT ; } else { <S2SV_ModEnd> status = cdc_send_locked <S2SV_ModStart> ) ; } }
6,780
CWE-000 static int goldfish_pipe_release ( struct inode * inode , struct file * filp ) { unsigned long flags ; struct goldfish_pipe * pipe = filp -> private_data ; <S2SV_StartBug> struct goldfish_pipe_dev * dev = pipe -> dev ; <S2SV_EndBug> pr_debug ( "%s<S2SV_blank>on<S2SV_blank>0x%p\\n" , __func__ , pipe ) ; ( void )...
<S2SV_ModStart> pipe -> dev <S2SV_ModEnd> ; ( void
6,781
CWE-000 int rx_produce ( World * world , uint32_t pport , const struct iovec * iov , int iovcnt , uint8_t copy_to_cpu ) { Rocker * r = world_rocker ( world ) ; PCIDevice * dev = ( PCIDevice * ) r ; DescRing * ring = rocker_get_rx_ring_by_pport ( r , pport ) ; DescInfo * info = desc_ring_fetch_desc ( ring ) ; char * dat...
<S2SV_ModStart> data_size ) ; <S2SV_ModEnd> iov_to_buf ( iov
6,782
CWE-000 static int whitelist_device ( BPFProgram * prog , const char * path , const char * node , const char * acc ) { struct stat st ; bool ignore_notfound ; int r ; assert ( path ) ; assert ( acc ) ; if ( node [ 0 ] == '-' ) { node ++ ; ignore_notfound = true ; } else ignore_notfound = false ; if ( stat ( node , & st...
<S2SV_ModStart> return 0 ; return <S2SV_ModStart> < 0 ) return <S2SV_ModStart> path ) ; return 0 ; } <S2SV_ModEnd> } <S2SV_null> <S2SV_null>
6,783
CWE-000 static void mono_class_setup_basic_field_info ( MonoClass * klass ) { MonoGenericClass * gklass ; MonoClassField * field ; MonoClassField * fields ; MonoClass * gtd ; MonoImage * image ; int i , top ; if ( klass -> fields ) return ; gklass = mono_class_try_get_generic_class ( klass ) ; gtd = gklass ? mono_class...
<S2SV_ModStart> int first_field_idx = mono_class_has_metadata <S2SV_ModEnd> ( klass )
6,784
CWE-000 PHP_FUNCTION ( sodium_crypto_aead_chacha20poly1305_encrypt ) { zend_string * ciphertext ; unsigned char * ad ; unsigned char * msg ; unsigned char * npub ; unsigned char * secretkey ; unsigned long long ciphertext_real_len ; size_t ad_len ; size_t ciphertext_len ; size_t msg_len ; size_t npub_len ; size_t secre...
<S2SV_ModStart> sodium_exception_ce , "public<S2SV_blank>nonce<S2SV_blank>size<S2SV_blank>should<S2SV_blank>be<S2SV_blank>" "SODIUM_CRYPTO_AEAD_CHACHA20POLY1305_NPUBBYTES<S2SV_blank>bytes" <S2SV_ModEnd> , 0 ) <S2SV_ModStart> sodium_exception_ce , "secret<S2SV_blank>key<S2SV_blank>size<S2SV_blank>should<S2SV_blank>be<S2...
6,785
CWE-000 static uint32_t init ( void * base_of_flash ) # endif { uint8_t vendorID = 0 ; flexspi_config_t config = { . rxSampleClock = kFLEXSPI_ReadSampleClkLoopbackInternally , . enableSckFreeRunning = false , . enableCombination = false , . enableDoze = true , . enableHalfSpeedAccess = false , . enableSckBDiffOpt = fal...
<S2SV_ModStart> 2 ) ; <S2SV_ModEnd> FLEXSPI_Init ( FLEXSPI
6,786
CWE-000 void xml_data_normale ( t_env * e , char * * attributes , int * i , t_node * node ) { if ( node && attributes && e ) { if ( attributes [ ( * i ) ] == NULL ) s_error ( "\\x1b[2;31mError<S2SV_blank>reading<S2SV_blank>NORMALE<S2SV_blank>value\\x1b[0m" , e ) ; node -> normale . x = ft_atof ( attributes [ ( * i ) ++...
<S2SV_ModStart> ( node -> normale <S2SV_ModEnd> . x == <S2SV_ModStart> && node -> normale <S2SV_ModEnd> . y == <S2SV_ModStart> && node -> normale <S2SV_ModEnd> . z == <S2SV_ModStart> ) node -> normale <S2SV_ModEnd> . x =
6,787
CWE-000 QDF_STATUS wma_pre_start ( void * cds_ctx ) { QDF_STATUS qdf_status = QDF_STATUS_SUCCESS ; A_STATUS status = A_OK ; tp_wma_handle wma_handle ; cds_msg_t wma_msg = { 0 } ; WMA_LOGD ( "%s:<S2SV_blank>Enter" , __func__ ) ; wma_handle = cds_get_context ( QDF_MODULE_ID_WMA ) ; if ( NULL == wma_handle ) { WMA_LOGP ( ...
<S2SV_ModStart> __func__ ) ; if ( ! cds_is_fw_down ( ) ) QDF_BUG ( 0 ) ;
6,788
CWE-000 condesc_t * condesc_add ( ConTable * ct , const char * constring ) { if ( 0 == ct -> size ) { condesc_table_alloc ( ct , ct -> num_con ) ; ct -> num_con = 0 ; ct -> mempool = pool_new ( __func__ , "ConTable" , 1024 , sizeof ( condesc_t ) , true , true , false ) ; } uint32_t hash = ( connector_hash_size ) connec...
<S2SV_ModStart> h ) { assert ( 0 == ct -> num_uc , "Trying<S2SV_blank>to<S2SV_blank>add<S2SV_blank>a<S2SV_blank>connector<S2SV_blank>(%s)<S2SV_blank>" "after<S2SV_blank>reading<S2SV_blank>the<S2SV_blank>dict.\\n" , constring ) ; <S2SV_ModStart> + 11 , "Creating<S2SV_blank>connector<S2SV_blank>\'%s\'<S2SV_blank>(%zu)\\n...
6,789
CWE-000 static int get_coll_element ( char_u * * pp ) { int c ; int l = 1 ; char_u * p = * pp ; if ( p [ 0 ] != NUL && p [ 1 ] == '.' ) { <S2SV_StartBug> l = ( * mb_ptr2len ) ( p + 2 ) ; <S2SV_EndBug> if ( p [ l + 2 ] == '.' && p [ l + 3 ] == ']' ) { c = utf_ptr2char ( p + 2 ) ; * pp += l + 4 ; return c ; } } return 0 ...
<S2SV_ModStart> { l = utfc_ptr2len <S2SV_ModEnd> ( p +
6,790
CWE-000 LoRaMacStatus_t RegionAS923NextChannel ( NextChanParams_t * nextChanParams , uint8_t * channel , TimerTime_t * time , TimerTime_t * aggregatedTimeOff ) { uint8_t channelNext = 0 ; uint8_t nbEnabledChannels = 0 ; uint8_t delayTx = 0 ; uint8_t enabledChannels [ AS923_MAX_NB_CHANNELS ] = { 0 } ; TimerTime_t nextTx...
<S2SV_ModStart> ) ; } TimerTime_t elapsed = TimerGetElapsedTime ( nextChanParams -> LastAggrTx ) ; <S2SV_ModStart> -> AggrTimeOff <= elapsed <S2SV_ModEnd> ) { * <S2SV_ModStart> -> AggrTimeOff - elapsed <S2SV_ModEnd> ; } if
6,791
CWE-000 t_bool dir_file ( t_ls * env , char * file_name ) { if ( S_ISDIR ( env -> f_stat . st_mode ) ) { if ( ! ( env -> cur_dir = opendir ( file_name ) ) ) <S2SV_StartBug> exit_error ( ERRDIR , 0 , file_name ) ; <S2SV_EndBug> env -> cur_file = readdir ( env -> cur_dir ) ; get_file_name ( env -> my_stat . file_name , f...
<S2SV_ModStart> ) ) ) { get_file_name ( env -> my_stat . file_name <S2SV_ModEnd> , file_name ) <S2SV_ModStart> file_name ) ; return ( FALSE ) ; }
6,792
CWE-000 void * thread_4 ( void * j ) { t_env * e ; t_trd * all ; e = j ; all = ( t_trd * ) malloc ( sizeof ( t_trd ) ) ; all -> x = WIDTH / 2 ; add_julia_ab ( all , e ) ; while ( all -> x ++ != WIDTH ) { all -> y = 0 ; while ( all -> y ++ != WIDTH / 2 ) { find_julia_ab ( all , e ) ; while ( ++ all -> n != e -> iter && ...
<S2SV_ModStart> ; return ( NULL <S2SV_ModEnd> ) ; }
6,793
CWE-000 void lim_send_deauth_mgmt_frame ( tpAniSirGlobal pMac , uint16_t nReason , tSirMacAddr peer , tpPESession psessionEntry , bool waitForAck ) { tDot11fDeAuth frm ; uint8_t * pFrame ; tpSirMacMgmtHdr pMacHdr ; uint32_t nBytes , nPayload , nStatus ; void * pPacket ; QDF_STATUS qdf_status ; uint8_t txFlag = 0 ; uint...
<S2SV_ModStart> false , 0 , RATEID_DEFAULT <S2SV_ModStart> smeSessionId , 0 , RATEID_DEFAULT <S2SV_ModStart> smeSessionId , 0 , RATEID_DEFAULT
6,794
CWE-000 int rdbSaveRio ( rio * rdb , int * error , int flags , rdbSaveInfo * rsi ) { dictIterator * di = NULL ; dictEntry * de ; char magic [ 10 ] ; int j ; long long now = mstime ( ) ; uint64_t cksum ; size_t processed = 0 ; if ( server . rdb_checksum ) rdb -> update_cksum = rioGenericUpdateChecksum ; snprintf ( magic...
<S2SV_ModStart> ; if ( <S2SV_ModEnd> rdbSaveType ( rdb <S2SV_ModStart> di ) ; di = NULL ; } <S2SV_ModEnd> if ( rsi <S2SV_ModStart> di ) ; di = NULL ;
6,795
CWE-000 ion_err_t ion_linear_hash_increment_num_records ( ion_linear_hash_table_t * table ) { # if LINEAR_HASH_DEBUG_INCREMENT printf ( "Incrementing<S2SV_blank>the<S2SV_blank>number<S2SV_blank>of<S2SV_blank>records\\n" ) ; # endif table -> num_records ++ ; <S2SV_StartBug> float load = ( 100.0f * table -> num_records )...
<S2SV_ModStart> num_records ++ ; ion_boolean_t above_threshold = ion_linear_hash_check_above_threshold ( table ) ; if ( boolean_true == above_threshold ) { <S2SV_ModEnd> # if LINEAR_HASH_DEBUG_INCREMENT <S2SV_ModStart> LINEAR_HASH_DEBUG_INCREMENT printf ( "\\tTriggering<S2SV_blank>Split\\n" <S2SV_ModEnd> ) ; # <S2SV_Mo...
6,796
CWE-000 static void append_name ( char * send_buf , char * client_name ) { <S2SV_StartBug> memcpy ( & send_buf [ strlen ( client_name ) ] , send_buf , strlen ( send_buf ) + 1 ) ; <S2SV_EndBug> memcpy ( send_buf , client_name , strlen ( client_name ) ) ; }
<S2SV_ModStart> client_name ) { char temp_buf [ BUF_SIZE ] ; memcpy ( temp_buf , send_buf , strlen ( send_buf ) + 1 ) ; <S2SV_ModStart> ) ] , temp_buf <S2SV_ModEnd> , strlen ( <S2SV_ModStart> , strlen ( temp_buf <S2SV_ModEnd> ) + 1
6,797
CWE-000 void genprim_array_serialise_trace ( compile_t * c , reach_type_t * t ) { compile_type_t * c_t = ( compile_type_t * ) t -> c_type ; c_t -> serialise_trace_fn = codegen_addfun ( c , genname_serialise_trace ( t -> name ) , c -> trace_type , true ) ; codegen_startfun ( c , c_t -> serialise_trace_fn , NULL , NULL ,...
<S2SV_ModStart> -> intptr , PONY_TRACE_OPAQUE <S2SV_ModEnd> , false )
6,798
CWE-000 int bic_get_sdr ( uint8_t slot_id , ipmi_sel_sdr_req_t * req , ipmi_sel_sdr_res_t * res , uint8_t * rlen ) { int ret ; uint8_t tbuf [ MAX_IPMB_RES_LEN ] = { 0 } ; <S2SV_StartBug> uint8_t tlen ; <S2SV_EndBug> uint8_t len ; ipmi_sel_sdr_res_t * tres ; sdr_rec_hdr_t * hdr ; tres = ( ipmi_sel_sdr_res_t * ) tbuf ; <...
<S2SV_ModStart> } ; uint8_t rbuf [ MAX_IPMB_RES_LEN ] = { 0 } ; uint8_t <S2SV_ModStart> ( slot_id , rbuf <S2SV_ModEnd> ) ; if <S2SV_ModStart> ret ; } req -> rsv_id = ( rbuf [ 1 ] << 8 ) | rbuf [ 0 ] ;
6,799
CWE-000 static void EvaluateNode ( const size_t block_start , const size_t pos , const size_t max_backward_limit , <S2SV_StartBug> const int * starting_dist_cache , const ZopfliCostModel * model , <S2SV_EndBug> StartPosQueue * queue , ZopfliNode * nodes ) { float node_cost = nodes [ pos ] . u . cost ; nodes [ pos ] . u...
<S2SV_ModStart> max_backward_limit , const size_t gap , const <S2SV_ModStart> pos , max_backward_limit , gap