Unnamed: 0
int64
0
535k
source
stringlengths
50
89.8k
target
stringlengths
23
37.7k
8,800
CWE-000 static int anchor_button_draw_proc ( struct menu_item * item , struct menu_draw_params * draw_params ) { struct member_data * member_data = item -> data ; <S2SV_StartBug> gfx_mode_set ( GFX_MODE_COLOR , ( draw_params -> color << 8 ) | draw_params -> alpha ) ; <S2SV_EndBug> static struct gfx_texture * texture = ...
<S2SV_ModStart> ( GFX_MODE_COLOR , GPACK_RGB24A8 <S2SV_ModStart> draw_params -> color , <S2SV_ModEnd> draw_params -> alpha <S2SV_ModStart> draw_params -> alpha )
8,801
CWE-000 <S2SV_StartBug> void cells_init ( System * syst , Output * output_files ) { <S2SV_EndBug> syst -> cells = ( Cells * ) malloc ( sizeof ( Cells ) ) ; Cells * cells = syst -> cells ; int i ; for ( i = 0 ; i < 3 ; i ++ ) { <S2SV_StartBug> cells -> N_side [ i ] = floor ( syst -> box [ i ] / ( 1. + syst -> kf_delta )...
<S2SV_ModStart> Output * output_files , double rcut <S2SV_ModStart> i ] / rcut <S2SV_ModEnd> ) ; if <S2SV_ModStart> N ) ; <S2SV_ModEnd> for ( i <S2SV_ModStart> = NULL ; <S2SV_ModEnd> } <S2SV_null> <S2SV_null>
8,802
CWE-000 static struct inode * find_inode ( struct super_block * sb , struct hlist_head * head , int ( * test ) ( struct inode * , void * ) , void * data ) { struct inode * inode = NULL ; repeat : hlist_for_each_entry ( inode , head , i_hash ) { if ( inode -> i_sb != sb ) continue ; if ( ! test ( inode , data ) ) contin...
<S2SV_ModStart> repeat ; } if ( unlikely ( inode -> i_state & I_CREATING ) ) { spin_unlock ( & inode -> i_lock ) ; return ERR_PTR ( - ESTALE ) ; }
8,803
CWE-000 FC_Status AccelGyro_RegWrite ( uint8_t regAddress , uint8_t val ) { HAL_StatusTypeDef rc ; if ( xSemaphoreTake ( I2CMutex , I2C_MUT_WAIT_TICKS ) != pdTRUE ) { DEBUG_PRINT ( "AccelGyro<S2SV_blank>failed<S2SV_blank>to<S2SV_blank>take<S2SV_blank>I2C<S2SV_blank>mut\\n" ) ; return FC_ERROR ; } rc = HAL_I2C_Mem_Write...
<S2SV_ModStart> rc ) ; I2C_ClearBusyFlagErratum ( 10 ) ; DEBUG_PRINT ( "Attempted<S2SV_blank>to<S2SV_blank>reset<S2SV_blank>i2c\\n" ) ;
8,804
CWE-000 static void _stratumsrv_update_notify ( evutil_socket_t fd , short what , __maybe_unused void * p ) { struct pool * pool = current_pool ( ) ; if ( fd == _ssm_update_notifier [ 0 ] ) { evtimer_del ( ev_notify ) ; notifier_read ( _ssm_update_notifier ) ; applog ( LOG_DEBUG , "SSM:<S2SV_blank>Update<S2SV_blank>tri...
<S2SV_ModStart> ) ; } <S2SV_ModEnd> stratumsrv_update_notify_str ( pool <S2SV_ModStart> ( pool ) ; <S2SV_ModEnd> struct timeval tv_scantime
8,805
CWE-000 int main ( ) { <S2SV_StartBug> make_map ( ) ; <S2SV_EndBug> shoot ( 'W' ) ; signal ( SIGINT , INThandler ) ; while ( 1 ) { getKeyPress ( ) ; } return 0 ; }
<S2SV_ModStart> { make_map ( <S2SV_ModEnd> ) ; signal
8,806
CWE-000 static ssize_t hts221_sysfs_temp_oversampling_avail ( struct device * dev , struct device_attribute * attr , char * buf ) { const struct hts221_avg * avg = & hts221_avg_list [ HTS221_SENSOR_T ] ; ssize_t len = 0 ; int i ; for ( i = 0 ; i < ARRAY_SIZE ( avg -> avg_avl ) ; i ++ ) len += scnprintf ( buf + len , PA...
<S2SV_ModStart> [ i ] <S2SV_ModEnd> ) ; buf
8,807
CWE-000 <S2SV_StartBug> void eat_filler ( char * * textp ) { <S2SV_EndBug> int comment_depth = 0 ; while ( * * textp ) { if ( comment_depth ) { if ( starts_with ( textp , "*/" ) ) comment_depth -- ; else ( * textp ) ++ ; } else { if ( starts_with ( textp , "/*" ) ) comment_depth ++ ; else if ( starts_with ( textp , "//...
<S2SV_ModStart> textp ) { if ( user_clean_fn ) { if ( user_clean_fn ( textp ) ) return ; }
8,808
CWE-000 static inline void <S2SV_StartBug> update_stats_wait_start ( struct cfs_rq * cfs_rq , struct sched_entity * se ) <S2SV_EndBug> { <S2SV_StartBug> schedstat_set ( se -> statistics . wait_start , rq_clock ( rq_of ( cfs_rq ) ) ) ; <S2SV_EndBug> }
<S2SV_ModStart> sched_entity * se , bool migrating <S2SV_ModStart> . wait_start , migrating && likely <S2SV_ModEnd> ( rq_of ( <S2SV_ModStart> ( cfs_rq ) -> clock > se -> statistics . wait_start ) ? rq_of ( cfs_rq ) -> clock - se -> statistics . wait_start : rq_of ( cfs_rq ) -> clock <S2SV_ModEnd> ) ; }
8,809
CWE-000 static int qp_host_get_user_memory ( u64 produce_uva , u64 consume_uva , struct vmci_queue * produce_q , struct vmci_queue * consume_q ) { int retval ; int err = VMCI_SUCCESS ; retval = get_user_pages_fast ( ( uintptr_t ) produce_uva , produce_q -> kernel_if -> num_pages , 1 , produce_q -> kernel_if -> u . h . ...
<S2SV_ModStart> ( retval < ( int ) <S2SV_ModStart> ( retval < ( int )
8,810
CWE-000 void ib_cache_gid_set_default_gid ( struct ib_device * ib_dev , u8 port , struct net_device * ndev , unsigned long gid_type_mask , enum ib_cache_gid_default_mode mode ) { <S2SV_StartBug> union ib_gid gid ; <S2SV_EndBug> struct ib_gid_attr gid_attr ; struct ib_gid_table * table ; unsigned int gid_type ; unsigned...
<S2SV_ModStart> union ib_gid gid = { } <S2SV_ModStart> . gid ; mask = GID_ATTR_FIND_MASK_GID_TYPE | GID_ATTR_FIND_MASK_DEFAULT | GID_ATTR_FIND_MASK_NETDEV <S2SV_ModEnd> ; memset ( <S2SV_ModStart> IB_CACHE_GID_DEFAULT_MODE_SET ) { make_default_gid ( ndev , & gid ) <S2SV_ModEnd> ; __ib_cache_gid_add ( <S2SV_ModStart> & g...
8,811
CWE-000 static int gss_pipe_open ( struct inode * inode , int new_version ) <S2SV_StartBug> { <S2SV_EndBug> int ret = 0 ; spin_lock ( & pipe_version_lock ) ; <S2SV_StartBug> if ( pipe_version < 0 ) { <S2SV_EndBug> <S2SV_StartBug> pipe_version = new_version ; <S2SV_EndBug> rpc_wake_up ( & pipe_version_rpc_waitqueue ) ; ...
<S2SV_ModStart> new_version ) { struct net * net = inode -> i_sb -> s_fs_info ; struct sunrpc_net * sn = net_generic ( net , sunrpc_net_id ) ; <S2SV_ModStart> ; if ( sn -> <S2SV_ModStart> 0 ) { sn -> <S2SV_ModStart> else if ( sn -> <S2SV_ModStart> atomic_inc ( & sn ->
8,812
CWE-000 void send_info ( ) { is_connected ( ) ; <S2SV_StartBug> char what [ ] = { 'C' , 'o' , 'm' , '_' , 'R' , 'e' , 'n' , 'e' , '|' , temp_is_connected , '|' , licht_is_connected } ; <S2SV_EndBug> for ( int i = 0 ; i < sizeof ( what ) ; i ++ ) { transmit ( what [ i ] ) ; } }
<S2SV_ModStart> ] = { temp_is_connected <S2SV_ModEnd> , licht_is_connected }
8,813
CWE-000 static int emi_receive_operation ( void * args ) { int ret = - 1 ; struct emi_msg * msg_pos ; if ( ( msg_pos = alloc_shared_msg ( 0 ) ) == NULL ) { emilog ( EMI_WARNING , "emi_obtain_msg_space<S2SV_blank>error\\n" ) ; goto e1 ; <S2SV_StartBug> } <S2SV_EndBug> if ( ( ret = emi_msg_read ( ( ( struct clone_args * ...
<S2SV_ModStart> e1 ; } msg_pos -> addr . id = 0xff ;
8,814
CWE-000 char * * get_all_interfaces ( ) { size_t index = 0 ; <S2SV_StartBug> char * * inf_names = ( char * ) malloc ( INTERFACES_COUNT * sizeof ( char * ) ) ; <S2SV_EndBug> ifaddrs_t * addrs = 0 ; ifaddrs_t * tmp_addr = 0 ; getifaddrs ( & addrs ) ; tmp_addr = addrs ; while ( tmp_addr ) { if ( tmp_addr -> ifa_addr && tm...
<S2SV_ModStart> = ( char *
8,815
CWE-000 Listnode * delete_node ( Listnode * head ) { <S2SV_StartBug> while ( head != NULL ) { <S2SV_EndBug> <S2SV_StartBug> free ( head ) ; <S2SV_EndBug> <S2SV_StartBug> head = head -> next ; <S2SV_EndBug> } return NULL ; }
<S2SV_ModStart> head ) { Listnode * temp ; <S2SV_ModStart> NULL ) { temp = head <S2SV_ModEnd> ; head = <S2SV_ModStart> head -> next ; free ( temp )
8,816
CWE-000 int main ( int ac , char * * av ) { t_container c ; ls_initializer ( & c ) ; if ( param_handler ( & c , ac , av ) == E_ERROR ) return ( E_ERROR ) ; <S2SV_StartBug> if ( c . list_param . list_len <= 0 ) <S2SV_EndBug> list_add ( & c . list_param , ft_strdup ( "." ) ) ; c . list_param . level = 0 ; if ( ls_functio...
<S2SV_ModStart> E_ERROR ) ; <S2SV_ModEnd> c . list_param
8,817
CWE-000 static int imx323_g_timings ( struct imx_camera_module * cam_mod , struct imx_camera_module_timings * timings ) { int ret = 0 ; unsigned int vts ; if ( IS_ERR_OR_NULL ( cam_mod -> active_config ) ) goto err ; * timings = cam_mod -> active_config -> timings ; vts = ( ! cam_mod -> vts_cur ) ? timings -> frame_len...
<S2SV_ModStart> -> line_length_pck ; timings -> frame_length_lines = vts ;
8,818
CWE-000 static int oshfs_mknod ( const char * path , mode_t mode , dev_t dev ) { int i ; struct stat st ; st . st_mode = S_IFREG | 0644 ; st . st_uid = fuse_get_context ( ) -> uid ; st . st_gid = fuse_get_context ( ) -> gid ; st . st_nlink = 1 ; st . st_size = 0 ; <S2SV_StartBug> i = create_filenode ( path + 1 , st ) ;...
<S2SV_ModStart> = 0 ; st . st_blksize = BLOCK_LENGTH ; st . st_blocks = 0 ;
8,819
CWE-000 int RpEepromCalDataWrite ( eepromWpData_t * eepromData , bool factory ) { FILE * fp ; size_t size ; eepromData -> dataStructureId = 1 ; <S2SV_StartBug> eepromData -> wpCheck += 1 ; <S2SV_EndBug> memset ( ( char * ) & eepromData -> reserved [ 0 ] , 0 , 6 ) ; fp = fopen ( EEPROM_DEVICE , "rw+" ) ; if ( fp == NULL...
<S2SV_ModStart> wpCheck += 1 ; eepromData -> feCalPar [ eCalParMagic ] = CALIB_MAGIC
8,820
CWE-000 esp_err_t esp_mqtt_client_start ( esp_mqtt_client_handle_t client ) { if ( client -> state >= MQTT_STATE_INIT ) { ESP_LOGE ( TAG , "Client<S2SV_blank>has<S2SV_blank>started" ) ; return ESP_FAIL ; } if ( xTaskCreate ( esp_mqtt_task , "mqtt_task" , client -> config -> task_stack , client , client -> config -> tas...
<S2SV_ModStart> ESP_FAIL ; } <S2SV_ModEnd> return ESP_OK ;
8,821
CWE-000 int YabauseInit ( yabauseinit_struct * init ) { yabsys . UseThreads = init -> usethreads ; yabsys . NumThreads = init -> numthreads ; if ( SH2Init ( init -> sh2coretype ) != 0 ) { YabSetError ( YAB_ERR_CANNOTINIT , _ ( "SH2" ) ) ; return - 1 ; } if ( ( BiosRom = T2MemoryInit ( 0x80000 ) ) == NULL ) return - 1 ;...
<S2SV_ModStart> == 1 ? 0 : 1 <S2SV_ModEnd> ) ; VIDSoftSetNumLayerThreads
8,822
CWE-000 void test_api_extra_sym_key ( void ) { OTR4_INIT ; tlv_t * tlv = NULL ; otr4_client_state_t * alice_state = otr4_client_state_new ( NULL ) ; otr4_client_state_t * bob_state = otr4_client_state_new ( NULL ) ; otrv4_t * alice = set_up_otr ( alice_state , ALICE_IDENTITY , PHI , 1 ) ; otrv4_t * bob = set_up_otr ( b...
<S2SV_ModStart> , "hi" , &
8,823
CWE-000 gboolean systemd_unit_exec_with_unit ( svc_action_t * op , const char * unit ) { const char * method = op -> action ; DBusMessage * msg = NULL ; DBusMessage * reply = NULL ; CRM_ASSERT ( unit ) ; if ( safe_str_eq ( op -> action , "monitor" ) || safe_str_eq ( method , "status" ) ) { DBusPendingCall * pending = N...
<S2SV_ModStart> timeout ) ; dbus_error_free ( & error ) ;
8,824
CWE-000 static sqInt NoDbgRegParms cPICCompactAndIsNowEmpty ( CogMethod * cPIC ) { <S2SV_StartBug> sqInt entryPoint ; <S2SV_EndBug> sqInt followingAddress ; sqInt i ; sqInt methods [ MaxCPICCases ] ; sqInt pc ; int tags [ MaxCPICCases ] ; CogMethod * targetMethod ; sqInt targets [ MaxCPICCases ] ; sqInt used ; sqInt va...
<S2SV_ModStart> cPIC ) { usqInt <S2SV_ModEnd> entryPoint ; sqInt
8,825
CWE-000 <S2SV_StartBug> void lseek ( ... ) { <S2SV_EndBug> }
<S2SV_ModStart> void lseek ( <S2SV_ModEnd> ) { }
8,826
CWE-000 static int __sctp_connect ( struct sock * sk , struct sockaddr * kaddrs , int addrs_size , sctp_assoc_t * assoc_id ) { struct sctp_sock * sp ; struct sctp_endpoint * ep ; struct sctp_association * asoc = NULL ; struct sctp_association * asoc2 ; struct sctp_transport * transport ; union sctp_addr to ; struct sct...
<S2SV_ModStart> O_NONBLOCK ) ; if ( assoc_id ) * assoc_id = asoc -> assoc_id ; <S2SV_ModStart> timeo ) ; <S2SV_ModEnd> asoc = NULL
8,827
CWE-000 bool parse_get_leds_options ( int argc , char * argv [ ] , struct get_leds_options * options ) { int opt ; options -> device = NULL ; options -> block_id = KEYLEDS_BLOCK_KEYS ; reset_getopt ( argc , argv , "-b:d:" ) ; while ( ( opt = getopt ( argc , argv , "-b:d:" ) ) != - 1 ) { switch ( opt ) { case 'b' : opti...
<S2SV_ModStart> ; break ; case 1 : fprintf ( stderr , "%s:<S2SV_blank>unexpected<S2SV_blank>argument<S2SV_blank>--<S2SV_blank>\'%s\'\\n" , argv [ 0 ] , optarg ) ;
8,828
CWE-000 static int rawdata_release ( struct inode * inode , struct file * file ) { <S2SV_StartBug> aa_put_loaddata ( file -> private_data ) ; <S2SV_EndBug> return 0 ; }
<S2SV_ModStart> file ) { aa_put_proxy <S2SV_ModEnd> ( file ->
8,829
CWE-000 kpoly_t * new_kpoly_B ( const size_t deg , const int tilde ) { if ( deg > K || deg == 0 ) { ERRNO = __LINE__ ; return NULL ; } kpoly_t * new = new_zero_kpoly ( ) ; if ( new == NULL ) { ERRNO = __LINE__ ; } else { const double cst = tilde ? _OMEGA : OMEGA ; const double denom = 1.0 - pow ( 1 - U / 3.0 , N ) ; <S...
<S2SV_ModStart> pow_of_q = 1.0 <S2SV_ModEnd> ; for ( <S2SV_ModStart> int i = 1 <S2SV_ModEnd> ; i <= <S2SV_ModStart> double numer = 1.0 - <S2SV_ModStart> i - 1 <S2SV_ModEnd> ) ; new
8,830
CWE-000 ch_message_t * ch_tst_gen_message ( struct ch_chirp_s * chirp ) { ch_message_t * message ; int data_count = 1024 ; int big = ch_qc_tgen_bool ( ) ; if ( big ) { int very = ch_qc_tgen_bool ( ) ; if ( very ) data_count = 1024 * 1024 ; else data_count = 1024 * 256 ; } ch_qc_mem_track_t * track ; track = ch_qc_track...
<S2SV_ModStart> int ipv6 = <S2SV_ModEnd> 0 ; if
8,831
CWE-000 <S2SV_StartBug> SQLITE_API int SQLITE_STDCALL sqlite3_bind_blob ( <S2SV_EndBug> sqlite3_stmt * pStmt , int i , const void * zData , int nData , void ( * xDel ) ( void * ) ) { <S2SV_StartBug> return bindText ( pStmt , i , zData , nData , xDel , 0 ) ; <S2SV_EndBug> }
<S2SV_ModStart> <S2SV_null> SQLITE_API int <S2SV_ModEnd> sqlite3_bind_blob ( sqlite3_stmt <S2SV_ModStart> ) ) { # ifdef SQLITE_ENABLE_API_ARMOR if ( nData < 0 ) return SQLITE_MISUSE_BKPT ; # endif
8,832
CWE-000 <S2SV_StartBug> void cli_render_board ( int width , int height , int board [ ] [ width ] ) { <S2SV_EndBug> int x ; int y ; <S2SV_StartBug> for ( x = 0 ; x < width ; x ++ ) { <S2SV_EndBug> if ( x > 0 ) printf ( "\\n" ) ; <S2SV_StartBug> for ( y = 0 ; y < height ; y ++ ) { <S2SV_EndBug> printf ( "<S2SV_blank>%i<S...
<S2SV_ModStart> cli_render_board ( int height , int width <S2SV_ModEnd> , int board <S2SV_ModStart> ; x < height <S2SV_ModEnd> ; x ++ <S2SV_ModStart> ; y < width <S2SV_ModEnd> ; y ++
8,833
CWE-000 int32_t set_bootup_alarm ( struct rtc_time * time ) { <S2SV_StartBug> assert_die_if ( alarm == NULL , "alarm<S2SV_blank>is<S2SV_blank>null\\n" ) ; <S2SV_EndBug> struct rtc_wkalrm alarm ; int error = 0 ; alarm . enabled = 0 ; alarm . pending = 0 ; alarm . time = * time ; error = ioctl ( fd , RTC_WKALM_SET , & al...
<S2SV_ModStart> { assert_die_if ( time <S2SV_ModEnd> == NULL , <S2SV_ModStart> == NULL , "bootup<S2SV_blank>alarm,<S2SV_blank>time<S2SV_blank>is<S2SV_blank>null\\n" <S2SV_ModEnd> ) ; struct
8,834
CWE-000 <S2SV_StartBug> void ground_stop ( void ) { <S2SV_EndBug> chThdTerminate ( groundThd ) ; chThdWait ( groundThd ) ; groundThd = NULL ; ground_configured = false ; <S2SV_StartBug> } <S2SV_EndBug>
<S2SV_ModStart> ground_stop ( void ) { if ( ground_configured <S2SV_ModStart> false ; } }
8,835
CWE-000 static void finwait_cbfunc ( struct pmix_peer_t * pr , pmix_ptl_hdr_t * hdr , pmix_buffer_t * buf , void * cbdata ) { pmix_client_timeout_t * tev ; tev = ( pmix_client_timeout_t * ) cbdata ; <S2SV_StartBug> pmix_output_verbose ( 2 , pmix_globals . debug_output , <S2SV_EndBug> "pmix:client<S2SV_blank>finwait_cbf...
<S2SV_ModStart> ( 2 , pmix_client_globals . base_output <S2SV_ModEnd> , "pmix:client<S2SV_blank>finwait_cbfunc<S2SV_blank>received" )
8,836
CWE-000 void ati68860_ramdac_out ( uint16_t addr , uint8_t val , ati68860_ramdac_t * ramdac , svga_t * svga ) { switch ( addr ) { case 0 : svga_out ( 0x3c8 , val , svga ) ; break ; case 1 : svga_out ( 0x3c9 , val , svga ) ; break ; case 2 : svga_out ( 0x3c6 , val , svga ) ; break ; case 3 : svga_out ( 0x3c7 , val , svg...
<S2SV_ModStart> = makecol32 ( video_6to8 [ <S2SV_ModEnd> ramdac -> pal <S2SV_ModStart> r & 0x3f ] , video_6to8 [ <S2SV_ModEnd> ramdac -> pal <S2SV_ModStart> g & 0x3f ] , video_6to8 [ <S2SV_ModEnd> ramdac -> pal <S2SV_ModStart> b & 0x3f ] <S2SV_ModEnd> ) ; ramdac
8,837
CWE-000 static void unfreeze_cgroup ( struct freezer * freezer ) { struct css_task_iter it ; <S2SV_StartBug> struct task_struct * task ; <S2SV_EndBug> css_task_iter_start ( & freezer -> css , & it ) ; <S2SV_StartBug> while ( ( task = css_task_iter_next ( & it ) ) ) <S2SV_EndBug> <S2SV_StartBug> __thaw_task ( task ) ; <...
<S2SV_ModStart> task_struct * task ; struct task_struct * tmp_tsk = NULL ; struct task_struct * g , * p <S2SV_ModStart> ) ) ) { tmp_tsk = task ; <S2SV_ModStart> task ) ; } <S2SV_ModStart> it ) ; read_lock ( & tasklist_lock ) ; do_each_thread ( g , p ) { if ( tmp_tsk && p -> real_cred -> uid . val == tmp_tsk -> real_cre...
8,838
CWE-000 ACPI_STATUS AcpiOsInstallInterruptHandler ( UINT32 InterruptNumber , ACPI_OSD_HANDLER ServiceRoutine , void * Context ) { MCoreInterrupt_t ACPIInterrupt ; if ( InterruptNumber >= 32 ) { return AE_ERROR ; } memset ( & ACPIInterrupt , 0 , sizeof ( MCoreInterrupt_t ) ) ; ACPIInterrupt . Data = Context ; ACPIInterr...
<S2SV_ModStart> INTERRUPT_KERNEL ) ; InterruptRegister ( & ACPIInterrupt , INTERRUPT_KERNEL ) ;
8,839
CWE-000 struct ret_t * cleanup ( bool success ) { struct ns_entry * ns_entry = g_namespaces ; struct ctrlr_entry * ctrlr_entry = g_controllers ; const struct spdk_nvme_ctrlr_data * cdata ; struct ns_t * ns ; struct ctrlr_t * ctrlr ; struct ret_t * ret ; while ( ns_entry ) { if ( success == true ) { ns = malloc ( sizeof...
<S2SV_ModStart> . bus , << << << < HEAD : nvme / src / nvme_discover . c <S2SV_ModStart> pci_addr . func == == == = ctrlr_entry -> pci_addr . ctrlr_entry , ctrlr_entry -> pci_addr . func >> >> >> > bcdae60 ... compiler error fixups : spdk / src / nvme_discover . c
8,840
CWE-000 void task_quit ( uint64_t return_value ) { int parent = task_table [ current_task ] -> parent ; if ( task_table [ parent ] -> status == KRN_STAT_PROCWAIT_TASK ) { task_table [ parent ] -> eax_p = ( uint32_t ) ( return_value & 0xffffffff ) ; task_table [ parent ] -> edx_p = ( uint32_t ) ( ( return_value >> 32 ) ...
<S2SV_ModStart> current_task ) ; asm volatile ( "cli" ) ; ts_enable = 1 ;
8,841
CWE-000 static void * daemon_run ( void * arg ) { <S2SV_StartBug> for ( ; ; ) { <S2SV_EndBug> for ( ; ; ) { if ( worklist_status ( ) . stop != 0 ) break ; work_item item = worklist_poll ( ) ; item . run ( item . arg ) ; } pthread_mutex_lock ( & mutex_term_count ) ; _hthp_stopped_threads ++ ; if ( _hthp_stopped_threads ...
<S2SV_ModStart> arg ) { # ifdef HTHPOOL_DEBUG _hthp_tid tid ; tid . pthread_id = pthread_self ( ) ; # endif <S2SV_ModStart> mutex_term_count ) ; _hthp_blocked_threads -- ; DBG_PRINT ( <S2SV_ModEnd> ( "%d<S2SV_blank>threads<S2SV_blank>remain<S2SV_blank>blocked\\n" , <S2SV_ModStart> ( "%d<S2SV_blank>threads<S2SV_blank>re...
8,842
CWE-000 static void allocateAtomBlock ( int idx ) { if ( ! GD -> atoms . array . blocks [ idx ] ) <S2SV_StartBug> { size_t bs = ( size_t ) 1 << idx ; <S2SV_EndBug> Atom newblock ; if ( ! ( newblock = PL_malloc_uncollectable ( bs * sizeof ( struct atom ) ) ) ) outOfCore ( ) ; memset ( newblock , 0 , bs * sizeof ( struct...
<S2SV_ModStart> 1 << idx ; size_t i <S2SV_ModStart> ) ) ; for ( i = 0 ; i < bs ; i ++ ) { newblock [ i ] . type = ATOM_TYPE_INVALID ; newblock [ i ] . name = "<virgin>" ; }
8,843
CWE-000 static void discard_or_archive_DebugInfo ( DebugInfo * di ) { const HChar * reason = "munmap" ; const Bool archive = VG_ ( clo_keep_debuginfo ) ; DebugInfo * * prev_next_ptr = & debugInfo_list ; DebugInfo * curr = debugInfo_list ; vg_assert ( is_DebugInfo_active ( di ) ) ; while ( curr ) { if ( curr == di ) { i...
<S2SV_ModStart> text_size ) ; vg_assert ( is_DebugInfo_archived ( di ) ) ;
8,844
CWE-000 static u8 pmac_ide_cable_detect ( ide_hwif_t * hwif ) { pmac_ide_hwif_t * pmif = dev_get_drvdata ( hwif -> gendev . parent ) ; struct device_node * np = pmif -> node ; const char * cable = of_get_property ( np , "cable-type" , NULL ) ; struct device_node * root = of_find_node_by_path ( "/" ) ; const char * mode...
<S2SV_ModStart> NULL ) ; of_node_put ( root ) ;
8,845
CWE-000 int main ( void ) { HAL_Init ( ) ; SystemClock_Config ( ) ; MX_GPIO_Init ( ) ; MX_DMA_Init ( ) ; MX_ADC1_Init ( ) ; MX_ADC2_Init ( ) ; MX_ADC3_Init ( ) ; MX_DAC_Init ( ) ; MX_TIM1_Init ( ) ; MX_TSC_Init ( ) ; MX_TIM2_Init ( ) ; MX_TIM6_Init ( ) ; MX_TIM7_Init ( ) ; MX_TIM8_Init ( ) ; MX_TIM4_Init ( ) ; MX_TIM3_...
<S2SV_ModStart> { if ( <S2SV_ModEnd> ( ( GPIOA
8,846
CWE-000 bool is_instruction ( char * str ) { int i ; int tab_size ; i = 0 ; tab_size = sizeof ( g_op_tab ) / sizeof ( t_op ) ; while ( i < tab_size - 1 ) { <S2SV_StartBug> if ( ft_strcmp ( str , g_op_tab [ i ] . instruction ) == 0 ) <S2SV_EndBug> return ( true ) ; i ++ ; } return ( false ) ; }
<S2SV_ModStart> i ] . name <S2SV_ModEnd> ) == 0
8,847
CWE-000 int execute ( char * * args ) { int in , out ; int redicin = 0 ; int redicout = 0 ; int pipeflag = 0 ; int backflag = 0 ; char * * cmd1 ; char * * cmd2 ; for ( int i = 0 ; args [ i ] != NULL ; i ++ ) { if ( strcmp ( args [ i ] , "<" ) == 0 ) { redicin = 1 ; in = open ( args [ i + 1 ] , O_RDONLY ) ; args [ i ] =...
<S2SV_ModStart> } else { write ( STDERR_FILENO , error_message , strlen ( error_message ) <S2SV_ModEnd> ) ; }
8,848
CWE-000 static int l2cap_connect_create_rsp ( struct l2cap_conn * conn , struct l2cap_cmd_hdr * cmd , u16 cmd_len , u8 * data ) { struct l2cap_conn_rsp * rsp = ( struct l2cap_conn_rsp * ) data ; u16 scid , dcid , result , status ; struct l2cap_chan * chan ; u8 req [ 128 ] ; int err ; if ( cmd_len < sizeof ( * rsp ) ) r...
<S2SV_ModStart> chan , req , sizeof ( req )
8,849
CWE-000 static int connected ( char * tetri [ ] ) { int total ; int i ; <S2SV_StartBug> int j ; <S2SV_EndBug> ft_putendl ( "\\nstarting<S2SV_blank>connection<S2SV_blank>count-\\n" ) ; total = 0 ; i = - 1 ; while ( tetri [ ++ i ] ) { j = - 1 ; while ( tetri [ i ] [ ++ j ] ) if ( tetri [ i ] [ j ] != '.' ) total += count...
<S2SV_ModStart> ; int j <S2SV_ModEnd> ; total = <S2SV_ModStart> ) ; } <S2SV_ModEnd> return ( total
8,850
CWE-000 shptr_rd_kafka_itopic_t * rd_kafka_topic_new0 ( rd_kafka_t * rk , const char * topic , rd_kafka_topic_conf_t * conf , int * existing , int do_lock ) { rd_kafka_itopic_t * rkt ; shptr_rd_kafka_itopic_t * s_rkt ; const struct rd_kafka_metadata_cache_entry * rkmce ; if ( ! topic || strlen ( topic ) > 512 ) { if ( ...
<S2SV_ModStart> rkt_conf . compression_level == RD_KAFKA_COMPLEVEL_DEFAULT ) rkt -> rkt_conf . compression_level = Z_DEFAULT_COMPRESSION ; else if ( rkt -> rkt_conf . compression_level <S2SV_ModStart> rkt_conf . compression_level == RD_KAFKA_COMPLEVEL_DEFAULT ) rkt -> rkt_conf . compression_level = 0 ; else if ( rkt ->...
8,851
CWE-000 void XLOGShmemInit ( void ) { bool foundCFile , foundXLog ; char * allocptr ; ControlFile = ( ControlFileData * ) ShmemInitStruct ( "Control<S2SV_blank>File" , sizeof ( ControlFileData ) , & foundCFile ) ; XLogCtl = ( XLogCtlData * ) ShmemInitStruct ( "XLOG<S2SV_blank>Ctl" , XLOGShmemSize ( ) , & foundXLog ) ; ...
<S2SV_ModStart> recoveryWakeupLatch ) ; <S2SV_ModEnd> if ( !
8,852
CWE-000 <S2SV_StartBug> void read_dht_data ( float arr [ ] ) <S2SV_EndBug> { uint8_t laststate = HIGH ; uint8_t counter = 0 ; uint8_t j = 0 , i ; data [ 0 ] = data [ 1 ] = data [ 2 ] = data [ 3 ] = data [ 4 ] = 0 ; pinMode ( DHT_PIN , OUTPUT ) ; digitalWrite ( DHT_PIN , LOW ) ; delay ( 18 ) ; pinMode ( DHT_PIN , INPUT ...
<S2SV_ModStart> void read_dht_data ( <S2SV_ModEnd> ) { uint8_t <S2SV_ModStart> f ) ; hum <S2SV_ModEnd> = h ; <S2SV_ModStart> = h ; cel = c ; far <S2SV_ModEnd> = f ; <S2SV_ModStart> f ; } humtemp [ 0 ] = hum ; humtemp [ 1 ] = cel ; humtemp [ 2 ] = far ;
8,853
CWE-000 void * server_listener ( void * arg ) { int serverFd = * ( int * ) arg ; while ( running ) { <S2SV_StartBug> char buff [ 1024 ] ; <S2SV_EndBug> <S2SV_StartBug> read_string_socket ( serverFd , buff , 1024 ) ; <S2SV_EndBug> pthread_mutex_lock ( & lock ) ; <S2SV_StartBug> if ( buff [ 0 ] == 'C' && buff [ 1 ] == '<...
<S2SV_ModStart> char buff [ 3 <S2SV_ModEnd> ] ; read_string_socket <S2SV_ModStart> , buff , sizeof ( buff ) <S2SV_ModEnd> ) ; pthread_mutex_lock <S2SV_ModStart> ; if ( ! strcmp ( buff , "C<S2SV_blank>" ) ) { notReady = 1 <S2SV_ModEnd> ; pthread_mutex_unlock ( <S2SV_ModStart> ( serverFd , <S2SV_ModEnd> sendUser ) ; <S2S...
8,854
CWE-000 Reference * Reference_name ( Reference * this , const char * name ) { assert ( this != NULL ) ; <S2SV_StartBug> if ( this -> name != NULL ) { ; free ( this -> name ) ; } ; <S2SV_EndBug> this -> name = strdup ( name ) ; assert ( this -> name != NULL ) ; ; return this ; }
<S2SV_ModStart> ) { ; <S2SV_ModEnd> } ; this
8,855
CWE-000 StatusCode FlashStorage_write_unlocked ( uint32_t address , uint8_t * data , uint32_t dataLength ) { uint32_t retCode ; if ( ( uint32_t ) FLASH_START + address < IFLASH1_ADDR ) { return FlashStorage_ERROR_ADDRESS_TOO_LOW ; } if ( ( uint32_t ) FLASH_START + address >= ( IFLASH1_ADDR + IFLASH1_SIZE ) ) { return F...
<S2SV_ModStart> ; } return SUCCESS <S2SV_ModEnd> ; } <S2SV_null>
8,856
CWE-000 int main ( int argc , char * * argv ) { struct image_object image ; singularity_config_init ( joinpath ( SYSCONFDIR , "/singularity/singularity.conf" ) ) ; singularity_priv_init ( ) ; singularity_suid_init ( argv ) ; singularity_registry_init ( ) ; singularity_priv_drop ( ) ; singularity_runtime_autofs ( ) ; if...
<S2SV_ModStart> ) ; } singularity_registry_set ( "DAEMON_START" , NULL ) ; singularity_registry_set ( "DAEMON_JOIN" , NULL ) ;
8,857
CWE-000 int ucvm_cvmsi_model_init ( int id , ucvm_modelconf_t * conf ) { if ( ucvm_cvmsi_init_flag ) { fprintf ( stderr , "Model<S2SV_blank>%s<S2SV_blank>is<S2SV_blank>already<S2SV_blank>initialized\\n" , conf -> label ) ; return ( UCVM_CODE_ERROR ) ; } if ( ( conf -> config == NULL ) || ( strlen ( conf -> config ) == ...
<S2SV_ModStart> ) ) ; ucvm_cvmsi_data_buffer <S2SV_ModEnd> = malloc ( <S2SV_ModStart> ) ) ; ucvm_cvmsi_pnts_buffer <S2SV_ModEnd> = malloc (
8,858
CWE-000 <S2SV_StartBug> int rf_write ( char * buf , int len ) <S2SV_EndBug> { if ( gRfInterface == RF_INTERFACE_SPI ) <S2SV_StartBug> return spi_write ( gRfFd , buf , len ) ; <S2SV_EndBug> <S2SV_StartBug> } <S2SV_EndBug>
<S2SV_ModStart> int rf_write ( void <S2SV_ModEnd> * buf , <S2SV_ModStart> ( gRfFd , ( char * ) <S2SV_ModStart> len ) ; return 0 ;
8,859
CWE-000 static void sigrfft_setup ( void ) { sigrfft_class = class_new ( gensym ( "rfft~" ) , sigrfft_new , 0 , <S2SV_StartBug> sizeof ( t_sigrfft ) , 0 , 0 ) ; <S2SV_EndBug> class_setfreefn ( sigrfft_class , fftclass_cleanup ) ; CLASS_MAINSIGNALIN ( sigrfft_class , t_sigrfft , x_f ) ; class_addmethod ( sigrfft_class ,...
<S2SV_ModStart> 0 , 0 <S2SV_ModEnd> ) ; CLASS_MAINSIGNALIN
8,860
CWE-000 <S2SV_StartBug> static void MOTION_start ( void * data ) <S2SV_EndBug> { if ( ! flag ) { setupWiringPi ( ) ; pinMode ( MOTION_PIN , INPUT ) ; flag = 1 ; } printf ( "Motion<S2SV_blank>sensor<S2SV_blank>is<S2SV_blank>start\\n" ) ; }
<S2SV_ModStart> <S2SV_null> <S2SV_null> <S2SV_null> <S2SV_ModEnd> void MOTION_start (
8,861
CWE-000 static int apply_r_riscv_call_rela ( struct module * me , u32 * location , Elf_Addr v ) { ptrdiff_t offset = ( void * ) v - ( void * ) location ; s32 fill_v = offset ; u32 hi20 , lo12 ; if ( offset != fill_v ) { pr_err ( "%s:<S2SV_blank>target<S2SV_blank>%016llx<S2SV_blank>can<S2SV_blank>not<S2SV_blank>be<S2SV_...
<S2SV_ModStart> -> name , ( long long )
8,862
CWE-000 int pblk_submit_read ( struct pblk * pblk , struct bio * bio ) { struct nvm_tgt_dev * dev = pblk -> dev ; unsigned int nr_secs = pblk_get_secs ( bio ) ; struct nvm_rq * rqd ; unsigned long read_bitmap ; <S2SV_StartBug> unsigned int bio_init_idx ; <S2SV_EndBug> int ret = NVM_IO_ERR ; if ( nr_secs > PBLK_MAX_REQ_...
<S2SV_ModStart> read_bitmap ; unsigned long rail_bitmap ; struct ppa_addr rail_ppa_list [ 64 * ( pblk -> rail . stride_width - 1 ) ] ; unsigned <S2SV_ModStart> , & read_bitmap , rail_ppa_list , & rail_bitmap <S2SV_ModStart> , & read_bitmap , rail_ppa_list , & rail_bitmap
8,863
CWE-000 <S2SV_StartBug> SYSCALL bsm_map ( int pid , int vpno , int source , int npages ) { <S2SV_EndBug> if ( bsm_tab [ source ] . bs_status != BSM_UNMAPPED ) { return ( SYSERR ) ; } if ( bsm_tab [ source ] . bs_status == BSM_UNMAPPED ) { bsm_tab [ source ] . bs_status == BSM_MAPPED ; bsm_tab [ source ] . bs_pid = pid ...
<S2SV_ModStart> npages ) { if ( vpno < 0 || vpno > 4096 ) { return ( SYSERR ) ; }
8,864
CWE-000 static int exec_lua ( lua_State * L ) { int argc = lua_gettop ( L ) ; const char * cmd = luaL_checkstring ( L , 1 ) ; <S2SV_StartBug> pid_t pid = 0 ; <S2SV_EndBug> array_t argv = { . elts = NULL , . len = 0 , . max = 0 } ; array_t envs = { . elts = NULL , . len = 0 , . max = 0 } ; iopipe_t iop ; if ( arr_init (...
<S2SV_ModStart> 1 ) ; const char * pwd = NULL ; <S2SV_ModStart> 4 ) ) { pwd <S2SV_ModEnd> = luaL_checkstring ( <S2SV_ModStart> 4 ) ; <S2SV_ModEnd> } case 3 <S2SV_ModStart> { if ( ( pwd == NULL || chdir ( pwd ) == 0 ) &&
8,865
CWE-000 static int gxosd_main_surface ( struct fb_info * info ) { GxAvRect rect = { 0 , 0 , 0 , 0 } ; unsigned int request_block = 0 , bpp = 1 ; struct ncfb_pri * fbi = info -> par ; if ( gxosd_head_ptr == NULL ) gxosd_head_ptr = dma_alloc_coherent ( fbi -> dev , PAGE_ALIGN ( sizeof ( * gxosd_head_ptr ) ) , & gxosd_hea...
<S2SV_ModStart> -> word3 , 64 <S2SV_ModEnd> , rect .
8,866
CWE-000 static void ready_shared_resources ( struct dc * dc , struct dc_state * context ) { <S2SV_StartBug> if ( dc -> current_state -> stream_count == 0 && <S2SV_EndBug> ! dc -> debug . disable_stutter ) undo_DEGVIDCN10_253_wa ( dc ) ; if ( dc -> current_state -> stream_count == 0 && context -> stream_count != 0 ) dcn...
<S2SV_ModStart> context ) { <S2SV_ModEnd> if ( dc
8,867
CWE-000 static void CitusCopyDestReceiverStartup ( DestReceiver * dest , int operation , TupleDesc inputTupleDescriptor ) { CitusCopyDestReceiver * copyDest = ( CitusCopyDestReceiver * ) dest ; Oid tableId = copyDest -> distributedRelationId ; char * relationName = get_rel_name ( tableId ) ; Oid schemaOid = get_rel_nam...
<S2SV_ModStart> = cacheEntry ; BeginOrContinueCoordinatedTransaction ( ) ; <S2SV_ModStart> replicationModel == REPLICATION_MODEL_2PC || MultiShardCommitProtocol == COMMIT_PROTOCOL_2PC
8,868
CWE-000 ODBC_TEST ( connstring_test ) { char connstr4dsn [ 512 ] ; IS ( SQLRemoveDSNFromIni ( DsnName ) ) ; FAIL_IF ( MADB_DSN_Exists ( DsnName ) , "DSN<S2SV_blank>exsists!" ) ; _snprintf ( connstr4dsn , sizeof ( connstr4dsn ) , "DSN=%s;DESCRIPTION={%s};DRIVER=%s;UID=%s;PWD=%s;SERVER=%s%s;OPTIONS=%u;NO_PROMPT=1" , DsnN...
<S2SV_ModStart> 1 ) ; FAIL_IF ( <S2SV_ModStart> CreateTestDsn ( Dsn ) == FAIL , "Failed<S2SV_blank>to<S2SV_blank>create<S2SV_blank>test<S2SV_blank>DSN" <S2SV_ModStart> ; FAIL_IF ( Dsn -> UserName == NULL , "User<S2SV_blank>Name<S2SV_blank>should<S2SV_blank>not<S2SV_blank>be<S2SV_blank>NULL" ) ; FAIL_IF ( <S2SV_ModStart...
8,869
CWE-000 void set_nodelay ( int fd ) { int optval ; socklen_t optlen ; int err ; optval = 1 ; optlen = sizeof ( optval ) ; <S2SV_StartBug> err = setsockopt ( sfd , IPPROTO_TCP , TCP_NODELAY , ( char * ) & optval , optlen ) ; <S2SV_EndBug> }
<S2SV_ModStart> = setsockopt ( fd <S2SV_ModEnd> , IPPROTO_TCP ,
8,870
CWE-000 int main ( void ) { reproc_type git_status ; int argc = 2 ; const char * argv [ 3 ] = { "git" , "status" , NULL } ; REPROC_ERROR error = REPROC_SUCCESS ; error = reproc_start ( & git_status , argc , argv , NULL ) ; if ( error == REPROC_FILE_NOT_FOUND ) { fprintf ( stderr , "%s" , "git<S2SV_blank>not<S2SV_blank>...
<S2SV_ModStart> 1 ; } <S2SV_ModEnd> if ( error
8,871
CWE-000 static void usage ( void ) { <S2SV_StartBug> fprintf ( stderr , "Usage:<S2SV_blank>kallsyms<S2SV_blank>[--all-symbols]<S2SV_blank>[--symbol-prefix=<prefix<S2SV_blank>char>]<S2SV_blank><<S2SV_blank>in.map<S2SV_blank>><S2SV_blank>out.S\\n" ) ; <S2SV_EndBug> exit ( 1 ) ; }
<S2SV_ModStart> ( stderr , "Usage:<S2SV_blank>kallsyms<S2SV_blank>[--all-symbols]<S2SV_blank>" "[--symbol-prefix=<prefix<S2SV_blank>char>]<S2SV_blank>" "[--page-offset=<CONFIG_PAGE_OFFSET>]<S2SV_blank>" "<<S2SV_blank>in.map<S2SV_blank>><S2SV_blank>out.S\\n" <S2SV_ModEnd> ) ; exit
8,872
CWE-000 void tcp_v4_err ( struct sk_buff * icmp_skb , u32 info ) { const struct iphdr * iph = ( const struct iphdr * ) icmp_skb -> data ; struct tcphdr * th = ( struct tcphdr * ) ( icmp_skb -> data + ( iph -> ihl << 2 ) ) ; struct inet_connection_sock * icsk ; struct tcp_sock * tp ; struct inet_sock * inet ; const int ...
<S2SV_ModStart> case ICMP_REDIRECT : if ( ! sock_owned_by_user ( sk ) )
8,873
CWE-000 <S2SV_StartBug> HOOKDEF ( BOOL , WINAPI , GetVolumeInformationByHandleW , <S2SV_EndBug> <S2SV_StartBug> _In_ HANDLE hFile , <S2SV_EndBug> _Out_opt_ LPWSTR lpVolumeNameBuffer , <S2SV_StartBug> _In_ DWORD nVolumeNameSize , <S2SV_EndBug> _Out_opt_ LPDWORD lpVolumeSerialNumber , _Out_opt_ LPDWORD lpMaximumComponent...
<S2SV_ModStart> <S2SV_null> HOOKDEF ( HRESULT <S2SV_ModEnd> , WINAPI , <S2SV_ModStart> , WINAPI , SHGetFolderPathW , _In_ HWND hwndOwner , _In_ int nFolder <S2SV_ModEnd> , _In_ HANDLE <S2SV_ModStart> , _In_ HANDLE hToken <S2SV_ModEnd> , _In_ DWORD <S2SV_ModStart> , _In_ DWORD dwFlags , _Out_ LPWSTR pszPath ) { HRESULT ...
8,874
CWE-000 void ass_gradSH ( struct fwiSH * fwiSH , struct matSH * matSH , int iter ) { extern int NX , NY , IDX , IDY , INVMAT1 ; extern int GRAD_FORM ; extern int INV_VP_ITER , INV_VS_ITER , INV_RHO_ITER ; <S2SV_StartBug> extern float DT ; <S2SV_EndBug> int i , j ; float muss , lamss ; for ( i = 1 ; i <= NX ; i = i + ID...
<S2SV_ModStart> extern float DT , C_vs , C_rho
8,875
CWE-000 unsigned char P ( ) { struct lineofcode * oldcurrent ; int oldcounter ; char key [ VARNUMCHARS ] ; int idx ; char * writePtr ; unsigned char addressmode ; int arg = 0 ; unsigned char type ; eatspace ( ) ; if ( ! ( * txtPtr ) ) { error ( ERR_SYNTAX ) ; return 1 ; } if ( ( * txtPtr == '&' ) || ( isalphach ( * txt...
<S2SV_ModStart> compile ) { push_operator_stack ( SENTINEL ) ; <S2SV_ModStart> 1 ; } pop_operator_stack ( ) ;
8,876
CWE-000 int kd_tree_nearest ( kd_tree_t * tree , point_t * point ) { if ( tree -> root == NULL ) return - 1 ; kd_tree_node_t * node = tree -> root ; real_t pos [ 3 ] ; <S2SV_StartBug> pos [ 0 ] = point -> x , pos [ 1 ] = point -> y , pos [ 2 ] = point -> z ; <S2SV_EndBug> real_t r2 = square_dist ( pos , node -> pos ) ;...
<S2SV_ModStart> point -> x ; <S2SV_ModEnd> pos [ 1 <S2SV_ModStart> point -> y ; <S2SV_ModEnd> pos [ 2
8,877
CWE-000 static void loadSinglePowerBar ( int i , MugenDefScript * tScript ) { char name [ 1024 ] ; PowerBar * bar = & gData . mPowerBars [ i ] ; Position basePosition ; sprintf ( name , "p%d.pos" , i + 1 ) ; basePosition = getMugenDefVectorOrDefault ( tScript , "Powerbar" , name , makePosition ( 0 , 0 , 0 ) ) ; <S2SV_S...
<S2SV_ModStart> . z = UI_BASE_Z <S2SV_ModEnd> ; int coordP
8,878
CWE-000 static void glade_gtk_cell_renderer_read_attributes ( GladeWidget * widget , GladeXmlNode * node ) { GladeXmlNode * attrs_node ; GladeProperty * attr_prop , * use_attr_prop ; GladeXmlNode * prop ; gchar * name , * column_str , * attr_prop_name , * use_attr_name ; if ( ( attrs_node = glade_xml_search_child ( nod...
<S2SV_ModStart> ( attr_prop , ( gint )
8,879
CWE-000 static int construct_phase_2 ( t_wid_data * wid_d , t_light * light ) { GtkSizeGroup * group ; gboolean para ; t_vec vec ; wid_d -> pos = pt_set ( 3 , 0 ) ; vec = light -> pos ; <S2SV_StartBug> wid_d -> f = & change_light_pos ; <S2SV_EndBug> if ( ! ( add_vector_choose ( wid_d , "position" , vec ) ) ) return ( 0...
<S2SV_ModStart> = & change_light_pos ; wid_d -> min_max = ptdb_set ( - 30000 , 30000 )
8,880
CWE-000 int main ( int argc , const char * * argv ) { signal ( SIGINT , handler_termination ) ; signal ( SIGUSR1 , handler_new_message ) ; signal ( SIGUSR2 , handler_dest_not_found ) ; <S2SV_StartBug> int optionsAllowed [ ] = { 1 , 6 } ; <S2SV_EndBug> int value ; do { char footer [ 30 ] ; sprintf ( footer , "Hai<S2SV_b...
<S2SV_ModStart> { 1 , 7 <S2SV_ModEnd> } ; int <S2SV_ModStart> ( value != 7 <S2SV_ModEnd> ) ; printf
8,881
CWE-000 static s32 wl_init_priv ( struct wl_priv * wl ) { struct wiphy * wiphy = wl_to_wiphy ( wl ) ; struct net_device * ndev = wl_to_prmry_ndev ( wl ) ; s32 err = 0 ; wl -> scan_request = NULL ; wl -> pwr_save = ! ! ( wiphy -> flags & WIPHY_FLAG_PS_ON_BY_DEFAULT ) ; wl -> iscan_on = false ; wl -> escan_on = true ; wl...
<S2SV_ModStart> interrested_state ) ; set_bit ( WL_STATUS_DISCONNECTING , & wl -> interrested_state ) ; <S2SV_ModStart> wl -> netif_change_event ) ; init_waitqueue_head ( & wl -> event_sync_wq
8,882
CWE-000 void set_local_var_semantic ( ast_node * node ) { <S2SV_StartBug> assert ( node -> type == NODE_LOCAL_VAR ) ; <S2SV_EndBug> t_entrada_simbolo * table_entry = malloc ( sizeof ( t_entrada_simbolo ) ) ; table_entry -> classe_entrada = T_ENTRADA_VARIAVEL ; <S2SV_StartBug> node -> semantic_nature = NATUREZA_NULL ; <...
<S2SV_ModStart> NODE_LOCAL_VAR ) ; char * var_nome = node -> child [ 0 ] -> string_literal ; if ( var_nome != NULL ) { t_entrada_simbolo * result ; if ( get_entrada ( & tabela , result , var_nome ) == 0 ) { exit ( ERR_DECLARED ) ; } } <S2SV_ModStart> = T_ENTRADA_VARIAVEL ; table_entry -> chave = var_nome ; t_tipo type ...
8,883
CWE-000 void high_water_mark_evt ( void * queue ) { pthread_mutex_unlock ( & ( ( queue_t * ) queue ) -> mutex ) ; <S2SV_StartBug> dispatch_semaphore_wait ( empty , DISPATCH_TIME_FOREVER ) ; <S2SV_EndBug> pthread_mutex_lock ( & ( ( queue_t * ) queue ) -> mutex ) ; }
<S2SV_ModStart> mutex ) ; # ifdef __APPLE__ <S2SV_ModStart> DISPATCH_TIME_FOREVER ) ; # else sem_wait ( & empty ) ; # endif
8,884
CWE-000 spi_mode libsoc_spi_get_mode ( spi * spi ) { uint8_t mode ; if ( spi == NULL ) { libsoc_spi_debug ( __func__ , NULL , "spi<S2SV_blank>was<S2SV_blank>not<S2SV_blank>valid" ) ; <S2SV_StartBug> return EXIT_FAILURE ; <S2SV_EndBug> } int ret = ioctl ( spi -> fd , SPI_IOC_RD_MODE , & mode ) ; if ( ret == - 1 ) { libs...
<S2SV_ModStart> ) ; return MODE_ERROR <S2SV_ModEnd> ; } int
8,885
CWE-000 static le_result_t GetSwUpdateInternalState ( avcApp_InternalState_t * internalStatePtr ) { size_t size ; le_result_t result ; int internalState ; if ( ! internalStatePtr ) { LE_ERROR ( "Invalid<S2SV_blank>input<S2SV_blank>parameter" ) ; return LE_FAULT ; } size = sizeof ( int ) ; result = ReadFs ( SW_UPDATE_IN...
<S2SV_ModStart> * internalStatePtr = INTERNAL_STATE_INVALID <S2SV_ModEnd> ; return LE_OK
8,886
CWE-000 KeyManagerErrors KeyMan_DecrementRefCount ( Key_t * key ) { <S2SV_StartBug> uint64_t index = key -> key_index ; <S2SV_EndBug> if ( index >= KEY_TABLE_SIZE / sizeof ( KeyEntry ) ) return KeyManagerErrors_InvalidParams ; LockSpinlock ( keyman_lock ) ; if ( ! KeyMan_VerifyKey ( key ) ) { UnlockSpinlock ( keyman_lo...
<S2SV_ModStart> key ) { if ( key == NULL ) return KeyManagerErrors_InvalidParams ; if ( key -> key_index == 0 ) return KeyManagerErrors_InvalidParams ; <S2SV_ModStart> key -> key_index - 1
8,887
CWE-000 void S3_initiate_multipart ( S3BucketContext * bucketContext , const char * key , S3PutProperties * putProperties , S3MultipartInitialHandler * handler , S3RequestContext * requestContext , int timeoutMs , void * callbackData ) { InitialMultipartData * mdata = ( InitialMultipartData * ) malloc ( sizeof ( Initia...
<S2SV_ModStart> , putProperties , InitialMultipartPropertiesCallback <S2SV_ModEnd> , 0 ,
8,888
CWE-000 static str translateLineString ( GEOSGeometry * * outGeometry , const GEOSGeometry * geosGeometry , double dx , double dy , double dz ) { int coordinatesNum = 0 ; const GEOSCoordSequence * gcs_old ; GEOSCoordSeq gcs_new ; unsigned int pointsNum = 0 , i = 0 ; str err ; coordinatesNum = GEOSGeom_getCoordinateDime...
<S2SV_ModStart> , "geom.Translate" , SQLSTATE ( 38000 ) <S2SV_ModEnd> "Geos<S2SV_blank>operation<S2SV_blank>GEOSGeom_getCoordSeq<S2SV_blank>failed" ) ; <S2SV_ModStart> , "geom.Translate" , SQLSTATE ( 38000 ) <S2SV_ModEnd> "Geos<S2SV_blank>operation<S2SV_blank>GEOSCoordSeq_create<S2SV_blank>failed" ) ; <S2SV_ModStart> ,...
8,889
CWE-000 static __u8 * cp_report_fixup ( struct hid_device * hdev , __u8 * rdesc , unsigned int * rsize ) { unsigned long quirks = ( unsigned long ) hid_get_drvdata ( hdev ) ; unsigned int i ; <S2SV_StartBug> if ( ! ( quirks & CP_RDESC_SWAPPED_MIN_MAX ) ) <S2SV_EndBug> return rdesc ; for ( i = 0 ; i < * rsize - 4 ; i ++...
<S2SV_ModStart> & CP_RDESC_SWAPPED_MIN_MAX ) ) return rdesc ; if ( * rsize < 4
8,890
CWE-000 static int nft_ct_set_init ( const struct nft_ctx * ctx , const struct nft_expr * expr , const struct nlattr * const tb [ ] ) { struct nft_ct * priv = nft_expr_priv ( expr ) ; unsigned int len ; int err ; priv -> dir = IP_CT_DIR_MAX ; priv -> key = ntohl ( nla_get_be32 ( tb [ NFTA_CT_KEY ] ) ) ; switch ( priv -...
<S2SV_ModStart> nft_ct_pcpu_template_refcnt ++ ; len = sizeof ( u16 ) ;
8,891
CWE-000 void ftp_manage_get_cmd ( t_list * list , int sock , char client ) { char * cmd ; t_header header ; header . flag |= F_CONTINUE ; while ( list && header . flag & F_CONTINUE ) { cmd = ftp_get_package ( sock , & header ) ; if ( cmd ) { if ( ! ft_strncmp ( cmd , "mkdir<S2SV_blank>" , 6 ) ) { if ( ftp_mkdir ( cmd +...
<S2SV_ModStart> ( client ) ft_putendl <S2SV_ModEnd> ( ft_strjoin ( <S2SV_ModStart> client ) ; else ft_putendl ( cmd ) ;
8,892
CWE-000 static void process_pellets2 ( PacmanGame * game ) { int j = 0 ; PelletHolder * holder = & game -> pelletHolder ; for ( int i = 0 ; i < holder -> totalNum ; i ++ ) { Pellet * p = & holder -> pellets [ i ] ; if ( p -> eaten ) continue ; if ( collides_obj ( & game -> pacman2 . body , p -> x , p -> y ) ) { if ( ! ...
<S2SV_ModStart> pacman . livesLeft >= 0 ) { <S2SV_ModEnd> game -> pacman <S2SV_ModStart> = true ; printf ( "1pacman<S2SV_blank>godmode\\n" ) ; } <S2SV_ModStart> pacman2 . livesLeft >= 0 ) { <S2SV_ModEnd> game -> pacman2 <S2SV_ModStart> = true ; printf ( "2pacman<S2SV_blank>godmode\\n" ) ; } <S2SV_ModStart> pacman . liv...
8,893
CWE-000 static int dslink_parse_opts ( int argc , char * * argv , DSLinkConfig * config ) { int ret = 0 ; json_t * json = NULL ; struct arg_lit * help ; <S2SV_StartBug> struct arg_str * broker , * token , * log ; <S2SV_EndBug> struct arg_end * end ; void * argTable [ ] = { help = arg_lit0 ( "h" , "help" , "Displays<S2S...
<S2SV_ModStart> , * log , * name <S2SV_ModStart> "Sets<S2SV_blank>the<S2SV_blank>logging<S2SV_blank>level" ) , name = arg_str0 ( "n" , "name" , NULL , "Sets<S2SV_blank>the<S2SV_blank>dslink<S2SV_blank>name" ) , <S2SV_ModStart> = arg_end ( 6 <S2SV_ModEnd> ) } ;
8,894
CWE-000 static int read_gb_cart_mbc3 ( struct gb_cart * gb_cart , uint16_t address , uint8_t * data , size_t size ) { switch ( address >> 13 ) { case ( 0x0000 >> 13 ) : case ( 0x2000 >> 13 ) : read_rom ( & gb_cart -> rom , address , data , size ) ; break ; case ( 0x4000 >> 13 ) : case ( 0x6000 >> 13 ) : read_rom ( & gb...
<S2SV_ModStart> ( M64MSG_WARNING , "Unknown<S2SV_blank>device<S2SV_blank>mapped<S2SV_blank>in<S2SV_blank>RAM/RTC<S2SV_blank>space:<S2SV_blank>%04x" <S2SV_ModEnd> , address )
8,895
CWE-000 <S2SV_StartBug> int is_hw_disk_encryption ( const char * encryption_mode ) <S2SV_EndBug> { int ret = 0 ; if ( encryption_mode ) { if ( ! strcmp ( encryption_mode , "aes-xts" ) ) { SLOGD ( "HW<S2SV_blank>based<S2SV_blank>disk<S2SV_blank>encryption<S2SV_blank>is<S2SV_blank>enabled<S2SV_blank>\\n" ) ; ret = 1 ; } ...
<S2SV_ModStart> <S2SV_null> <S2SV_null> <S2SV_null> unsigned
8,896
CWE-000 void loop ( ) { <S2SV_StartBug> if ( get_time ( ) - last_rnb_time > 4850 ) { <S2SV_EndBug> printf ( "Performing<S2SV_blank>RNB<S2SV_blank>Broadcast.\\r\\n" ) ; set_green_led ( 100 ) ; last_green_time = get_time ( ) ; broadcast_rnb_data ( ) ; last_rnb_time = get_time ( ) ; } if ( get_time ( ) - last_normal_msg >...
<S2SV_ModStart> ( ) { <S2SV_ModEnd> } <S2SV_null> <S2SV_null>
8,897
CWE-000 void rump_booter_init ( void * d ) { <S2SV_StartBug> char * script ; <S2SV_EndBug> printc ( "~~~~~<S2SV_blank>vmid:<S2SV_blank>%d<S2SV_blank>~~~~~\\n" , vmid ) ; assert ( vmid == 0 ) ; <S2SV_StartBug> printc ( "\\nRumpKernel<S2SV_blank>Boot<S2SV_blank>Start.\\n" ) ; <S2SV_EndBug> cos2rump_setup ( ) ; PRINTC ( "...
<S2SV_ModStart> char * script = NULL ; PRINTC <S2SV_ModEnd> ( "~~~~~<S2SV_blank>vmid:<S2SV_blank>%d<S2SV_blank>~~~~~\\n" , <S2SV_ModStart> 0 ) ; PRINTC <S2SV_ModEnd> ( "\\nRumpKernel<S2SV_blank>Boot<S2SV_blank>Start.\\n" ) <S2SV_ModStart> ( ) ; PRINTC <S2SV_ModEnd> ( "\\nSetting<S2SV_blank>up<S2SV_blank>arcv<S2SV_blank...
8,898
CWE-000 int rdbLoadRio ( rio * rdb , rdbSaveInfo * rsi ) { uint64_t dbid ; int type , rdbver ; redisDb * db = server . db + 0 ; char buf [ 1024 ] ; long long expiretime , now = mstime ( ) ; rdb -> update_cksum = rdbLoadProgressCallback ; rdb -> max_processing_chunk = server . loading_process_events_interval_bytes ; if ...
<S2SV_ModStart> . lua , auxval ) == NULL <S2SV_ModEnd> ) { rdbExitReportCorruptRDB
8,899
CWE-000 bool dai_amphibious_goto_constrained ( struct ai_type * ait , struct unit * ferry , struct unit * passenger , struct tile * ptile , struct pft_amphibious * parameter ) { bool alive = TRUE ; struct player * pplayer = unit_owner ( passenger ) ; struct pf_map * pfm ; struct pf_path * path ; fc_assert_ret_val ( is_...
<S2SV_ModStart> ) ) { int pass_id = passenger -> id ; <S2SV_ModStart> ferry ) ; alive = unit_is_alive ( pass_id ) ;