Unnamed: 0
int64
0
535k
source
stringlengths
50
89.8k
target
stringlengths
23
37.7k
2,200
CWE-000 unsigned int get_winer ( t_env * env ) { unsigned int win ; win = env -> no - 1 ; while ( -- env -> no >= 0 ) { if ( env -> players [ env -> no ] . num_players == env -> winer ) { win = env -> no ; break ; } } <S2SV_StartBug> message_cw ( env , "Contestant<S2SV_blank>%d,<S2SV_blank>\\"%s\\",<S2SV_blank>has<S2SV...
<S2SV_ModStart> ( env , "Contestant<S2SV_blank>%d,<S2SV_blank>\\"%.20s...\\",<S2SV_blank>has<S2SV_blank>won<S2SV_blank>!" <S2SV_ModEnd> , env -> <S2SV_ModStart> prog_name ) ; message_cw2 ( env , "Pres<S2SV_blank>Esc<S2SV_blank>to<S2SV_blank>quit." ) ;
2,201
CWE-000 static struct drm_master * drm_lease_create ( struct drm_master * lessor , struct idr * leases ) { struct drm_device * dev = lessor -> dev ; int error ; struct drm_master * lessee ; int object ; int id ; void * entry ; DRM_DEBUG_LEASE ( "lessor<S2SV_blank>%d\\n" , lessor -> lessee_id ) ; lessee = drm_master_cre...
<S2SV_ModStart> idr_mutex ) ; <S2SV_ModEnd> idr_for_each_entry ( leases <S2SV_ModStart> ; } } id = idr_alloc ( & ( drm_lease_owner ( lessor ) -> lessee_idr ) , lessee , 1 , 0 , GFP_KERNEL ) ; if ( id < 0 ) { error = id ; goto out_lessee ; } lessee -> lessee_id = id ; lessee -> lessor = drm_master_get ( lessor ) ; list_...
2,202
CWE-000 int main ( int argc , char * argv [ ] ) { int i , cc , fd ; u32 rootino , inum , off ; struct dirent de ; char buf [ BSIZE ] ; struct dinode din ; int nblocks ; if ( argc < 2 ) { fprintf ( stderr , "Usage:<S2SV_blank>mkfs<S2SV_blank>fs.img<S2SV_blank>files...\\n" ) ; exit ( 1 ) ; } assert ( ( BSIZE % sizeof ( s...
<S2SV_ModStart> ) ; } ftruncate ( fsfd , 128 * 1024 * 1024 ) ;
2,203
CWE-000 void count_syscall ( struct tcb * tcp , const struct timeval * syscall_exiting_tv ) { struct timeval wtv ; struct timeval * tv = & wtv ; struct call_counts * cc ; if ( ! scno_in_range ( tcp -> scno ) ) return ; if ( ! counts ) counts = xcalloc ( nsyscalls , sizeof ( * counts ) ) ; cc = & counts [ tcp -> scno ] ...
<S2SV_ModStart> 0 , sizeof ( it ) <S2SV_ModEnd> ) ; it
2,204
CWE-000 void setUp ( void ) { FFF_RESET_HISTORY ( ) ; RESET_FAKE ( read_some ) ; RESET_FAKE ( write_some ) ; RESET_FAKE ( close ) ; RESET_FAKE ( dummy_read_handler ) ; RESET_FAKE ( second_dummy_read_handler ) ; RESET_FAKE ( dummy_write_handler ) ; memset ( first_check_buffer , 0xaf , sizeof ( first_check_buffer ) ) ; f...
<S2SV_ModStart> = 0 ; chunk_bytes_written = 0 ;
2,205
CWE-000 <S2SV_StartBug> int esp108_apptrace_write_ctrl_reg ( struct target * target , uint32_t block_id , uint32_t len , int conn , int data ) <S2SV_EndBug> { int res = ERROR_OK ; uint32_t tmp = ( conn ? ESP_APPTRACE_HOST_CONNECT : 0 ) | ( data ? ESP_APPTRACE_HOST_DATA : 0 ) | ESP_APPTRACE_BLOCK_ID ( block_id ) | ESP_A...
<S2SV_ModStart> uint32_t len , bool conn , bool <S2SV_ModEnd> data ) {
2,206
CWE-000 PROCESS_THREAD ( maintenance_process , ev , data ) { PROCESS_BEGIN ( ) ; <S2SV_StartBug> static struct etimer maintenance_timer ; <S2SV_EndBug> PROCESS_PAUSE ( ) ; while ( 1 ) { if ( node_mode == MODE_NORMAL ) { led_off ( LED_A ) ; if ( process_is_running ( & status_send_process ) == 0 ) process_start ( & statu...
<S2SV_ModStart> ( ) ; <S2SV_ModEnd> PROCESS_PAUSE ( ) <S2SV_ModStart> ; if ( non_answered_packet <S2SV_ModEnd> > MAX_NON_ANSWERED_PINGS )
2,207
CWE-000 int main ( int argc , char * * argv ) { char * manufacturerCostString ; char * markupCostString ; char * salesTaxString ; char * discountString ; printf ( "Enter<S2SV_blank>Manufacturer\'s<S2SV_blank>Cost:<S2SV_blank>\\n" ) ; <S2SV_StartBug> scanf ( "%s" , & manufacturerCostString ) ; <S2SV_EndBug> printf ( "En...
<S2SV_ModStart> ( "%s" , <S2SV_ModEnd> manufacturerCostString ) ; <S2SV_ModStart> ( "%s" , <S2SV_ModEnd> markupCostString ) ; <S2SV_ModStart> ( "%s" , <S2SV_ModEnd> salesTaxString ) ; <S2SV_ModStart> ( "%s" , <S2SV_ModEnd> discountString ) ; <S2SV_ModStart> ) ) { printf ( "Manufacturer<S2SV_blank>cost<S2SV_blank>must<S...
2,208
CWE-000 int execute ( char * command ) { char * * argv ; if ( ( command [ 0 ] == '\\0' ) || command [ 0 ] == '\\n' ) return 0 ; pid_t pid ; int status ; int argc ; int fd ; if ( ( pid = fork ( ) ) < 0 ) { perror ( "CRYsh<S2SV_blank>unalbe<S2SV_blank>to<S2SV_blank>fork" ) ; } <S2SV_StartBug> else if ( pid > 0 ) { <S2SV_...
<S2SV_ModStart> if ( pid == 0 ) { argv = get_parse_options ( command , & argc ) ; if ( argc <S2SV_ModStart> 0 ) { <S2SV_ModEnd> if ( ( <S2SV_ModStart> ] ) ) != <S2SV_ModEnd> 0 ) { <S2SV_ModStart> = '\\0' ; if ( argc > 1 ) { <S2SV_ModEnd> if ( ( <S2SV_ModStart> ] ) ) != <S2SV_ModEnd> 0 ) { <S2SV_ModStart> '\\0' ; } } } ...
2,209
CWE-000 static int flt_init_all ( ) { struct proxy * px ; int err_code = 0 ; <S2SV_StartBug> for ( px = proxy ; px ; px = px -> next ) { <S2SV_EndBug> err_code |= flt_init ( px ) ; if ( err_code & ( ERR_ABORT | ERR_FATAL ) ) { ha_alert ( "Failed<S2SV_blank>to<S2SV_blank>initialize<S2SV_blank>filters<S2SV_blank>for<S2SV...
<S2SV_ModStart> ( px = proxies_list <S2SV_ModEnd> ; px ;
2,210
CWE-000 static struct yang_data * ripd_state_routes_route_prefix_get_elem ( const char * xpath , const void * list_entry ) { <S2SV_StartBug> const struct rip_info * rinfo = list_entry ; <S2SV_EndBug> return yang_data_new_ipv4p ( xpath , & rinfo -> rp -> p ) ; }
<S2SV_ModStart> { const struct route_node * rn = list_entry ; const struct <S2SV_ModStart> * rinfo = listnode_head ( rn -> info ) <S2SV_ModEnd> ; return yang_data_new_ipv4p
2,211
CWE-000 INT MCUBurstWrite ( PRTMP_ADAPTER pAd , UINT32 Offset , UINT32 * Data , UINT32 Cnt ) { # ifdef RTMP_USB_SUPPORT <S2SV_StartBug> RTUSBMultiWrite_nBytes ( pAd , Offset , Data , Cnt * 4 , 64 ) ; <S2SV_EndBug> # endif }
<S2SV_ModStart> , Offset , ( PUCHAR )
2,212
CWE-000 static void * ngx_rtmp_core_create_main_conf ( ngx_conf_t * cf ) { ngx_rtmp_core_main_conf_t * cmcf ; cmcf = ngx_pcalloc ( cf -> pool , sizeof ( ngx_rtmp_core_main_conf_t ) ) ; if ( cmcf == NULL ) { return NULL ; } ngx_rtmp_core_main_conf = cmcf ; if ( ngx_array_init ( & cmcf -> servers , cf -> pool , 4 , sizeo...
<S2SV_ModStart> NULL ; } cmcf -> host_names_hash_max_size = NGX_CONF_UNSET_UINT ; cmcf -> host_names_hash_bucket_size = NGX_CONF_UNSET_UINT ;
2,213
CWE-000 <S2SV_StartBug> char * get_history_brief ( void ) { <S2SV_EndBug> int fd ; char * buf = malloc ( 2048 ) ; if ( ( fd = open ( HISTORY_PATH , O_RDONLY ) ) < 0 ) { fprintf ( stderr , "Failed<S2SV_blank>to<S2SV_blank>open<S2SV_blank>History\\n" ) ; return NULL ; } unsigned int count = 0 ; if ( ( count = countlines ...
<S2SV_ModStart> void ) { sem_t semhistory ; sem_init ( & semhistory , 0 , 1 ) ; sem_wait ( & semhistory ) ; <S2SV_ModStart> i ) { if ( <S2SV_ModStart> + 1 ) == ( void * ) - 1 ) return NULL <S2SV_ModStart> ) ; } sem_post ( & semhistory ) ; sem_destroy ( & semhistory ) ;
2,214
CWE-000 void phFriNfc_ISO15693_Process ( void * pContext , NFCSTATUS Status ) { phFriNfc_NdefMap_t * psNdefMap = ( phFriNfc_NdefMap_t * ) pContext ; if ( ( NFCSTATUS_SUCCESS & PHNFCSTBLOWER ) == ( Status & PHNFCSTBLOWER ) ) { switch ( psNdefMap -> State ) { <S2SV_StartBug> case ISO15693_CHECK_NDEF : <S2SV_EndBug> { Sta...
<S2SV_ModStart> ) { case ISO15693_CHECK_NDEF_FIRST_BLOCK : case ISO15693_CHECK_NDEF_SECOND_BLOCK <S2SV_ModEnd> : { Status
2,215
CWE-000 void * raycasting ( void * tab ) { t_app a ; a = * ( t_app * ) tab ; while ( a . p . x < a . p . xx ) { raycasting_init ( & a , a . p . x ) ; a . lineheight = ( int ) ( WIN_H / a . dist_wall ) ; a . start = - a . lineheight / 2 + WIN_H / 2 ; a . end = a . lineheight / 2 + WIN_H / 2 ; if ( a . start < 0 ) a . st...
<S2SV_ModStart> = WIN_H ; if ( a . t == 1 ) a . clr_intensity = ( a . dist_wall < 0.2 ) ? 1 : 0.2 / a . dist_wall ; else
2,216
CWE-000 static int vr_interface_change ( struct vr_interface * vif , vr_interface_req * req ) { <S2SV_StartBug> int ret = 0 ; <S2SV_EndBug> if ( req -> vifr_flags & VIF_FLAG_SERVICE_IF && ! ( vif -> vif_flags & VIF_FLAG_SERVICE_IF ) ) { ret = vr_interface_service_enable ( vif ) ; if ( ret ) return ret ; } else if ( ( v...
<S2SV_ModStart> ret = 0 ; uint64_t * ip6 <S2SV_ModStart> -> vifr_qos_map_index ; vif -> vif_ip = req -> vifr_ip ; ip6 = ( uint64_t * ) ( vif -> vif_ip6 ) ; * ip6 = req -> vifr_ip6_u ; * ( ip6 + 1 ) = req -> vifr_ip6_l ;
2,217
CWE-000 static void clearline ( TMT * vt , TMTLINE * l , size_t s , size_t e ) { vt -> dirty = l -> dirty = true ; for ( size_t i = s ; i < e && i < vt -> screen . ncol ; i ++ ) { <S2SV_StartBug> l -> chars [ i ] . a = vt -> attrs ; <S2SV_EndBug> l -> chars [ i ] . c = L'<S2SV_blank>' ; } }
<S2SV_ModStart> . a = defattrs <S2SV_ModEnd> ; l ->
2,218
CWE-000 void * enlarge_shmem_struct ( char type ) { SharedMemory sharedMemory ; size_t sizeofobj ; int * counter ; <S2SV_StartBug> char * typ ; <S2SV_EndBug> switch ( type ) { case 'q' : <S2SV_StartBug> typ = "queries" ; <S2SV_EndBug> sharedMemory = shm_queries ; sizeofobj = sizeof ( queriesDataStruct ) ; counter = & c...
<S2SV_ModStart> * counter ; <S2SV_ModEnd> switch ( type <S2SV_ModStart> case 'q' : <S2SV_ModEnd> sharedMemory = shm_queries <S2SV_ModStart> case 'c' : <S2SV_ModEnd> sharedMemory = shm_clients <S2SV_ModStart> case 'd' : <S2SV_ModEnd> sharedMemory = shm_domains <S2SV_ModStart> case 'f' : <S2SV_ModEnd> sharedMemory = shm_...
2,219
CWE-000 int get_size ( const char * pkgname , const char * apkpath , const char * fwdlock_apkpath , int * _codesize , int * _datasize , int * _cachesize , int encrypted_fs_flag ) { DIR * d ; int dfd ; struct dirent * de ; struct stat s ; char path [ PKG_PATH_MAX ] ; int codesize = 0 ; int datasize = 0 ; int cachesize =...
<S2SV_ModStart> apkpath , "/system" , 7 ) != 0 && strncmp ( apkpath , SDCARD_DIR_PREFIX <S2SV_ModStart> } if ( <S2SV_ModEnd> ! create_cache_path (
2,220
CWE-000 static void authgss_destroy_context ( AUTH * auth ) { struct rpc_gss_data * gd ; OM_uint32 min_stat ; <S2SV_StartBug> log_debug ( "in<S2SV_blank>authgss_destroy_context()" ) ; <S2SV_EndBug> gd = AUTH_PRIVATE ( auth ) ; if ( gd -> gc . gc_ctx . length != 0 ) { if ( gd -> established ) { gd -> gc . gc_proc = RPCS...
<S2SV_ModStart> OM_uint32 min_stat ; __warnx ( TIRPC_DEBUG_FLAG_RPCSEC_GSS , "%s()" , __func__ <S2SV_ModEnd> ) ; gd
2,221
CWE-000 S * reverse ( S * expr ) { S * root ; <S2SV_StartBug> if ( isNilC ( expr ) ) <S2SV_EndBug> return nil ; if ( expr -> Cons . type != Cons ) return Error_new ( "reverse:<S2SV_blank>Illegal<S2SV_blank>argument<S2SV_blank>exception." ) ; root = nil ; <S2SV_StartBug> while ( ! isNilC ( expr ) ) { <S2SV_EndBug> root ...
<S2SV_ModStart> ; if ( S_isNil <S2SV_ModEnd> ( expr ) <S2SV_ModStart> while ( ! S_isNil <S2SV_ModEnd> ( expr )
2,222
CWE-000 static bool try_seek_cache ( struct demux_internal * in , double pts , int flags ) { if ( ( flags & SEEK_FACTOR ) || ! in -> seekable_cache ) return false ; if ( in -> seeking ) return false ; struct demux_ctrl_reader_state rstate ; if ( cached_demux_control ( in , DEMUXER_CTRL_GET_READER_STATE , & rstate ) < 0...
<S2SV_ModStart> = target ; ds -> skip_to_keyframe = ! target ;
2,223
CWE-000 int sel_stop_timer ( sel_timer_t * timer ) { selector_t * sel = timer -> val . sel ; sel_timer_lock ( sel ) ; if ( timer -> val . stopped ) { sel_timer_unlock ( sel ) ; return ETIMEDOUT ; } if ( timer -> val . in_heap ) { volatile sel_timer_t * top = theap_get_top ( & sel -> timer_heap ) ; theap_remove ( & sel ...
<S2SV_ModStart> = 1 ; sel_timer_unlock ( sel ) ;
2,224
CWE-000 static int sock_alert ( tor_socket_t fd ) { ssize_t r = send_ni ( fd , "x" , 1 , 0 ) ; <S2SV_StartBug> if ( r < 0 && ! ERRNO_IS_EAGAIN ( tor_socket_errno ( fd ) ) ) <S2SV_EndBug> <S2SV_StartBug> return - 1 ; <S2SV_EndBug> return 0 ; }
<S2SV_ModStart> ! ERRNO_IS_EAGAIN ( - r <S2SV_ModEnd> ) ) return <S2SV_ModStart> ) ) return r <S2SV_ModEnd> ; return 0
2,225
CWE-000 FILE * get_next_battery_file ( DIR * battery_dir , enum BATTERY_INFO_TYPE battery_info_type ) { FILE * file = 0 ; struct dirent * dir_entries ; <S2SV_StartBug> char file_name [ 32 ] ; <S2SV_EndBug> do { dir_entries = readdir ( battery_dir ) ; if ( ! dir_entries ) return 0 ; if ( strlen ( dir_entries -> d_name )...
<S2SV_ModStart> char file_name [ 284 <S2SV_ModEnd> ] ; do <S2SV_ModStart> ( file_name , sizeof ( file_name ) <S2SV_ModEnd> , BATTERY_INFO_FILE_PATH , <S2SV_ModStart> ( file_name , sizeof ( file_name ) <S2SV_ModEnd> , BATTERY_STATE_FILE_PATH ,
2,226
CWE-000 static struct mv_xor_v2_sw_desc * mv_xor_v2_prep_sw_desc ( struct mv_xor_v2_device * xor_dev ) { <S2SV_StartBug> struct mv_xor_v2_sw_desc * sw_desc ; <S2SV_EndBug> spin_lock_bh ( & xor_dev -> lock ) ; if ( list_empty ( & xor_dev -> free_sw_desc ) ) { spin_unlock_bh ( & xor_dev -> lock ) ; tasklet_schedule ( & x...
<S2SV_ModStart> mv_xor_v2_sw_desc * sw_desc ; bool found = false <S2SV_ModStart> NULL ; } list_for_each_entry ( sw_desc , <S2SV_ModEnd> & xor_dev -> <S2SV_ModStart> -> free_sw_desc , free_list ) { if ( async_tx_test_ack ( & sw_desc -> async_tx ) ) { found = true ; break ; } } if ( ! found ) { spin_unlock_bh ( & xor_dev...
2,227
CWE-000 int save_snapshot ( const char * name , Error * * errp ) { BlockDriverState * bs , * bs1 ; QEMUSnapshotInfo sn1 , * sn = & sn1 , old_sn1 , * old_sn = & old_sn1 ; int ret = - 1 ; QEMUFile * f ; int saved_vm_running ; uint64_t vm_state_size ; qemu_timeval tv ; struct tm tm ; AioContext * aio_context ; if ( ! bdrv...
<S2SV_ModStart> RUN_STATE_SAVE_VM ) ; bdrv_drain_all_begin ( ) ; <S2SV_ModStart> ) ; } bdrv_drain_all_end ( ) ;
2,228
CWE-000 static void unlock_all_outputs ( struct audio_device * adev , struct stream_out * except ) { pthread_mutex_unlock ( & adev -> lock ) ; enum output_type type = OUTPUT_TOTAL ; do { struct stream_out * out = adev -> outputs [ -- type ] ; <S2SV_StartBug> if ( out && out != except ) <S2SV_EndBug> pthread_mutex_unloc...
<S2SV_ModStart> != except ) { unlock_output_stream ( out ) ; } <S2SV_ModEnd> } while (
2,229
CWE-000 struct f2fs_dir_entry * find_target_dentry ( struct fscrypt_name * fname , f2fs_hash_t namehash , int * max_slots , struct f2fs_dentry_ptr * d ) { struct f2fs_dir_entry * de ; unsigned long bit_pos = 0 ; int max_len = 0 ; struct fscrypt_str de_name = FSTR_INIT ( NULL , 0 ) ; struct fscrypt_str * name = & fname ...
<S2SV_ModStart> name_len ) ; <S2SV_ModEnd> if ( fname <S2SV_ModStart> ( fname -> hash ) { if ( de -> hash_code == cpu_to_le32 ( fname -> hash <S2SV_ModEnd> ) ) goto <S2SV_ModStart> goto found ; } else <S2SV_ModEnd> if ( de_name <S2SV_ModStart> -> len && de -> hash_code == namehash && <S2SV_ModStart> goto found ; <S2SV_...
2,230
CWE-000 void wm_event_do_depsgraph ( bContext * C ) { wmWindowManager * wm = CTX_wm_manager ( C ) ; uint64_t win_combine_v3d_datamask = 0 ; for ( wmWindow * win = wm -> windows . first ; win ; win = win -> next ) { const Scene * scene = WM_window_get_active_scene ( win ) ; const bScreen * screen = WM_window_get_active_...
<S2SV_ModStart> win ) ; <S2SV_ModEnd> Main * bmain <S2SV_ModStart> ; } } <S2SV_ModEnd> <S2SV_null> <S2SV_null> <S2SV_null>
2,231
CWE-000 void functionMCSensor ( void ) { sock_udp_ep_t gw = { . family = AF_INET6 , . port = EMCUTE_PORT } ; puts ( "MQTT-SN<S2SV_blank>example<S2SV_blank>application\\n" ) ; puts ( "Type<S2SV_blank>\'help\'<S2SV_blank>to<S2SV_blank>get<S2SV_blank>started.<S2SV_blank>Have<S2SV_blank>a<S2SV_blank>look<S2SV_blank>at<S2SV...
<S2SV_ModStart> "Successfully<S2SV_blank>connected<S2SV_blank>to<S2SV_blank>Gateway\\n" ) ; char * message [ ] = { "pub" , "publisher/communication" , "\\"The<S2SV_blank>SHD<S2SV_blank>microcontroller<S2SV_blank>is<S2SV_blank>live,<S2SV_blank>and<S2SV_blank>ready<S2SV_blank>to<S2SV_blank>communicate.\\"" } ; cmd_pub ( ...
2,232
CWE-000 bool game_move ( Game * game , int x , int y ) { if ( ( x < 0 ) || ( x > 7 ) || ( y < 0 ) || ( y > 7 ) ) { return false ; } if ( game -> movable [ x ] [ y ] == false ) { return false ; } game -> cur = board_move ( game -> cur , x , y , ( game -> turn ? game -> prob : ( 1 - game -> prob ) ) , game -> bp ) ; game...
<S2SV_ModStart> turn ) ; <S2SV_ModEnd> game -> isover <S2SV_ModStart> = true ; game_update_history ( game ) ; <S2SV_ModStart> } else { game -> turn = ! ( game -> turn ) ; game_update_history ( game ) ; game -> turn = ! ( game -> turn ) ; game_update_history ( game <S2SV_ModEnd> ) ; game_undo <S2SV_ModStart> ) ; } } els...
2,233
CWE-000 static void ota_example_task ( void * pvParameter ) { esp_err_t err ; esp_ota_handle_t update_handle = 0 ; const esp_partition_t * update_partition = NULL ; ESP_LOGI ( TAG , "Starting<S2SV_blank>OTA<S2SV_blank>example..." ) ; const esp_partition_t * configured = esp_ota_get_boot_partition ( ) ; const esp_partit...
<S2SV_ModStart> ) ; } const char * GET_FORMAT = "GET<S2SV_blank>%s<S2SV_blank>HTTP/1.0\\r\\n" "Host:<S2SV_blank>%s:%s\\r\\n" "User-Agent:<S2SV_blank>esp-idf/1.0<S2SV_blank>esp32\\r\\n\\r\\n" ; char * http_request = NULL ; int get_len = asprintf ( & http_request , GET_FORMAT , EXAMPLE_FILENAME , EXAMPLE_SERVER_IP , EXAM...
2,234
CWE-000 void ft_putstr ( const char * s ) { while ( * s != '\\0' ) <S2SV_StartBug> write ( 1 , * s ++ , 1 ) ; <S2SV_EndBug> }
<S2SV_ModStart> != '\\0' ) ft_putchar ( <S2SV_ModEnd> * s ++ <S2SV_ModStart> * s ++ <S2SV_ModEnd> ) ; }
2,235
CWE-000 int main ( ) { MTUserArray * arr = mtRandInit ( NULL ) ; mtDefRand ( ) ; <S2SV_StartBug> for ( int i = 0 ; i < arr -> len ; i ++ ) <S2SV_EndBug> <S2SV_StartBug> printf ( "\\n%d" , arr -> ptr [ i ] ) ; <S2SV_EndBug> mtDefKill ( NULL ) ; return ( 0 ) ; }
<S2SV_ModStart> ( ) ; printf ( "Ваша<S2SV_blank>послідовність:<S2SV_blank>\\n" ) ; <S2SV_ModStart> i ++ ) { if ( i % 4 == 0 ) printf ( "\\n" ) ; printf ( "%" PRId32 "<S2SV_blank><S2SV_blank><S2SV_blank>" <S2SV_ModEnd> , arr -> <S2SV_ModStart> ] ) ; }
2,236
CWE-000 static rsRetVal createSocket ( instanceConf_t * info , void * * sock ) { int rv ; sublist * sub ; * sock = zsocket_new ( s_context , info -> type ) ; if ( ! sock ) { errmsg . LogError ( 0 , RS_RET_INVALID_PARAMS , "zsocket_new<S2SV_blank>failed:<S2SV_blank>%s,<S2SV_blank>for<S2SV_blank>type<S2SV_blank>%d" , zmq...
<S2SV_ModStart> * sock , "%s" , <S2SV_ModStart> * sock , "%s" ,
2,237
CWE-000 void pkt_seq_init ( struct pkt_seq_info * info ) { int i = 0 ; <S2SV_StartBug> for ( i = 0 ; i < 5 ; i ++ ) { <S2SV_EndBug> <S2SV_StartBug> info -> src_mac . addr_bytes [ i ] = ETHER_LOCAL_ADMIN_ADDR ; <S2SV_EndBug> <S2SV_StartBug> info -> dst_mac . addr_bytes [ i ] = ETHER_LOCAL_ADMIN_ADDR ; <S2SV_EndBug> } <S...
<S2SV_ModStart> ; i < 6 <S2SV_ModEnd> ; i ++ <S2SV_ModStart> i ] = 0 <S2SV_ModEnd> ; info -> <S2SV_ModStart> i ] = 0 <S2SV_ModEnd> ; } info <S2SV_ModStart> ] = PKT_SEQ_MAC_SRC <S2SV_ModEnd> ; info ->
2,238
CWE-000 static void destroy_vdpau_window_sized_objects ( struct MPGLContext * ctx ) { struct priv * p = ctx -> priv ; struct vdp_functions * vdp = & p -> vdp -> vdp ; VdpStatus vdp_st ; GL * gl = ctx -> gl ; for ( int n = 0 ; n < p -> num_surfaces ; n ++ ) { struct surface * surface = & p -> surfaces [ n ] ; <S2SV_Star...
<S2SV_ModStart> ( surface -> mapped ) gl -> VDPAUUnmapSurfacesNV ( 1 , & surface -> registered ) ; gl -> DeleteFramebuffers ( 1 , & surface -> fbo ) ; gl -> DeleteTextures ( 1 , & surface -> texture ) ; if ( <S2SV_ModEnd> surface -> registered <S2SV_ModStart> -> registered ) <S2SV_ModEnd> gl -> VDPAUUnregisterSurfaceNV...
2,239
CWE-000 int SendMSGtoSCK ( int queue , const char * message , const char * locmsg , char loc , logsocket * * sockets ) { int __mq_rcode ; char tmpstr [ OS_MAXSTR + 1 ] ; int i = 0 ; while ( sockets [ i ] && sockets [ i ] -> name ) { if ( strcmp ( sockets [ i ] -> name , "agent" ) == 0 ) { SendMSG ( queue , message , lo...
<S2SV_ModStart> ] -> prefix && * sockets [ i ] -> prefix
2,240
CWE-000 int btrfs_insert_delayed_dir_index ( struct btrfs_trans_handle * trans , struct btrfs_fs_info * fs_info , const char * name , int name_len , struct inode * dir , struct btrfs_disk_key * disk_key , u8 type , u64 index ) { struct btrfs_delayed_node * delayed_node ; struct btrfs_delayed_item * delayed_item ; struc...
<S2SV_ModStart> = btrfs_ino ( BTRFS_I ( dir ) <S2SV_ModEnd> ) ; delayed_item
2,241
CWE-000 Block * Next_Switch_Block ( Switch * S , char type , int dir , int level ) { struct rail_link next ; if ( type == 's' ) { next = S -> app ; } else { if ( S -> state == 0 ) { next = S -> str ; } else { next = S -> div ; } } <S2SV_StartBug> printf ( "Next<S2SV_blank><S2SV_blank><S2SV_blank>Sw:<S2SV_blank>dir:%i\\...
<S2SV_ModStart> ; } } <S2SV_ModEnd> if ( ! <S2SV_ModStart> type == 'M' || <S2SV_ModEnd> next . type <S2SV_ModStart> 'm' ) { return Next_MSSwitch_Block ( ( MSSwitch * ) next . p , next . type , dir , level ) ;
2,242
CWE-000 static int fbsd_fill_info ( struct pci_dev * d , int flags ) { struct pci_conf_io conf ; struct pci_bar_io bar ; struct pci_match_conf pattern ; struct pci_conf match ; int i ; if ( d -> access -> fd_rw >= 0 ) return pci_generic_fill_info ( d , flags ) ; conf . pat_buf_len = sizeof ( struct pci_match_conf ) ; c...
<S2SV_ModStart> -> device_class = ( <S2SV_ModStart> match . pc_class <S2SV_ModEnd> << 8 ) <S2SV_ModStart> << 8 ) | match . pc_subclass
2,243
CWE-000 static void _new_sensor_value_acc_shake ( sensor_h sensor , sensor_event_s * sensor_data , void * user_data ) { appdata_s * ad = user_data ; float x = sensor_data -> values [ 0 ] ; float y = sensor_data -> values [ 1 ] ; float z = sensor_data -> values [ 2 ] ; char buf [ 1024 ] ; if ( sensor_data -> value_count...
<S2SV_ModStart> ] ++ ; ad -> grid_state [ ad -> user_state [ 0 ] ] [ ad -> user_state [ 1 ] ] [ 5 ] = 0 ;
2,244
CWE-000 int oilsAuthComplete ( osrfMethodContext * ctx ) { OSRF_METHOD_VERIFY_CONTEXT ( ctx ) ; const jsonObject * args = jsonObjectGetIndex ( ctx -> params , 0 ) ; const char * uname = jsonObjectGetString ( jsonObjectGetKeyConst ( args , "username" ) ) ; const char * identifier = jsonObjectGetString ( jsonObjectGetKey...
<S2SV_ModStart> oilsUtilsQuickReqCtx ( ctx ,
2,245
CWE-000 <S2SV_StartBug> static int copy_bit_to_buffer ( unsigned char * dest , int dest_byte , <S2SV_EndBug> unsigned char * src , int src_byte , int shift , bool big_endian ) { unsigned int value ; switch ( src_byte ) { case 2 : value = src [ 0 ] << 8 | src [ 1 ] ; break ; case 3 : value = src [ 0 ] << 16 | src [ 1 ] ...
<S2SV_ModStart> <S2SV_null> <S2SV_null> static void <S2SV_ModEnd> copy_bit_to_buffer ( unsigned <S2SV_ModStart> ; default : break <S2SV_ModEnd> ; } if <S2SV_ModStart> ) ; } <S2SV_ModEnd> } <S2SV_null> <S2SV_null>
2,246
CWE-000 int FTI_FlushPosix ( FTIT_configuration * FTI_Conf , FTIT_execution * FTI_Exec , FTIT_topology * FTI_Topo , FTIT_checkpoint * FTI_Ckpt , int level ) { FTI_Print ( "Starting<S2SV_blank>checkpoint<S2SV_blank>post-processing<S2SV_blank>L4<S2SV_blank>using<S2SV_blank>Posix<S2SV_blank>IO." , FTI_DBUG ) ; int startPr...
<S2SV_ModStart> proc ] ; <S2SV_ModEnd> sprintf ( str
2,247
CWE-000 float sourceIPsEntropy ( char * sourceIPs , int len ) { int i , j ; float result = 0.0 ; float total = 0.0 ; <S2SV_StartBug> qsort ( sourceIPs , len - 1 , 18 , strcmp ) ; <S2SV_EndBug> result = prob1 ( sourceIPs , sourceIPs , len ) ; total += result ; for ( i = 1 ; i < ( len - 1 ) ; i ++ ) { if ( strcmp ( sourc...
<S2SV_ModStart> sourceIPs , len , sizeof ( char * ) , cstring_cmp ) ; printf ( "chamando<S2SV_blank>prob1" <S2SV_ModEnd> ) ; result
2,248
CWE-000 int uptime ( int argc , char * * argv ) { int ticks , days , hours , minutes , seconds , tick_rate ; struct tms tbuf ; ticks = times ( & tbuf ) ; tick_rate = sysconf ( _SC_CLK_TCK ) ; seconds = ticks / tick_rate ; minutes = seconds / 60 ; hours = minutes / 60 ; days = hours / 24 ; seconds %= 60 ; minutes %= 60 ...
<S2SV_ModStart> ; printf ( "user<S2SV_blank>time<S2SV_blank>%d.%d<S2SV_blank>seconds,<S2SV_blank>system<S2SV_blank>time<S2SV_blank>%d.%d<S2SV_blank>seconds\\n" , tbuf . tms_utime / tick_rate <S2SV_ModEnd> , tbuf . <S2SV_ModStart> tbuf . tms_utime % 100 , tbuf . tms_stime / tick_rate <S2SV_ModStart> tbuf . tms_stime % 1...
2,249
CWE-000 static inline s32 op_xastore_impl ( u8 * * opCode , Runtime * runtime , u8 isReference ) { RuntimeStack * stack = runtime -> stack ; StackEntry entry ; s32 ret = 0 ; pop_entry ( stack , & entry ) ; s32 index = pop_int ( stack ) ; Instance * jarr = ( Instance * ) pop_ref ( stack ) ; if ( jarr == NULL ) { Instanc...
<S2SV_ModStart> entry ) ; <S2SV_ModEnd> } else {
2,250
CWE-000 int cardRead ( u32 * cacheStruct ) { <S2SV_StartBug> REG_SCFG_EXT = 0x83008000 ; <S2SV_EndBug> setExceptionHandler2 ( ) ; accessCounter ++ ; u8 * cacheBuffer = ( u8 * ) ( cacheStruct + 8 ) ; u32 * cachePage = cacheStruct + 2 ; u32 commandRead ; u32 src = cardStruct [ 0 ] ; u8 * dst = ( u8 * ) ( cardStruct [ 1 ]...
<S2SV_ModStart> cacheStruct ) { <S2SV_ModEnd> setExceptionHandler2 ( ) <S2SV_ModStart> ; # endif REG_SCFG_EXT = 0x83008000 ;
2,251
CWE-000 CK_RV SC_Logout ( STDLL_TokData_t * tokdata , ST_SESSION_HANDLE * sSession ) { SESSION * sess = NULL ; CK_RV rc = CKR_OK ; if ( tokdata -> initialized == FALSE ) { TRACE_ERROR ( "%s\\n" , ock_err ( ERR_CRYPTOKI_NOT_INITIALIZED ) ) ; rc = CKR_CRYPTOKI_NOT_INITIALIZED ; goto done ; } sess = session_mgr_find ( sSe...
<S2SV_ModStart> ( tokdata -> <S2SV_ModEnd> so_pin_md5 , 0x0
2,252
CWE-000 char * _strcpy ( char * dest , char * src ) { int i ; i = 0 ; while ( src [ i ] != '\\0' ) { dest [ i ] = src [ i ] ; <S2SV_StartBug> ++ i ; <S2SV_EndBug> } dest [ i ] = '\\0' ; return ( dest ) ; }
<S2SV_ModStart> i ] ; i ++ <S2SV_ModEnd> ; } dest
2,253
CWE-000 void removeGameComponent ( Item * item , GameComponent type ) { if ( item == NULL ) return ; switch ( type ) { case POSITION : { Position * posComp = ( Position * ) getGameComponent ( item , type ) ; if ( posComp != NULL ) { ListElement * e = getListElement ( positions , posComp ) ; if ( e != NULL ) push ( posP...
<S2SV_ModStart> if ( graComp != NULL ) { <S2SV_ModEnd> ListElement * e <S2SV_ModStart> NULL ; } }
2,254
CWE-000 int finalize_add_table ( struct ireq * iq , struct schema_change_type * s , tran_type * tran ) { int rc , bdberr ; struct dbtable * db = s -> db ; <S2SV_StartBug> sc_printf ( s , "Start<S2SV_blank>add<S2SV_blank>table<S2SV_blank>transaction<S2SV_blank>ok\\n" ) ; <S2SV_EndBug> rc = load_new_table_schema_tran ( t...
<S2SV_ModStart> -> db ; if ( iq && iq -> tranddl > 1 && verify_constraints_exist ( db , NULL , NULL , s ) != 0 ) { sc_errf ( s , "error<S2SV_blank>verifying<S2SV_blank>constraints\\n" ) ; return - 1 ; } if ( iq && iq -> tranddl > 1 && populate_reverse_constraints ( db ) ) { sc_errf ( s , "error<S2SV_blank>populating<S2...
2,255
CWE-000 void Compile_Peek ( Compiler * compiler , Boolean stackReg ) { int64 optFlag = Compiler_CheckOptimize ( compiler , 0 ) ; if ( optFlag & OPTIMIZE_DONE ) return ; <S2SV_StartBug> else if ( ! optFlag ) Compile_Move_Rm_To_Reg ( ACC , stackReg , 0 ) ; <S2SV_EndBug> Compile_Move_Rm_To_Reg ( ACC , ACC , 0 ) ; Compile_...
<S2SV_ModStart> ! optFlag ) { Word * one = CfrTil_WordList ( 1 ) ; if ( ( ! ( one -> CAttribute & OBJECT ) ) && one -> StackPushRegisterCode ) { SetHere ( one -> StackPushRegisterCode , 1 ) ; Compile_Move_Rm_To_Reg ( ACC , ACC , 0 ) ; Compile_ADDI ( REG , DSP , 0 , sizeof ( int64 ) , 0 ) ; Compile_Move_Reg_To_Rm ( stac...
2,256
CWE-000 void core_destroy ( ) { if ( e_cpu_context . memory ) { free ( e_cpu_context . memory ) ; } if ( e_cpu_context . color_basic ) { free ( e_cpu_context . color_basic ) ; } if ( e_cpu_context . extended_basic ) { free ( e_cpu_context . extended_basic ) ; } <S2SV_StartBug> e_cpu_context . memory = NULL ; <S2SV_EndB...
<S2SV_ModStart> ) ; } if ( e_cpu_context . disk_basic ) { free ( e_cpu_context . disk_basic ) ; } <S2SV_ModStart> e_cpu_context . extended_basic = NULL ; e_cpu_context . disk_basic
2,257
CWE-000 void display_update ( ) { <S2SV_StartBug> int j ; <S2SV_EndBug> set_disp_data ( ) ; <S2SV_StartBug> for ( j = 0 ; j < 512 ; j ++ ) { <S2SV_EndBug> spi_send_recv ( pixels [ j ] ) ; } <S2SV_StartBug> } <S2SV_EndBug>
<S2SV_ModStart> ( ) { send_to_screen <S2SV_ModEnd> ( ) ; <S2SV_ModStart> ( ) ; send_to_screen ( <S2SV_ModEnd> ) ; } <S2SV_ModStart> ) ; } <S2SV_ModEnd> <S2SV_null> <S2SV_null> <S2SV_null>
2,258
CWE-000 int main ( ) { int x = 0 ; int y = 0 ; printf ( "x:%d" , x ) ; <S2SV_StartBug> int y = 9 ; <S2SV_EndBug> return 0 ; }
<S2SV_ModStart> ) ; int z <S2SV_ModEnd> = 9 ;
2,259
CWE-000 static void data_source_thread ( void * data ) { napi_threadsafe_function ts_fn = data ; int index ; void * hint ; ts_fn_hint * ts_fn_info ; napi_status status ; bool queue_was_full = false ; bool queue_was_closing = false ; if ( napi_get_threadsafe_function_context ( ts_fn , & hint ) != napi_ok ) { napi_fatal_...
<S2SV_ModStart> block_on_full ) ; if ( ts_fn_info -> max_queue_size == 0 ) { uint64_t start = uv_hrtime ( ) ; for ( ; uv_hrtime ( ) - start < 200000000 ; ) ; }
2,260
CWE-000 <S2SV_StartBug> int power_hint_override ( struct power_module * module , power_hint_t hint , void * data ) <S2SV_EndBug> { int ret_val = HINT_NONE ; switch ( hint ) { case POWER_HINT_VIDEO_ENCODE : ret_val = process_video_encode_hint ( data ) ; break ; case POWER_HINT_SUSTAINED_PERFORMANCE : ret_val = process_p...
<S2SV_ModStart> struct power_module * UNUSED ( module ) <S2SV_ModEnd> , power_hint_t hint
2,261
CWE-000 char * discover_nic_dirver ( char * nic_name ) { char * cmd = xasprintf ( "ethtool<S2SV_blank>-i<S2SV_blank>%s<S2SV_blank>|<S2SV_blank>grep<S2SV_blank>driver" , nic_name ) ; FILE * pp = popen ( cmd , "r" ) ; char buffer [ 100 ] ; int j = 0 ; <S2SV_StartBug> bool find = false ; <S2SV_EndBug> char * nic_driver = ...
<S2SV_ModStart> find = false , pre_find = false <S2SV_ModStart> ( buffer ) && buffer [ i ] != '\\n' <S2SV_ModStart> ++ ) { if ( buffer [ i ] == ':' ) { pre_find = true ; } <S2SV_ModStart> ] == 'i' && pre_find
2,262
CWE-000 bool ubsan_expand_bounds_ifn ( gimple_stmt_iterator * gsi ) { gimple * stmt = gsi_stmt ( * gsi ) ; location_t loc = gimple_location ( stmt ) ; gcc_assert ( gimple_call_num_args ( stmt ) == 3 ) ; tree type = TREE_TYPE ( TREE_TYPE ( gimple_call_arg ( stmt , 0 ) ) ) ; tree index = gimple_call_arg ( stmt , 1 ) ; tr...
<S2SV_ModStart> ; tree val = ubsan_encode_value ( orig_index , UBSAN_ENCODE_VALUE_GIMPLE ) ; val <S2SV_ModStart> ( gsi , val , true , NULL_TREE , true , <S2SV_ModEnd> GSI_SAME_STMT ) ;
2,263
CWE-000 int __wt_bt_rebalance ( WT_SESSION_IMPL * session , const char * cfg [ ] ) { WT_BTREE * btree ; WT_DECL_RET ; WT_REBALANCE_STUFF * rs , _rstuff ; <S2SV_StartBug> bool evict_reset ; <S2SV_EndBug> WT_UNUSED ( cfg ) ; <S2SV_StartBug> btree = S2BT ( session ) ; <S2SV_EndBug> evict_reset = false ; if ( btree -> root...
<S2SV_ModStart> , _rstuff ; <S2SV_ModEnd> WT_UNUSED ( cfg <S2SV_ModStart> ( session ) <S2SV_ModEnd> ; if ( <S2SV_ModStart> -> type ; <S2SV_ModEnd> switch ( rs <S2SV_ModStart> ; err : <S2SV_ModEnd> if ( rs
2,264
CWE-000 void ide_irq_update ( IDE * ide ) { int pending = 0 ; int mask = 0 ; if ( ide -> board > 3 ) { return ; } ide_log ( "Updating<S2SV_blank>IRQ<S2SV_blank>%i<S2SV_blank>(board<S2SV_blank>%i)\\n" , ide_irq [ ide -> board ] , ide -> board ) ; mask = ide_irq [ ide -> board ] ; mask &= 7 ; pending = ( pic2 . pend | pi...
<S2SV_ModStart> ide -> board == 1 ) ) { pci_set_mirq ( 0 ) ; } else { picint ( 1 << ide_irq [ ide -> board ] ) ; } if ( ide -> board <S2SV_ModStart> < 2 ) { if ( ide_bus_master_set_irq ) { ide_bus_master_set_irq ( ide -> board | 0x40 ) ; } } } else if ( pending ) { if ( pci_use_mirq ( 0 ) && ( ide -> board == 1 ) ) { p...
2,265
CWE-000 <S2SV_StartBug> struct Item * show_contents ( struct Monster * mons , uint32_t accepted , char * msg ) <S2SV_EndBug> { struct Pack * pack = mons -> pack ; struct String * fmt = str_dinit ( ) ; <S2SV_StartBug> Vector contents = v_init ( sizeof ( struct Item * ) , 52 ) ; <S2SV_EndBug> str_catf ( fmt , "#nFFF00000...
<S2SV_ModStart> <S2SV_null> <S2SV_null> <S2SV_null> TID <S2SV_ModEnd> show_contents ( struct <S2SV_ModStart> ( sizeof ( TID <S2SV_ModEnd> ) , 52 <S2SV_ModStart> ) ; return - 1 <S2SV_ModEnd> ; } int <S2SV_ModStart> ) ; return - 1 ; } TID <S2SV_ModEnd> ret = * <S2SV_ModStart> = * ( TID <S2SV_ModEnd> * ) v_at
2,266
CWE-000 static apt_bool_t demo_framework_cmdline_process ( demo_framework_t * framework , char * cmdline ) { apt_bool_t running = TRUE ; char * name ; char * last ; name = apr_strtok ( cmdline , "<S2SV_blank>" , & last ) ; <S2SV_StartBug> if ( strcasecmp ( name , "run" ) == 0 ) { <S2SV_EndBug> char * app_name = apr_str...
<S2SV_ModStart> ; if ( ! name ) return running ; if (
2,267
CWE-000 void microdesc_note_outdated_dirserver ( const char * relay_digest ) { char relay_hexdigest [ HEX_DIGEST_LEN + 1 ] ; <S2SV_StartBug> if ( ! networkstatus_get_live_consensus ( approx_time ( ) ) ) { <S2SV_EndBug> return ; } if ( ! outdated_dirserver_list ) { outdated_dirserver_list = smartlist_new ( ) ; } tor_ass...
<S2SV_ModStart> if ( ! networkstatus_get_reasonably_live_consensus <S2SV_ModEnd> ( approx_time ( <S2SV_ModStart> approx_time ( ) , FLAV_MICRODESC
2,268
CWE-000 static int graft_tree ( struct mount * mnt , struct mount * p , struct mountpoint * mp ) { <S2SV_StartBug> if ( mnt -> mnt . mnt_sb -> s_flags & MS_NOUSER ) <S2SV_EndBug> return - EINVAL ; if ( d_is_dir ( mp -> m_dentry ) != d_is_dir ( mnt -> mnt . mnt_root ) ) return - ENOTDIR ; return attach_recursive_mnt ( m...
<S2SV_ModStart> -> s_flags & SB_NOUSER <S2SV_ModEnd> ) return -
2,269
CWE-000 static struct sk_buff * * gre_gro_receive ( struct sk_buff * * head , struct sk_buff * skb ) { struct sk_buff * * pp = NULL ; struct sk_buff * p ; const struct gre_base_hdr * greh ; unsigned int hlen , grehlen ; unsigned int off ; int flush = 1 ; struct packet_offload * ptype ; <S2SV_StartBug> __be16 type ; <S2...
<S2SV_ModStart> ; __be16 type ; if ( NAPI_GRO_CB ( skb ) -> encap_mark ) goto out ; NAPI_GRO_CB ( skb ) -> encap_mark = 1
2,270
CWE-000 static AbstractInstruction * NoDbgRegParms compilePerformMethodCacheProbeForwithShiftbaseRegOrNone ( sqInt selectorReg , sqInt shift , sqInt baseRegOrNone ) { AbstractInstruction * anInstruction ; AbstractInstruction * anInstruction1 ; AbstractInstruction * anInstruction2 ; AbstractInstruction * anInstruction3 ...
<S2SV_ModStart> ) ; } anInstruction4 <S2SV_ModEnd> = genoperandoperand ( <S2SV_ModStart> ) ) ; anInstruction = genoperandoperandoperand ( MoveMwrR , offset , ClassReg , TempReg ) ; } else { genoperandoperand ( AddRR , baseRegOrNone , ClassReg ) ; anInstruction1 <S2SV_ModEnd> = genoperandoperandoperand ( <S2SV_ModStart>...
2,271
CWE-000 void addSVDisownNonNullG ( IRSB * sbOut , IRExpr * guard , IRExpr * sv ) { IRExpr * refCountAddr = runArrowAddr ( sbOut , sv , ShadowValue , ref_count ) ; IRExpr * prevRefCount = runLoadG64 ( sbOut , refCountAddr , guard ) ; IRExpr * newRefCount = runBinop ( sbOut , Iop_Sub64 , prevRefCount , mkU64 ( 1 ) ) ; ad...
<S2SV_ModStart> freeVal ) ; if ( PRINT_VALUE_MOVES ) { addPrintG ( guard , "disowning<S2SV_blank>value.\\n" ) ; }
2,272
CWE-000 static void crng_reseed ( struct crng_state * crng , struct entropy_store * r ) { unsigned long flags ; int i , num ; union { <S2SV_StartBug> __u32 block [ CHACHA20_BLOCK_WORDS ] ; <S2SV_EndBug> __u32 key [ 8 ] ; } buf ; if ( r ) { num = extract_entropy ( r , & buf , 32 , 16 , 0 ) ; if ( num == 0 ) return ; } e...
<S2SV_ModStart> ; union { __u8 block [ CHACHA20_BLOCK_SIZE <S2SV_ModEnd> ] ; __u32
2,273
CWE-000 int parseInput ( int nargs , char * * args , struct inputParameters * inpp ) { memset ( inpp , 0 , sizeof ( struct inputParameters ) ) ; if ( nargs == 2 && ( strcmp ( args [ 1 ] , "--help" ) == 0 || strcmp ( args [ 1 ] , "-h" ) ) ) { printhelp ( ) ; <S2SV_StartBug> } <S2SV_EndBug> int arg = 1 ; while ( arg < na...
<S2SV_ModStart> ( ) ; return 1 ; <S2SV_ModStart> ) ; } return 0 ;
2,274
CWE-000 bool ponyint_thread_create ( pony_thread_id_t * thread , thread_fn start , uint32_t cpu , void * arg ) { ( void ) cpu ; # if defined ( PLATFORM_IS_WINDOWS ) uintptr_t p = _beginthreadex ( NULL , 0 , start , arg , 0 , NULL ) ; if ( ! p ) return false ; * thread = ( HANDLE ) p ; # elif defined ( PLATFORM_IS_LINUX...
<S2SV_ModStart> set ) ; <S2SV_ModEnd> if ( use_numa
2,275
CWE-000 static int __vxlan_dev_create ( struct net * net , struct net_device * dev , struct vxlan_config * conf , struct netlink_ext_ack * extack ) { struct vxlan_net * vn = net_generic ( net , vxlan_net_id ) ; struct vxlan_dev * vxlan = netdev_priv ( dev ) ; struct vxlan_fdb * f = NULL ; <S2SV_StartBug> int err ; <S2S...
<S2SV_ModStart> = NULL ; bool unregister = false ; <S2SV_ModStart> goto errout ; unregister = true ; <S2SV_ModStart> ( err ) <S2SV_ModEnd> goto errout ; <S2SV_ModStart> goto errout ; <S2SV_ModEnd> if ( f <S2SV_ModStart> false ) ; if ( unregister ) unregister_netdevice ( dev ) ;
2,276
CWE-000 void __conn ( void ) { <S2SV_StartBug> PGconn * conn = nil ; <S2SV_EndBug> <S2SV_StartBug> Error * e = nil ; <S2SV_EndBug> So ( 1 , postgres . conn_checker ( PG_CONN_INFO ) ) ; __check_fatal ( e , postgres . conn ( PG_CONN_INFO , & conn ) ) ; SoN ( nil , conn ) ; postgres . conn_drop ( conn ) ; }
<S2SV_ModStart> void ) { Error * e <S2SV_ModEnd> = nil ; <S2SV_ModStart> = nil ; PGconn * conn <S2SV_ModEnd> = nil ;
2,277
CWE-000 int xfs_set_acl ( struct inode * inode , struct posix_acl * acl , int type ) { int error = 0 ; if ( ! acl ) goto set_acl ; error = - E2BIG ; if ( acl -> a_count > XFS_ACL_MAX_ENTRIES ( XFS_M ( inode -> i_sb ) ) ) return error ; if ( type == ACL_TYPE_ACCESS ) { umode_t mode ; <S2SV_StartBug> struct posix_acl * o...
<S2SV_ModStart> umode_t mode ; <S2SV_ModEnd> error = posix_acl_update_mode <S2SV_ModStart> , & acl <S2SV_ModEnd> ) ; if
2,278
CWE-000 int send_msg ( int socket , int id , char * payMsg ) { if ( payMsg == NULL ) { payMsg = prepare_msg ( ) ; } if ( id == noid ) { printf ( "Defina<S2SV_blank>el<S2SV_blank>ID<S2SV_blank>del<S2SV_blank>mensaje<S2SV_blank>con<S2SV_blank>un<S2SV_blank>numero:\\n1:<S2SV_blank>numero\\n2:<S2SV_blank>cadena\\n" ) ; sca...
<S2SV_ModStart> char ) * ( len + 1 <S2SV_ModEnd> ) ) ; <S2SV_ModStart> result ) ; free ( content ) ; free ( payMsg ) ;
2,279
CWE-000 int parse_inode_from_beginning_block ( ) { printf ( "InodeBeginBlock:\\t%d\\n" , InodesBeginBlock ) ; get_block ( fd , InodesBeginBlock , char_buf ) ; ip = ( INODE * ) char_buf + 1 ; <S2SV_StartBug> printf ( "\\tMode:\\t%4x" , ip -> i_mode ) ; <S2SV_EndBug> <S2SV_StartBug> printf ( "\\tMid:\\t%d\\tgid=%d\\n" , ...
<S2SV_ModStart> ; printf ( "\\tMode:\\t%4x\\n" <S2SV_ModEnd> , ip -> <S2SV_ModStart> ; printf ( "\\tMid:\\t%d\\n\\tgid=%d\\n" <S2SV_ModEnd> , ip ->
2,280
CWE-000 static bool note_outside_basic_block_p ( enum insn_note subtype , bool on_bb_boundary_p ) { switch ( subtype ) { case NOTE_INSN_SWITCH_TEXT_SECTIONS : return true ; case NOTE_INSN_VAR_LOCATION : <S2SV_StartBug> case NOTE_INSN_CALL_ARG_LOCATION : <S2SV_EndBug> case NOTE_INSN_EH_REGION_BEG : case NOTE_INSN_EH_REG...
<S2SV_ModStart> NOTE_INSN_VAR_LOCATION : case <S2SV_ModEnd> NOTE_INSN_EH_REGION_BEG : case
2,281
CWE-000 static int bin_realloc ( bin_packet_t * packet , int size ) { int required ; if ( size < 0 || packet -> buffer . len > MAX_BUF_LEN - size ) { LM_ERR ( "cannot<S2SV_blank>make<S2SV_blank>the<S2SV_blank>buffer<S2SV_blank>bigger\\n" ) ; return - 1 ; } required = packet -> buffer . len + size ; if ( required > MAX_...
<S2SV_ModStart> size ) ; if ( ! packet -> buffer . s ) { LM_ERR ( "pkg<S2SV_blank>realloc<S2SV_blank>failed\\n" ) ; return - 1 ; }
2,282
CWE-000 struct pipe_screen * <S2SV_StartBug> vc4_screen_create ( int fd ) <S2SV_EndBug> { struct vc4_screen * screen = rzalloc ( NULL , struct vc4_screen ) ; struct pipe_screen * pscreen ; pscreen = & screen -> base ; pscreen -> destroy = vc4_screen_destroy ; pscreen -> get_param = vc4_screen_get_param ; pscreen -> get...
<S2SV_ModStart> ( int fd , struct renderonly * ro <S2SV_ModStart> = fd ; if ( ro ) { screen -> ro = renderonly_dup ( ro ) ; if ( ! screen -> ro ) { fprintf ( stderr , "Failed<S2SV_blank>to<S2SV_blank>dup<S2SV_blank>renderonly<S2SV_blank>object\\n" ) ; ralloc_free ( screen ) ; return NULL ; } }
2,283
CWE-000 static void scheduleProcessInbox ( Capability * * pcap USED_IF_THREADS ) { # if defined ( THREADED_RTS ) Message * m , * next ; PutMVar * p , * pnext ; int r ; Capability * cap = * pcap ; while ( ! emptyInbox ( cap ) ) { <S2SV_StartBug> if ( cap -> r . rCurrentNursery -> link == NULL || <S2SV_EndBug> g0 -> n_ne...
<S2SV_ModStart> { if ( doYouWantToGC ( cap ) <S2SV_ModEnd> ) { scheduleDoGC
2,284
CWE-000 EFI_STATUS IScsiDhcp6ExtractRootPath ( IN CHAR8 * RootPath , IN UINT16 Length , IN OUT ISCSI_ATTEMPT_CONFIG_NVDATA * ConfigData ) { EFI_STATUS Status ; UINT16 IScsiRootPathIdLen ; CHAR8 * TmpStr ; ISCSI_ROOT_PATH_FIELD Fields [ RP_FIELD_IDX_MAX ] ; ISCSI_ROOT_PATH_FIELD * Field ; UINT32 FieldIndex ; UINT8 Index...
<S2SV_ModStart> -> SessionConfigData ; ConfigNvData -> DnsMode = FALSE ; <S2SV_ModStart> ISCSI_ROOT_PATH_ADDR_START_DELIMITER ) { ConfigNvData -> DnsMode = TRUE <S2SV_ModEnd> ; } else <S2SV_ModStart> Index ] ; if ( ! ConfigNvData -> DnsMode ) { <S2SV_ModStart> += 2 ; } else { while ( ( TmpStr [ Index ] != ISCSI_ROOT_PA...
2,285
CWE-000 void str_seq ( char * nucl_seq , int length ) { <S2SV_StartBug> int i , j , weak_counter = 0 ; <S2SV_EndBug> char c ; for ( i = 0 ; i < length ; i ++ ) { if ( * ( nucl_seq + i ) == 'c' || * ( nucl_seq + i ) == 'r' ) weak_counter = 0 ; else weak_counter ++ ; if ( weak_counter >= 5 ) { for ( j = i ; j >= 0 ; j --...
<S2SV_ModStart> { int i ; int j ; int <S2SV_ModEnd> weak_counter = 0 <S2SV_ModStart> if ( c == 'a' || c == 'g' <S2SV_ModEnd> ) { *
2,286
CWE-000 void smp_destroy_apboot ( ) { <S2SV_StartBug> for ( page_t page = 0 ; page <= memInfo . kernelEnd - memInfo . kernelVirtualOffset ; page += PAGE_SIZE_4K ) <S2SV_EndBug> paging_unmap_virtual ( page ) ; }
<S2SV_ModStart> { for ( uintptr_t <S2SV_ModEnd> page = 0
2,287
CWE-000 <S2SV_StartBug> int ffpatched_handleSDLKeyEvent ( Uint8 sdlKey ) { <S2SV_EndBug> switch ( sdlKey ) { case SDLK_n : IS_AUDIO_COMPRESS_ENABLED = ! IS_AUDIO_COMPRESS_ENABLED ; av_log ( NULL , AV_LOG_WARNING , "\\nIS_AUDIO_COMPRESS_ENABLED<S2SV_blank>=<S2SV_blank>%d\\n\\n" , IS_AUDIO_COMPRESS_ENABLED ) ; break ; ca...
<S2SV_ModStart> <S2SV_null> <S2SV_null> <S2SV_null> static void <S2SV_ModEnd> ffpatched_handleSDLKeyEvent ( Uint8
2,288
CWE-000 Test ( rdm_rma_scalable , inject_writedata ) <S2SV_StartBug> { <S2SV_EndBug> xfer_for_each_size ( do_inject_writedata , 8 , INJECT_SIZE ) ; }
<S2SV_ModStart> inject_writedata ) { cr_skip_test ( "intermittent<S2SV_blank>test<S2SV_blank>failures" ) ;
2,289
CWE-000 int merge_trees ( struct merge_options * o , struct tree * head , struct tree * merge , struct tree * common , struct tree * * result ) { int code , clean ; if ( o -> subtree_shift ) { merge = shift_tree_object ( head , merge , o -> subtree_shift ) ; common = shift_tree_object ( head , common , o -> subtree_shi...
<S2SV_ModStart> ( ) ; re_head = get_renames ( o , head , common , head , merge , entries ) ; re_merge = get_renames ( o , merge , common , head , merge , entries ) ; clean = process_renames ( o , re_head , re_merge ) ; <S2SV_ModStart> o , entries <S2SV_ModEnd> ) ; if
2,290
CWE-000 double xx_MIXED ( double * x , int nr , int nc , int i1 , int i2 , int * vtype , double * weights , double * R , double wsum , double * T , double * Trange ) { double dist , dev ; int count , j ; count = 0 ; dist = 0.0 ; wsum = 0.0 ; for ( j = 0 ; j < nc ; j ++ ) { if ( R_FINITE ( x [ i1 ] ) && R_FINITE ( x [ i...
<S2SV_ModStart> j ] ; <S2SV_ModEnd> } if (
2,291
CWE-000 LinkedList LinkedListCreate ( elemtype x ) { int i = 1 ; int keep ; Node * head , * p , * q ; head = ( Node * ) malloc ( sizeof ( Node ) ) ; if ( head == NULL ) printf ( "Failed<S2SV_blank>to<S2SV_blank>apply<S2SV_blank>memory<S2SV_blank>space!\\n" ) ; head -> next = NULL ; head -> prior = NULL ; if ( x > 0 ) {...
<S2SV_ModStart> = q ; head <S2SV_ModEnd> -> next =
2,292
CWE-000 static int pci_mmap_resource ( struct kobject * kobj , struct bin_attribute * attr , struct vm_area_struct * vma , int sparse ) { struct pci_dev * pdev = to_pci_dev ( container_of ( kobj , struct device , kobj ) ) ; struct resource * res = attr -> private ; enum pci_mmap_state mmap_type ; struct pci_bus_region ...
<S2SV_ModStart> ; if ( res -> flags & IORESOURCE_MEM && iomem_is_exclusive ( res -> start ) ) return - EINVAL ; if ( <S2SV_ModStart> vma , sparse <S2SV_ModEnd> ) ) return
2,293
CWE-000 void rpc_warnx ( char * fmt , ... ) { va_list ap ; <S2SV_StartBug> if ( component_log_level [ COMPONENT_TIRPC ] < NIV_DEBUG ) <S2SV_EndBug> return ; va_start ( ap , fmt ) ; display_log_component_level ( COMPONENT_TIRPC , "<no-file>" , 0 , "rpc" , <S2SV_StartBug> NIV_DEBUG , fmt , ap ) ; <S2SV_EndBug> va_end ( a...
<S2SV_ModStart> [ COMPONENT_TIRPC ] <= NIV_FATAL <S2SV_ModEnd> ) return ; <S2SV_ModStart> , "rpc" , component_log_level [ COMPONENT_TIRPC ] <S2SV_ModEnd> , fmt ,
2,294
CWE-000 static void close_connection ( struct xdag_rpc_connection * conn ) { <S2SV_StartBug> shutdown ( conn -> fd . fd , SHUT_RDWR ) ; <S2SV_EndBug> close ( conn -> fd . fd ) ; free ( conn ) ; }
<S2SV_ModStart> . fd , SHUT_WR ) ; recv ( conn -> fd . fd , NULL , 0 , 0 <S2SV_ModEnd> ) ; close
2,295
CWE-000 PyLiteObject * pylt_obj_float_floordiv ( PyLiteInterpreter * I , PyLiteFloatObject * self , PyLiteObject * other ) { switch ( other -> ob_type ) { <S2SV_StartBug> case PYLT_OBJ_TYPE_INT : <S2SV_EndBug> return castobj ( pylt_obj_int_new ( I , ( uint32_t ) ( self -> ob_val / ( uint32_t ) castint ( other ) -> ob_v...
<S2SV_ModStart> case PYLT_OBJ_TYPE_INT : if ( castint ( other ) -> ob_val == 0 ) { pl_error ( I , pl_static . str . ZeroDivisionError , "float<S2SV_blank>division<S2SV_blank>by<S2SV_blank>zero" ) ; return NULL ; } <S2SV_ModStart> case PYLT_OBJ_TYPE_FLOAT : if ( castfloat ( other ) -> ob_val == 0 ) { pl_error ( I , pl_s...
2,296
CWE-000 <S2SV_StartBug> static int send_dump_request ( int fd , int family , int type ) <S2SV_EndBug> { struct get_req req ; memset ( & req , 0 , sizeof ( req ) ) ; req . n . nlmsg_len = sizeof ( req ) ; req . n . nlmsg_type = type ; <S2SV_StartBug> req . n . nlmsg_flags = NLM_F_REQUEST | NLM_F_ROOT | NLM_F_MATCH ; <S2...
<S2SV_ModStart> ( int fd , const char * name <S2SV_ModStart> nlmsg_flags = NLM_F_REQUEST <S2SV_ModEnd> ; req . <S2SV_ModStart> ; req . i . ifi_family <S2SV_ModEnd> = family ; <S2SV_ModStart> = family ; if ( name == NULL ) { req . n . nlmsg_flags |= NLM_F_DUMP ; } else { req . i . ifi_index = if_nametoindex ( name ) ; i...
2,297
CWE-000 void pthreads_streams_api_file_popen ( char * command , char * mode , int mode_len , zval * return_value ) { pthreads_stream_t * threaded_stream ; FILE * fp ; char * posix_mode ; posix_mode = estrndup ( mode , mode_len ) ; # ifndef PHP_WIN32 { char * z = memchr ( posix_mode , 'b' , mode_len ) ; if ( z ) { memmo...
<S2SV_ModStart> , mode , <S2SV_ModEnd> pthreads_file_stream_entry ) ;
2,298
CWE-000 void wcmEvent ( WacomCommonPtr common , unsigned int channel , const WacomDeviceState * pState ) { WacomDeviceState ds ; <S2SV_StartBug> WacomChannelPtr pChannel ; <S2SV_EndBug> enum WacomSuppressMode suppress ; InputInfoPtr pInfo ; WacomToolPtr tool ; WacomDevicePtr priv ; pChannel = common -> wcmChannel + cha...
<S2SV_ModStart> ; WacomChannelPtr pChannel <S2SV_ModEnd> ; InputInfoPtr pInfo <S2SV_ModStart> pInfo , pChannel <S2SV_ModEnd> ) ; }
2,299
CWE-000 AST * TransformCaseExprList ( AST * var , AST * ast ) { AST * listexpr = NULL ; AST * node ; <S2SV_StartBug> while ( ast ) { <S2SV_EndBug> if ( ast -> kind == AST_OTHER ) { return AstInteger ( 1 ) ; } else { if ( ast -> left -> kind == AST_RANGE ) { node = NewAST ( AST_ISBETWEEN , var , ast -> left ) ; } else {...
<S2SV_ModStart> ast ) { AstReportAs ( ast ) ;