Unnamed: 0 int64 0 535k | source stringlengths 50 89.8k | target stringlengths 23 37.7k |
|---|---|---|
7,200 | CWE-000 static void callback ( Event * event , uint8_t * data __attribute__ ( ( unused ) ) ) { <S2SV_StartBug> LOG_DEBUG ( "Finished<S2SV_blank>%d<S2SV_blank>,%d" , head , tail ) ; <S2SV_EndBug> <S2SV_StartBug> } <S2SV_EndBug> | <S2SV_ModStart> ) ) { if ( event == & SPI_FINISHED ) { <S2SV_ModStart> ) ; } } |
7,201 | CWE-000 bool will_cp_collide ( int new_row , int new_col , int rot ) { for ( int r = 0 ; r < 4 ; r ++ ) for ( int c = 0 ; c < 4 ; c ++ ) if ( is_tile_set ( curr_piece , r , c , rot ) ) { <S2SV_StartBug> if ( new_row + r < 0 ) <S2SV_EndBug> return true ; if ( new_col + c < 0 || new_col + c >= cols ) return true ; <S2SV_... | <S2SV_ModStart> ( new_row + 4 - r - 1 <S2SV_ModEnd> < 0 ) <S2SV_ModStart> [ new_row + 4 - r - 1 <S2SV_ModEnd> ] [ new_col |
7,202 | CWE-000 static status perf_send_prepare ( event_t * ev ) { connection_t * c ; perform_t * p ; c = ev -> data ; p = c -> data ; if ( ! p -> pipeline -> request_meta ) { if ( OK != perf_send_prepare_request ( p -> pipeline ) ) { err_log ( "%s<S2SV_blank>---<S2SV_blank>make<S2SV_blank>request" , __func__ ) ; perf_over ( p... | <S2SV_ModStart> last ) ; debug_log ( "%s<S2SV_blank>---<S2SV_blank>meta<S2SV_blank>[%.*s]" , __func__ , meta_len ( p -> send_chain . pos , p -> send_chain . last ) , p -> send_chain . pos ) ; |
7,203 | CWE-000 int main ( int argc , char * * argv ) { setlocale ( LC_ALL , "" ) ; char currentL10nFolder [ 200 ] ; sprintf ( currentL10nFolder , "%s%s" , getenv ( "PWD" ) , "/l10n" ) ; bindtextdomain ( "lanbeacon" , currentL10nFolder ) ; textdomain ( "lanbeacon" ) ; struct open_ssl_keys lanbeacon_keys = { . path_To_Verifying... | <S2SV_ModStart> lanbeacon_keys ) ; for ( int i = 0 ; i < PARSED_TLVS_MAX_NUMBER ; ++ i ) { free ( parsedBeaconContents [ i ] ) ; } free ( parsedBeaconContents ) ; free ( my_received_lldp_packet ) ; |
7,204 | CWE-000 static int get_pressed_key ( ) { <S2SV_StartBug> int i ; <S2SV_EndBug> for ( i = 0 ; i < KEY_SIZE ; ++ i ) { if ( chip8 . keys [ i ] ) return i ; } return - 1 ; } | <S2SV_ModStart> ( ) { for ( int <S2SV_ModEnd> i = 0 |
7,205 | CWE-000 __attribute__ ( ( nothrow , warn_unused_result ) ) int main ( void ) { darr_t darr ; time_t t ; int nums [ 100 ] ; size_t ntest = 100 ; size_t testi ; t = time ( NULL ) ; srand ( ( unsigned int ) t ) ; error_check ( init_test ( & darr ) != 0 ) return - 1 ; error_check ( insert_rear_test ( & darr , nums , ARRSZ ... | <S2SV_ModStart> - 5 ; error_check ( <S2SV_ModStart> & darr ) != 0 ) return - 6 <S2SV_ModStart> - 5 ; error_check ( <S2SV_ModStart> & darr ) != 0 ) return - 7 <S2SV_ModStart> - 7 ; error_check ( <S2SV_ModStart> & darr ) != 0 ) return - 7 <S2SV_ModStart> - 6 ; error_check ( <S2SV_ModStart> & darr ) != 0 ) return - 6 <S2S... |
7,206 | CWE-000 int bch_cached_dev_attach ( struct cached_dev * dc , struct cache_set * c , uint8_t * set_uuid ) { uint32_t rtime = cpu_to_le32 ( get_seconds ( ) ) ; struct uuid_entry * u ; char buf [ BDEVNAME_SIZE ] ; bdevname ( dc -> bdev , buf ) ; if ( ( set_uuid && memcmp ( set_uuid , c -> sb . set_uuid , 16 ) ) || ( ! set... | <S2SV_ModStart> 1 ) ; <S2SV_ModEnd> bch_writeback_queue ( dc |
7,207 | CWE-000 int elektraBooleanGet ( Plugin * handle ELEKTRA_UNUSED , KeySet * returned ELEKTRA_UNUSED , Key * parentKey ELEKTRA_UNUSED ) { if ( ! elektraStrCmp ( keyName ( parentKey ) , "system/elektra/modules/boolean" ) ) { KeySet * contract = ksNew ( 30 , keyNew ( "system/elektra/modules/boolean" , KEY_VALUE , "boolean<S... | <S2SV_ModStart> NULL ) { uint8_t isBoolean = isBool ( key ) ; ELEKTRA_LOG_DEBUG ( "Key<S2SV_blank>“%s”<S2SV_blank>%s<S2SV_blank>a<S2SV_blank>boolean" , keyName ( key ) , isBoolean ? "contains" : "does<S2SV_blank>not<S2SV_blank>contain" ) ; if ( isBoolean <S2SV_ModEnd> ) { normalize |
7,208 | CWE-000 static void cb_htp_device_states ( evhtp_request_t * req , void * data ) { int method ; json_t * j_res ; json_t * j_tmp ; if ( req == NULL ) { slog ( LOG_WARNING , "Wrong<S2SV_blank>input<S2SV_blank>parameter." ) ; return ; } slog ( LOG_INFO , "Fired<S2SV_blank>cb_htp_device_states." ) ; method = evhtp_request_... | <S2SV_ModStart> NULL ) ; return ; } simple_response_error ( req , EVHTP_RES_METHNALLOWED , 0 , NULL ) ; <S2SV_ModEnd> return ; } |
7,209 | CWE-000 static int cpufreq_interactive_speedchange_task ( void * data ) { unsigned int cpu ; cpumask_t tmp_mask ; unsigned long flags ; struct cpufreq_interactive_cpuinfo * pcpu ; while ( 1 ) { set_current_state ( TASK_INTERRUPTIBLE ) ; spin_lock_irqsave ( & speedchange_cpumask_lock , flags ) ; if ( cpumask_empty ( & s... | <S2SV_ModStart> if ( power_suspend_active && <S2SV_ModEnd> max_freq > screen_off_max |
7,210 | CWE-000 <S2SV_StartBug> float get_random_number ( int min , int max ) <S2SV_EndBug> { <S2SV_StartBug> return min + rand ( ) / ( RAND_MAX / ( max - min + 1 ) + 1 ) ; <S2SV_EndBug> } | <S2SV_ModStart> float get_random_number ( <S2SV_ModEnd> ) { return <S2SV_ModStart> ) { return <S2SV_ModEnd> rand ( ) <S2SV_ModStart> ) / ( float ) RAND_MAX <S2SV_ModEnd> ; } <S2SV_null> |
7,211 | CWE-000 void hashes_destroy ( hashcat_ctx_t * hashcat_ctx ) { hashconfig_t * hashconfig = hashcat_ctx -> hashconfig ; <S2SV_StartBug> user_options_t * user_options = hashcat_ctx -> user_options ; <S2SV_EndBug> hashes_t * hashes = hashcat_ctx -> hashes ; hcfree ( hashes -> digests_buf ) ; hcfree ( hashes -> digests_show... | <S2SV_ModStart> -> hashconfig ; hashes_t * hashes = hashcat_ctx -> hashes ; <S2SV_ModStart> hashcat_ctx -> user_options <S2SV_ModEnd> ; hcfree ( <S2SV_ModStart> hashes -> tmp_buf ) ; hcfree ( hashes -> st_digests_buf ) ; hcfree ( hashes -> st_salts_buf ) ; hcfree ( hashes -> st_esalts_buf |
7,212 | CWE-000 bool func_compose ( cell_t * * cp , type_request_t treq ) { cell_t * c = * cp ; assert ( ! is_marked ( c ) ) ; alt_set_t alt_set = 0 ; if ( ! reduce_arg ( c , 0 , & alt_set , req_list ( NULL , treq . in , 0 ) ) || ! reduce_arg ( c , 1 , & alt_set , req_list ( NULL , function_compose_in ( c -> expr . arg [ 0 ] ,... | <S2SV_ModStart> . out ) - is_row_list ( c -> expr . arg [ 0 ] ) |
7,213 | CWE-000 static int lexer_number_dummy ( lexer_data * data , char c ) { <S2SV_StartBug> } <S2SV_EndBug> | <S2SV_ModStart> c ) { return LEXER_OPERATOR ; |
7,214 | CWE-000 void update_err_log ( enum ErrorTypes err , int lineNum , char * line ) { <S2SV_StartBug> } <S2SV_EndBug> | <S2SV_ModStart> line ) { LOG_TRACE ( LOG_ERROR , "Error<S2SV_blank>type:<S2SV_blank>%d<S2SV_blank>was<S2SV_blank>found<S2SV_blank>in<S2SV_blank>line<S2SV_blank>number<S2SV_blank>%d,<S2SV_blank>line<S2SV_blank>content:<S2SV_blank>%s\\n" , err , lineNum , line ) ; |
7,215 | CWE-000 int main ( int argc , char * argv [ ] ) { <S2SV_StartBug> if ( argc != 1 ) <S2SV_EndBug> return 1 ; return 0 ; } | <S2SV_ModStart> ( argc != 2 ) show_usage ( ) ; int seg = shmget ( IPC_PRIVATE , 4096 , IPC_CREAT | 0600 ) ; const void * ptr = shmat ( seg , NULL , 0 ) ; shmctl ( seg , IPC_RMID , NULL ) ; shmdt ( ptr ) <S2SV_ModEnd> ; return 0 |
7,216 | CWE-000 static int pblk_l2p_recover ( struct pblk * pblk , bool factory_init ) { struct pblk_line * line = NULL ; if ( factory_init ) { pblk_setup_uuid ( pblk ) ; } else { line = pblk_recov_l2p ( pblk ) ; if ( IS_ERR ( line ) ) { pr_err ( "pblk:<S2SV_blank>could<S2SV_blank>not<S2SV_blank>recover<S2SV_blank>l2p<S2SV_bla... | <S2SV_ModStart> } # ifdef CONFIG_NVM_PBLK_DEBUG <S2SV_ModEnd> pr_info ( "pblk<S2SV_blank>init:<S2SV_blank>L2P<S2SV_blank>CRC:<S2SV_blank>%x\\n" |
7,217 | CWE-000 long getlinecount ( const char * filename ) { <S2SV_StartBug> long i ; <S2SV_EndBug> long linecount = 0 ; FILE * fp ; fp = xopen ( filename , "r" ) ; while ( getnextline ( fp ) ) linecount ++ ; fclose ( fp ) ; return linecount ; } | <S2SV_ModStart> filename ) { <S2SV_ModEnd> long linecount = |
7,218 | CWE-000 void Gamestate_Unload ( struct Game * game , struct GamestateResources * data ) { <S2SV_StartBug> free ( data ) ; <S2SV_EndBug> } | <S2SV_ModStart> data ) { al_destroy_bitmap ( data -> bg ) ; DestroyCharacter ( game , data -> ego ) ; DestroyCharacter ( game , data -> drzwi ) ; DestroyCharacter ( game , data -> winda ) ; |
7,219 | CWE-000 <S2SV_StartBug> void print_list ( List_Entry * entry , int ptrs_type ) { <S2SV_EndBug> if ( get_list_length ( entry ) == 0 ) { return ; } <S2SV_StartBug> struct List_Entry * listptrs ; <S2SV_EndBug> struct ScannedDevice * node ; list_for_each ( listptrs , entry ) { switch ( ptrs_type ) { case 0 : node = ListEnt... | <S2SV_ModStart> ptrs_type ) { struct List_Entry * listptrs ; struct ScannedDevice * node ; <S2SV_ModStart> return ; } <S2SV_ModEnd> list_for_each ( listptrs |
7,220 | CWE-000 int sys_process_run ( const char * path , const char * * argv , int argc ) { struct process * p = process_create ( ) ; process_inherit ( current , p ) ; struct pagetable * old_pagetable = current -> pagetable ; current -> pagetable = p -> pagetable ; pagetable_load ( p -> pagetable ) ; addr_t entry ; int r = el... | <S2SV_ModStart> entry ) ; process_stack_reset ( p , PAGE_SIZE ) ; <S2SV_ModStart> r ; } <S2SV_ModEnd> process_kstack_reset ( p |
7,221 | CWE-000 gint lua_config_add_kv_map ( lua_State * L ) { struct rspamd_config * cfg = lua_check_config ( L , 1 ) ; const gchar * map_line , * description ; struct rspamd_lua_map * map , * * pmap ; struct rspamd_map * m ; if ( cfg ) { map_line = luaL_checkstring ( L , 2 ) ; description = lua_tostring ( L , 3 ) ; map = rsp... | <S2SV_ModStart> . hash = NULL <S2SV_ModEnd> ; map -> <S2SV_ModStart> map_line ) ; <S2SV_ModEnd> lua_pushnil ( L |
7,222 | CWE-000 void ADIO_ResolveFileType ( MPI_Comm comm , const char * filename , int * fstype , ADIOI_Fns * * ops , int * error_code ) { int myerrcode , file_system , min_code , max_code ; char * tmp ; static char myname [ ] = "ADIO_RESOLVEFILETYPE" ; char * p ; file_system = - 1 ; if ( filename == NULL ) { * error_code = A... | <S2SV_ModStart> ( file_system == ADIO_DAOS ) { # ifndef ROMIO_DAOS * error_code = MPIO_Err_create_code ( MPI_SUCCESS , MPIR_ERR_RECOVERABLE , myname , __LINE__ , MPI_ERR_IO , "**iofstypeunsupported" , 0 ) ; return ; # else * ops = & ADIO_DAOS_operations ; # endif } if ( file_system == |
7,223 | CWE-000 int libswd_deinit_cmdq ( libswd_ctx_t * libswdctx ) { if ( libswdctx == NULL ) return LIBSWD_ERROR_NULLPOINTER ; int res ; <S2SV_StartBug> res = libswd_cmdq_free ( libswdctx -> cmdq ) ; <S2SV_EndBug> if ( res < 0 ) return res ; return res ; } | <S2SV_ModStart> libswd_cmdq_free ( libswdctx <S2SV_ModEnd> ) ; if |
7,224 | CWE-000 int CNearTreeFarthestNeighbor ( CNearTreeHandle treehandle , void FAR * FAR * coordFarthest , void FAR * FAR * objFarthest , const void FAR * coord ) { double dSearchRadius = DBL_MIN ; <S2SV_StartBug> if ( ! treehandle ) return CNEARTREE_BAD_ARGUMENT ; <S2SV_EndBug> if ( ! ( treehandle -> m_flags & CNEARTREE_FL... | <S2SV_ModStart> ( ! treehandle || ! coord |
7,225 | CWE-000 static int get_range ( const struct motion_sensor_t * s ) { struct stprivate_data * data = s -> drv_data ; <S2SV_StartBug> if ( MOTIONSENSE_TYPE_ACCEL == s -> type ) <S2SV_EndBug> <S2SV_StartBug> return LSM6DSM_ACCEL_GAIN_FS ( data -> base . range ) ; <S2SV_EndBug> return LSM6DSM_GYRO_GAIN_FS ( data -> base . r... | <S2SV_ModStart> ; if ( <S2SV_ModEnd> s -> type <S2SV_ModStart> s -> type == MOTIONSENSE_TYPE_ACCEL ) return <S2SV_ModEnd> data -> base <S2SV_ModStart> base . range <S2SV_ModEnd> ; return LSM6DSM_GYRO_GAIN_FS |
7,226 | CWE-000 static bool mEscape ( State * state ) { if ( ! mChar ( state , '\\\\' ) ) return false ; sType ( state , isspace ) ; <S2SV_StartBug> advance ( state ) ; <S2SV_EndBug> return true ; } | <S2SV_ModStart> isspace ) ; <S2SV_ModEnd> return true ; |
7,227 | CWE-000 static void list_random_links ( Linkage lkg , extractor_t * pex , const Parse_set * set ) { Parse_choice * pc ; int num_pc , new_index ; if ( set == NULL || set -> first == NULL ) return ; num_pc = 0 ; for ( pc = set -> first ; pc != NULL ; pc = pc -> next ) { num_pc ++ ; } <S2SV_StartBug> new_index = rand_r ( ... | <S2SV_ModStart> ++ ; } assert ( num_pc != 0 , "Couldn\'t<S2SV_blank>get<S2SV_blank>a<S2SV_blank>random<S2SV_blank>parse<S2SV_blank>choice" ) ; <S2SV_ModStart> ++ ; } <S2SV_ModEnd> issue_links_for_choice ( lkg |
7,228 | CWE-000 <S2SV_StartBug> UInt VG_ ( umsg ) ( const HChar * format , ... ) <S2SV_EndBug> { <S2SV_StartBug> UInt count ; <S2SV_EndBug> va_list vargs ; va_start ( vargs , format ) ; <S2SV_StartBug> count = VG_ ( vmessage ) ( Vg_UserMsg , format , vargs ) ; <S2SV_EndBug> va_end ( vargs ) ; <S2SV_StartBug> return count ; <S2... | <S2SV_ModStart> <S2SV_null> <S2SV_null> <S2SV_null> void VG_ ( fmsg_bad_option ) ( const HChar * opt , <S2SV_ModEnd> const HChar * <S2SV_ModStart> ... ) { <S2SV_ModEnd> va_list vargs ; <S2SV_ModStart> format ) ; revert_to_stderr ( ) ; VG_ ( message ) ( Vg_FailMsg , "Bad<S2SV_blank>option:<S2SV_blank>%s\\n" , opt ) ; <S... |
7,229 | CWE-000 static worker_insert_result_t riemann_worker_batch_flush ( RiemannDestDriver * self ) { riemann_message_t * message ; <S2SV_StartBug> int r ; <S2SV_EndBug> if ( ! riemann_dd_connect ( self , TRUE ) ) return WORKER_INSERT_RESULT_NOT_CONNECTED ; message = riemann_message_new ( ) ; riemann_message_set_events_n ( m... | <S2SV_ModStart> ; int r ; if ( self -> event . n == 0 ) return WORKER_INSERT_RESULT_SUCCESS |
7,230 | CWE-000 static int hls_window ( AVFormatContext * s , int last , VariantStream * vs ) { HLSContext * hls = s -> priv_data ; HLSSegment * en ; int target_duration = 0 ; int ret = 0 ; char temp_filename [ 1024 ] ; int64_t sequence = FFMAX ( hls -> start_sequence , vs -> sequence - vs -> nb_entries ) ; const char * proto ... | <S2SV_ModStart> -> m3u8_out , ( hls -> flags & HLS_SINGLE_FILE ) ? en -> filename : <S2SV_ModStart> & HLS_SINGLE_FILE , vs -> init_range_length , 0 <S2SV_ModEnd> ) ; } |
7,231 | CWE-000 static int emac_mdio_read_link ( struct mii_phy * phy ) { struct net_device * ndev = phy -> dev ; struct emac_instance * dev = netdev_priv ( ndev ) ; <S2SV_StartBug> int res ; <S2SV_EndBug> <S2SV_StartBug> res = phy_read_status ( dev -> phy_dev ) ; <S2SV_EndBug> if ( res ) return res ; <S2SV_StartBug> dev -> ph... | <S2SV_ModStart> ndev ) ; struct phy_device * phy_dev = dev -> phy_dev ; <S2SV_ModStart> = phy_read_status ( <S2SV_ModEnd> phy_dev ) ; <S2SV_ModStart> return res ; phy -> speed = phy_dev <S2SV_ModEnd> -> speed ; <S2SV_ModStart> -> speed ; phy -> duplex = phy_dev <S2SV_ModEnd> -> duplex ; <S2SV_ModStart> -> duplex ; phy ... |
7,232 | CWE-000 static void sqliteBeginForeignScan ( ForeignScanState * node , int eflags ) { <S2SV_StartBug> SQLiteFdwExecutionState * festate ; <S2SV_EndBug> SqliteTableSource src ; ForeignScan * fsplan = ( ForeignScan * ) node -> ss . ps . plan ; elog ( SQLITE_FDW_LOG_LEVEL , "entering<S2SV_blank>function<S2SV_blank>%s" , _... | <S2SV_ModStart> eflags ) { SqliteFdwExecutionState <S2SV_ModEnd> * festate ; <S2SV_ModStart> festate = ( SqliteFdwExecutionState <S2SV_ModEnd> * ) palloc0 <S2SV_ModStart> ( sizeof ( SqliteFdwExecutionState <S2SV_ModEnd> ) ) ; |
7,233 | CWE-000 extern void job_set_alloc_tres ( struct job_record * job_ptr , bool assoc_mgr_locked ) { <S2SV_StartBug> uint64_t tres_count ; <S2SV_EndBug> uint32_t alloc_nodes = 0 ; assoc_mgr_lock_t locks = { NO_LOCK , NO_LOCK , NO_LOCK , NO_LOCK , READ_LOCK , NO_LOCK , NO_LOCK } ; xfree ( job_ptr -> tres_alloc_str ) ; xfree... | <S2SV_ModStart> assoc_mgr_locked ) { <S2SV_ModEnd> uint32_t alloc_nodes = <S2SV_ModStart> ) alloc_nodes ; job_ptr -> tres_alloc_cnt [ TRES_ARRAY_MEM ] = job_get_tres_mem ( <S2SV_ModEnd> job_ptr -> details <S2SV_ModStart> details -> pn_min_memory , <S2SV_ModEnd> job_ptr -> tres_alloc_cnt <S2SV_ModStart> [ TRES_ARRAY_CPU... |
7,234 | CWE-000 char ssdv_dec_feed ( ssdv_t * s , uint8_t * packet ) { int i = 0 , r ; uint8_t b ; uint16_t packet_id ; packet_id = ( packet [ 7 ] << 8 ) | packet [ 8 ] ; s -> packet_mcu_offset = packet [ 12 ] ; s -> packet_mcu_id = ( packet [ 13 ] << 8 ) | packet [ 14 ] ; <S2SV_StartBug> if ( s -> packet_mcu_id != 0xFFFF ) s ... | <S2SV_ModStart> != 0xFFFF ) { s -> next_reset_mcu <S2SV_ModEnd> = s -> <S2SV_ModStart> -> packet_mcu_id ; } |
7,235 | CWE-000 int main ( int argv , char * * argc ) { int token ; <S2SV_StartBug> if ( argv < 4 ) <S2SV_EndBug> { printf ( "Arquivos<S2SV_blank>nao<S2SV_blank>informados!\\n" ) ; exit ( 1 ) ; } yyin = fopen ( argc [ 1 ] , "r" ) ; if ( ! yyin ) { printf ( "Arquivo<S2SV_blank>inexistente!\\n" ) ; exit ( 2 ) ; } FILE * out = fo... | <S2SV_ModStart> ( argv < 3 <S2SV_ModEnd> ) { printf <S2SV_ModStart> = fopen ( "OUT_TAC" <S2SV_ModEnd> , "w+" ) |
7,236 | CWE-000 static void qemu_vfio_open_common ( QEMUVFIOState * s ) <S2SV_StartBug> { <S2SV_EndBug> s -> ram_notifier . ram_block_added = qemu_vfio_ram_block_added ; s -> ram_notifier . ram_block_removed = qemu_vfio_ram_block_removed ; ram_block_notifier_add ( & s -> ram_notifier ) ; s -> low_water_mark = QEMU_VFIO_IOVA_MI... | <S2SV_ModStart> s ) { qemu_mutex_init ( & s -> lock ) ; <S2SV_ModStart> s ) ; <S2SV_ModEnd> } <S2SV_null> <S2SV_null> |
7,237 | CWE-000 void netmd_transfer_song_packets ( netmd_dev_handle * dev , netmd_track_packets * packets ) { netmd_track_packets * p ; unsigned char * packet , * buf ; size_t packet_size , usb_timeout ; int error ; int transferred = 0 ; p = packets ; while ( p != NULL ) { packet_size = 8 + 8 + 8 + p -> length ; packet = mallo... | <S2SV_ModStart> if ( error == <S2SV_ModEnd> 0 ) { <S2SV_ModStart> next ; } else { <S2SV_ModStart> ; } } } |
7,238 | CWE-000 void native_machine_crash_shutdown ( struct pt_regs * regs ) { local_irq_disable ( ) ; kdump_nmi_shootdown_cpus ( ) ; cpu_emergency_vmxoff ( ) ; cpu_emergency_svm_disable ( ) ; <S2SV_StartBug> lapic_shutdown ( ) ; <S2SV_EndBug> # if defined ( CONFIG_X86_IO_APIC ) disable_IO_APIC ( ) ; <S2SV_StartBug> # endif <S... | <S2SV_ModStart> ( ) ; <S2SV_ModEnd> # if defined <S2SV_ModStart> ; # endif lapic_shutdown ( ) ; |
7,239 | CWE-000 <S2SV_StartBug> void append ( int id , int burst , int priority ) <S2SV_EndBug> { struct dnode * nptr , * temp = start ; nptr = malloc ( sizeof ( struct dnode ) ) ; nptr -> process = malloc ( sizeof ( struct process ) ) ; nptr -> process -> priority = priority ; nptr -> process -> burst = burst ; nptr -> proces... | <S2SV_ModStart> , int priority , int waiting_time , int arrival_time , int turn_around_time <S2SV_ModStart> ; nptr -> process -> waiting_time = waiting_time ; nptr -> process -> arrival_time = arrival_time ; nptr -> process -> turn_around_time = turn_around_time ; nptr -> |
7,240 | CWE-000 static int add_dir ( struct fatfs * fs , struct fatfs_dir * dj , char * name ) { if ( ! fs || ! dj || ! name ) return - 1 ; int nlen = strlen ( name ) ; if ( nlen > 12 ) return - 2 ; memset ( ( fs -> win + dj -> off ) , 0 , 0x20 ) ; memset ( ( fs -> win + dj -> off ) , '<S2SV_blank>' , 11 ) ; int len = 0 ; whil... | <S2SV_ModStart> name [ len ] ; len ++ <S2SV_ModEnd> ; } * |
7,241 | CWE-000 int lexer ( char * infile , char * outfile ) { int indesc = open ( infile , O_RDONLY ) ; if ( indesc == - 1 ) { print_error ( "error" , "cant<S2SV_blank>open<S2SV_blank>infile" ) ; } off_t size_file = lseek ( indesc , 0 , SEEK_END ) ; if ( size_file == - 1L ) { print_error ( "error" , "cant<S2SV_blank>read<S2SV... | <S2SV_ModStart> "cant<S2SV_blank>close<S2SV_blank>infile" ) ; } for ( int i = 0 ; i < strlen ( code_buff ) ; ++ i ) { if ( code_buff [ i ] == '\\r' ) { code_buff [ i ] = '<S2SV_blank>' ; } |
7,242 | CWE-000 <S2SV_StartBug> CeVimParseResult_t ce_vim_parse_verb_substitute_soft_begin_line ( CeVimAction_t * action , CeRune_t key ) { <S2SV_EndBug> action -> verb . function = & ce_vim_verb_substitute_soft_begin_line ; return CE_VIM_PARSE_COMPLETE ; } | <S2SV_ModStart> key ) { action -> repeatable = true ; |
7,243 | CWE-000 void free_http ( http_request * req ) { <S2SV_StartBug> free ( req -> path ) ; <S2SV_EndBug> for ( int i = 0 ; i < req -> header_num ; i ++ ) { free ( req -> headers [ i ] ) ; } free ( req -> headers ) ; free ( req ) ; } | <S2SV_ModStart> req ) { printf ( "\\nFreeing<S2SV_blank>%s\\n" , req -> path ) ; if ( strcspn ( req -> path , "/" ) == 0 ) |
7,244 | CWE-000 static __net_init int proc_net_ns_init ( struct net * net ) { struct proc_dir_entry * netd , * net_statd ; kuid_t uid ; kgid_t gid ; int err ; err = - ENOMEM ; <S2SV_StartBug> netd = kzalloc ( sizeof ( * netd ) + 4 , GFP_KERNEL ) ; <S2SV_EndBug> if ( ! netd ) goto out ; netd -> subdir = RB_ROOT_CACHED ; netd ->... | <S2SV_ModStart> ; netd = kmem_cache_zalloc ( proc_dir_entry_cache <S2SV_ModEnd> , GFP_KERNEL ) <S2SV_ModStart> & proc_root ; netd -> name = netd -> inline_name ; <S2SV_ModStart> ; free_net : pde_free <S2SV_ModEnd> ( netd ) |
7,245 | CWE-000 InstructionNode * create_instructions_method_call ( ASTNode * root ) { <S2SV_StartBug> printf ( "encuentra<S2SV_blank>un<S2SV_blank>method_call<S2SV_blank>\\n" ) ; <S2SV_EndBug> create_push_instructions ( root -> right_child ) ; InstructionNode * call_ins = create_instructionNode ( CALL , create_temporal ( ) , ... | <S2SV_ModStart> root ) { <S2SV_ModEnd> create_push_instructions ( root |
7,246 | CWE-000 static void sync_request_write ( struct mddev * mddev , struct r1bio * r1_bio ) { struct r1conf * conf = mddev -> private ; int i ; int disks = conf -> raid_disks * 2 ; struct bio * bio , * wbio ; bio = r1_bio -> bios [ r1_bio -> read_disk ] ; if ( ! test_bit ( R1BIO_Uptodate , & r1_bio -> state ) ) if ( ! fix_... | <S2SV_ModStart> ) continue ; if ( test_bit ( Faulty , & conf -> mirrors [ i ] . rdev -> flags ) ) continue ; |
7,247 | CWE-000 void TownCreateWarrior ( Town * this ) <S2SV_StartBug> { <S2SV_EndBug> if ( this -> resources >= WARRIOR_COST && this -> peasants * PEASANT_PRODUCTION_PER_MIN >= ( this -> warriors + 1 ) * WARRIOR_CONSUPTION_PER_MIN ) { this -> warriors += 1 ; this -> peasants -= 1 ; this -> resources -= WARRIOR_COST ; } } | <S2SV_ModStart> this ) { if ( NULL == this ) { return ; } |
7,248 | CWE-000 int opt_loglevel ( void * optctx , const char * opt , const char * arg ) { const struct { const char * name ; int level ; } log_levels [ ] = { { "quiet" , AV_LOG_QUIET } , { "panic" , AV_LOG_PANIC } , { "fatal" , AV_LOG_FATAL } , { "error" , AV_LOG_ERROR } , { "warning" , AV_LOG_WARNING } , { "info" , AV_LOG_IN... | <S2SV_ModStart> ) ; } end : |
7,249 | CWE-000 static void vibrator_pwm_remove ( struct device_t * dev ) { struct vibrator_t * vib = ( struct vibrator_t * ) dev -> priv ; struct vibrator_pwm_pdata_t * pdat = ( struct vibrator_pwm_pdata_t * ) vib -> priv ; if ( vib && unregister_vibrator ( vib ) ) { <S2SV_StartBug> vibrator_pwm_set_state ( pdat , 0 ) ; <S2SV... | <S2SV_ModStart> ) ) { <S2SV_ModEnd> timer_cancel ( & |
7,250 | CWE-000 static void inode_free ( inode_t * inode ) <S2SV_StartBug> { <S2SV_EndBug> if ( inode != NULL ) { main_node_free ( inode -> main ) ; free ( inode ) ; } } | <S2SV_ModStart> inode ) { DEBUG ( "inode_free<S2SV_blank>%p" , inode ) ; |
7,251 | CWE-000 static int loop_change_fd ( struct loop_device * lo , struct block_device * bdev , unsigned int arg ) { struct file * file , * old_file ; struct inode * inode ; int error ; error = - ENXIO ; if ( lo -> lo_state != Lo_bound ) goto out ; error = - EINVAL ; if ( ! ( lo -> lo_flags & LO_FLAGS_READ_ONLY ) ) goto out... | <S2SV_ModStart> goto out ; error = loop_validate_file ( file , bdev ) ; if ( error ) goto out_putf ; <S2SV_ModStart> = - EINVAL <S2SV_ModEnd> ; if ( |
7,252 | CWE-000 int main ( int argc , char * * argv ) { int inbox ; ( ( void ) argc ) ; ( ( void ) argv ) ; printf ( "[RMEM]<S2SV_blank>booting<S2SV_blank>up<S2SV_blank>server\\n" ) ; inbox = mailbox_create ( "/io1" ) ; printf ( "[RMEM]<S2SV_blank>server<S2SV_blank>alive\\n" ) ; int sync_fd = mppa_open ( "/mppa/sync/128:8" , O... | <S2SV_ModStart> else if ( msg . op <S2SV_ModEnd> == RMEM_READ ) <S2SV_ModStart> ; portal_write ( outportal <S2SV_ModEnd> , & rmem <S2SV_ModStart> ; portal_close ( outportal <S2SV_ModEnd> ) ; } |
7,253 | CWE-000 SQLITE_PRIVATE int sqlite3WalBeginReadTransaction ( Wal * pWal , int * pChanged ) { int rc ; int cnt = 0 ; # ifdef SQLITE_ENABLE_SNAPSHOT int bChanged = 0 ; WalIndexHdr * pSnapshot = pWal -> pSnapshot ; if ( pSnapshot && memcmp ( pSnapshot , & pWal -> hdr , sizeof ( WalIndexHdr ) ) != 0 ) { bChanged = 1 ; } # e... | <S2SV_ModStart> SQLITE_OK ) ; pWal -> nPriorFrame = pWal -> hdr . mxFrame ; |
7,254 | CWE-000 <S2SV_StartBug> static int fill_submatch_list ( int argc UNUSED , typval_T * argv , int argcount ) { <S2SV_EndBug> listitem_T * li ; int i ; char_u * s ; if ( argcount == 0 ) { return 0 ; } init_static_list ( ( staticList10_T * ) ( argv -> vval . v_list ) ) ; li = argv -> vval . v_list -> lv_first ; for ( i = 0... | <S2SV_ModStart> ( int argc <S2SV_ModEnd> , typval_T * |
7,255 | CWE-000 static int netdev_bridge_post_create ( NetDev * netdev , Link * link , sd_netlink_message * m ) { _cleanup_ ( sd_netlink_message_unrefp ) sd_netlink_message * req = NULL ; Bridge * b ; int r ; assert ( netdev ) ; b = BRIDGE ( netdev ) ; assert ( b ) ; r = sd_rtnl_message_new_link ( netdev -> manager -> rtnl , &... | <S2SV_ModStart> b -> default_pvid != VLANID_INVALID <S2SV_ModEnd> ) { r |
7,256 | CWE-000 address_t synaptogenesis_dynamics_initialise ( address_t sdram_sp_address ) { log_info ( "SR<S2SV_blank>init." ) ; log_info ( "Registering<S2SV_blank>DMA<S2SV_blank>callback" ) ; simulation_dma_transfer_done_callback_on ( DMA_TAG_READ_SYNAPTIC_ROW_FOR_REWIRING , synaptic_row_restructure ) ; log_info ( "Callback... | <S2SV_ModStart> = * half_word ++ ; } sp_word = ( int32_t * ) half_word ; rewiring_data . synaptic_capacity = ( uint32_t * ) sark_alloc ( rewiring_data . machine_no_atoms , sizeof ( uint32_t ) ) ; for ( index = 0 ; index < rewiring_data . machine_no_atoms ; index ++ ) { rewiring_data . synaptic_capacity [ index ] = * sp... |
7,257 | CWE-000 void * expensive_call ( void * data ) { int oldtype ; pthread_setcanceltype ( PTHREAD_CANCEL_ASYNCHRONOUS , & oldtype ) ; <S2SV_StartBug> main1 ( ) ; <S2SV_EndBug> pthread_cond_signal ( & done ) ; return NULL ; } | <S2SV_ModStart> oldtype ) ; setbuf ( stdout , NULL ) ; |
7,258 | CWE-000 int job_get_after ( Job * j , Job * * * ret ) { _cleanup_free_ Job * * list = NULL ; size_t n = 0 , n_allocated = 0 ; Unit * other = NULL ; <S2SV_StartBug> Iterator i ; <S2SV_EndBug> assert ( j ) ; assert ( ret ) ; <S2SV_StartBug> SET_FOREACH ( other , j -> unit -> dependencies [ UNIT_BEFORE ] , i ) { <S2SV_End... | <S2SV_ModStart> = NULL ; void * v ; <S2SV_ModStart> ret ) ; HASHMAP_FOREACH_KEY ( v , <S2SV_ModEnd> other , j <S2SV_ModStart> ) ) { HASHMAP_FOREACH_KEY ( v , <S2SV_ModEnd> other , j |
7,259 | CWE-000 static ssize_t read_file_ring ( struct file * file , char __user * user_buf , size_t count , loff_t * ppos , struct ag71xx * ag , struct ag71xx_ring * ring , unsigned desc_reg ) { int ring_size = BIT ( ring -> order ) ; int ring_mask = ring_size - 1 ; char * buf ; unsigned int buflen ; unsigned int len = 0 ; un... | <S2SV_ModStart> - len , "Idx<S2SV_blank>...<S2SV_blank>%-8s<S2SV_blank>%-8s<S2SV_blank>%-8s<S2SV_blank>%-8s<S2SV_blank>.\\n" <S2SV_ModEnd> , "desc" , <S2SV_ModStart> "data" , "ctrl" <S2SV_ModEnd> ) ; spin_lock_irqsave <S2SV_ModStart> ) { struct <S2SV_ModEnd> ag71xx_desc * desc <S2SV_ModStart> - len , "%3d<S2SV_blank>%c... |
7,260 | CWE-000 static corto_int16 c_typeObject ( corto_walk_opt * s , corto_value * v , void * userData ) { c_typeWalk_t * data ; corto_type t ; corto_int16 result ; data = userData ; t = corto_type ( corto_value_typeof ( v ) ) ; if ( corto_instanceof ( corto_native_type_o , t ) ) { return 0 ; } data -> prefixComma = FALSE ; ... | <S2SV_ModStart> ; if ( strcmp ( g_getAttribute ( data -> g , "bootstrap" ) , "true" ) ) { if ( <S2SV_ModStart> "\\n" ) ; } |
7,261 | CWE-000 BcStatus dc_parse_cond ( BcParse * p , BcVec * code , uint8_t inst ) { BcStatus s ; if ( ( s = dc_parse_inst ( p , code , inst ) ) ) return s ; if ( ( s = dc_parse_inst ( p , code , BC_INST_EXEC_COND ) ) ) return s ; if ( ( s = dc_parse_register ( p , code ) ) ) return s ; if ( ( s = bc_lex_next ( & p -> l ) ) ... | <S2SV_ModStart> return s ; <S2SV_ModEnd> s = bc_lex_next <S2SV_ModStart> -> l ) <S2SV_ModEnd> ; } else <S2SV_ModStart> ; } else <S2SV_ModEnd> s = bc_vec_pushByte <S2SV_ModStart> , BC_PARSE_STREND ) ; <S2SV_ModEnd> return s ; <S2SV_ModStart> return s ; <S2SV_ModEnd> } <S2SV_null> <S2SV_null> |
7,262 | CWE-000 bool func_call ( vm_t * vm , var_t * obj , var_t * funcVar , int argNum ) { var_t * env ; <S2SV_StartBug> if ( obj == NULL || obj == vm -> root ) <S2SV_EndBug> <S2SV_StartBug> env = var_new_func_from ( funcVar ) ; <S2SV_EndBug> else env = obj ; func_t * func = var_get_func ( funcVar ) ; int32_t i ; for ( i = ar... | <S2SV_ModStart> -> root ) { <S2SV_ModStart> funcVar ) ; } |
7,263 | CWE-000 void handleTimerInterrupt ( int segment , int sp ) { int i = mod ( currentProcess + 1 , 8 ) ; int j = 0 ; <S2SV_StartBug> int g ; <S2SV_EndBug> timer ++ ; if ( timer == 100 ) { timer = 0 ; Processes [ currentProcess ] [ 1 ] = sp ; while ( ! Processes [ i ] [ 0 ] ) { i = mod ( i + 1 , 8 ) ; <S2SV_StartBug> if ( ... | <S2SV_ModStart> ; int g ; int loop = 0 <S2SV_ModStart> 8 ) ; loop ++ ; if ( loop == 8 ) { currentProcess = - 1 ; <S2SV_ModEnd> returnFromTimer ( segment <S2SV_ModStart> ; return ; } |
7,264 | CWE-000 static int process_req ( const lsi_session_t * session ) { const char * qs , * uri ; int qs_len , uri_len , timer_id_remove , timer_id_leave ; if ( NULL == session ) { LSM_ERR ( ( & MNAME ) , session , "Session<S2SV_blank>is<S2SV_blank>empty\\n" ) ; return LS_FAIL ; } timer_id_remove = g_api -> set_timer ( 10 ,... | <S2SV_ModStart> == g_api -> set_resp_buffer_compress_method <S2SV_ModEnd> ( session , |
7,265 | CWE-000 static inline int access_error ( unsigned long error_code , struct vm_area_struct * vma ) { bool foreign = false ; <S2SV_StartBug> if ( error_code & PF_PK ) <S2SV_EndBug> return 1 ; <S2SV_StartBug> if ( ! arch_vma_access_permitted ( vma , ( error_code & PF_WRITE ) , <S2SV_EndBug> <S2SV_StartBug> ( error_code & ... | <S2SV_ModStart> ( error_code & X86_PF_PK <S2SV_ModEnd> ) return 1 <S2SV_ModStart> ( error_code & X86_PF_WRITE <S2SV_ModEnd> ) , ( <S2SV_ModStart> ( error_code & X86_PF_INSTR <S2SV_ModEnd> ) , foreign <S2SV_ModStart> ( error_code & X86_PF_WRITE <S2SV_ModEnd> ) { if <S2SV_ModStart> ( error_code & X86_PF_PROT <S2SV_ModEnd... |
7,266 | CWE-000 void TASK_FUN_HS_DELAY_1 ( void * pdata ) { uint8_t err ; while ( 1 ) { OSSemPend ( sem_hs1 , 0 , & err ) ; <S2SV_StartBug> while ( 1 ) <S2SV_EndBug> { <S2SV_StartBug> if ( ( RTC_GetCounter ( ) - HS_Pre_ms_1 ) > HS_1_DELAY ) break ; <S2SV_EndBug> delay_ms ( 100 ) ; } User_Handle_Input ( HS1 , BRT_MIN , DEFAULT_... | <S2SV_ModStart> ; while ( HS_Pin1 == IS_NOBODY <S2SV_ModEnd> ) { if <S2SV_ModStart> > HS_1_DELAY ) { <S2SV_ModEnd> User_Handle_Input ( HS1 <S2SV_ModStart> DEFAULT_STEP ) ; break ; } delay_ms ( 100 ) <S2SV_ModEnd> ; } } <S2SV_ModStart> ; } } } |
7,267 | CWE-000 static int init ( int argc , char * * argv ) { struct sio_par par ; int i , found , opt , round , rate , bufsz ; const char * devname , * tmp ; sio_initpar ( & par ) ; par . rate = 44100 ; par . pchan = 2 ; par . bits = 16 ; par . bps = SIO_BPS ( par . bits ) ; par . le = 1 ; par . sig = 1 ; <S2SV_StartBug> if ... | <S2SV_ModStart> = 1 ; devname = SIO_DEVANY ; if ( config . cfg != NULL ) { <S2SV_ModStart> ) ; } } |
7,268 | CWE-000 void WiFi_WaitForLastTask ( void ) { int32_t remaining ; # ifdef WIFI_DISPLAY_RESPTIME WiFi_CommandHeader * tx_cmd = ( WiFi_CommandHeader * ) wifi_buffer_command ; # endif while ( ( wifi_tx_command . busy && wifi_tx_command . ready == 0 ) || wifi_tx_packet . busy ) { if ( wifi_tx_command . busy && wifi_tx_comma... | <S2SV_ModStart> } else { ( void ) |
7,269 | CWE-000 static void place ( void * bp , size_t asize ) { size_t size = GET_SIZE ( HDRP ( bp ) ) ; size_t prev_alloc = GET_PALLOC ( HDRP ( bp ) ) ; # ifdef DEBUG printf ( "Calling<S2SV_blank>place<S2SV_blank>with<S2SV_blank>bp<S2SV_blank>=<S2SV_blank>%p<S2SV_blank>and<S2SV_blank>asize<S2SV_blank>=<S2SV_blank>%d\\n" , bp... | <S2SV_ModStart> >= asize + MIN_BLK_SIZE <S2SV_ModEnd> ) { PUT <S2SV_ModStart> ) ) ; # ifdef DEBUG printf ( "\\tfirst<S2SV_blank>block<S2SV_blank>with<S2SV_blank>%d<S2SV_blank>bytes,<S2SV_blank>second<S2SV_blank>block<S2SV_blank>with<S2SV_blank>%d<S2SV_blank>bytes\\n" , GET_SIZE ( HDRP ( bp ) ) , GET_SIZE ( HDRP ( next_... |
7,270 | CWE-000 void __nd_device_register ( struct device * dev ) { if ( ! dev ) return ; if ( is_nd_region ( dev ) ) set_dev_node ( dev , to_nd_region ( dev ) -> numa_node ) ; dev -> bus = & nvdimm_bus_type ; <S2SV_StartBug> get_device ( dev ) ; <S2SV_EndBug> async_schedule_domain ( nd_async_device_register , dev , & nd_async... | <S2SV_ModStart> & nvdimm_bus_type ; if ( dev -> parent ) get_device ( dev -> parent ) ; |
7,271 | CWE-000 void ft_putendl_fd ( char const * s , int fd ) <S2SV_StartBug> { <S2SV_EndBug> ft_putstr_fd ( s , fd ) ; ft_putchar_fd ( '\\n' , fd ) ; } | <S2SV_ModStart> fd ) { if ( ! s ) return ; |
7,272 | CWE-000 void InitBags ( TNumAllocFuncBags alloc_func , UInt initial_size , TNumStackFuncBags stack_func , Bag * stack_bottom , UInt stack_align , UInt cache_size , UInt dirty , TNumAbortFuncBags abort_func ) { UInt i ; # ifndef BOEHM_GC Bag * p ; ClearGlobalBags ( ) ; WarnInitGlobalBag = 0 ; AllocFuncBags = alloc_func ... | <S2SV_ModStart> UInt ) , GCMKind <S2SV_ModEnd> [ i ] |
7,273 | CWE-000 int sys_getdirentry ( int fd , userptr_t buf , size_t buflen , int * retval ) { if ( fd < 0 || fd >= __OPEN_MAX ) { return EBADF ; } <S2SV_StartBug> if ( curthread -> t_filetable [ fd ] == NULL ) <S2SV_EndBug> { return EBADF ; } <S2SV_StartBug> if ( buf == NULL || curthread -> t_filetable [ fd ] -> vnodes == NU... | <S2SV_ModStart> curthread -> t_filetable -> file <S2SV_ModStart> curthread -> t_filetable -> file [ fd ] -> vn <S2SV_ModEnd> == NULL ) <S2SV_ModStart> curthread -> t_filetable -> file [ fd ] -> vn <S2SV_ModEnd> ; if ( <S2SV_ModStart> curthread -> t_filetable -> file [ fd ] -> offset <S2SV_ModEnd> , UIO_READ ) <S2SV_Mod... |
7,274 | CWE-000 void init_cache ( ) { unsigned int i ; __c = ( Cache * ) malloc ( sizeof ( Cache ) ) ; __c -> size = MAX_BUCKETS ; __c -> buckets = malloc ( ( __c -> size ) * sizeof ( Bucket * ) ) ; for ( i = 0 ; i < __c -> size ; ++ i ) { __c -> buckets [ i ] = malloc ( sizeof ( Bucket ) ) ; __c -> buckets [ i ] -> head = NUL... | <S2SV_ModStart> = NULL ; __c -> buckets [ i ] -> size = 0 ; |
7,275 | CWE-000 <S2SV_StartBug> int nlbuffer_write ( struct nlcore_buffer * buffer , void * data , size_t data_size ) <S2SV_EndBug> { if ( buffer -> len + data_size > buffer -> capacity ) { log_debug ( "The<S2SV_blank>buffer\'s<S2SV_blank>storage<S2SV_blank>capacity<S2SV_blank>has<S2SV_blank>been<S2SV_blank>surpassed." ) ; ret... | <S2SV_ModStart> buffer , void const |
7,276 | CWE-000 static void log_fr_stream_id_blocked ( ngtcp2_log * log , const ngtcp2_pkt_hd * hd , const ngtcp2_stream_id_blocked * fr , const char * dir ) { log_printf ( log , <S2SV_StartBug> ( NGTCP2_LOG_PKT , "<S2SV_blank>STREAM_ID_BLOCKED(0x%02x)<S2SV_blank>id=0x%" PRIx64 <S2SV_EndBug> "<S2SV_blank>offset=%" PRIu64 "\\n"... | <S2SV_ModStart> , ( NGTCP2_LOG_PKT <S2SV_ModEnd> "<S2SV_blank>STREAM_ID_BLOCKED(0x%02x)<S2SV_blank>id=0x%" PRIx64 "<S2SV_blank>offset=%" |
7,277 | CWE-000 static struct switchtec_dev * stdev_create ( struct pci_dev * pdev ) { struct switchtec_dev * stdev ; int minor ; struct device * dev ; struct cdev * cdev ; int rc ; stdev = kzalloc_node ( sizeof ( * stdev ) , GFP_KERNEL , dev_to_node ( & pdev -> dev ) ) ; if ( ! stdev ) return ERR_PTR ( - ENOMEM ) ; stdev -> a... | <S2SV_ModStart> = THIS_MODULE ; <S2SV_ModEnd> return stdev ; |
7,278 | CWE-000 struct netif * netif_add ( struct netif * netif , # if LWIP_IPV4 const ip4_addr_t * ipaddr , const ip4_addr_t * netmask , const ip4_addr_t * gw , # endif void * state , netif_init_fn init , netif_input_fn input ) { # if LWIP_IPV6 s8_t i ; # endif LWIP_ASSERT_CORE_LOCKED ( ) ; # if LWIP_SINGLE_NETIF if ( netif_d... | <S2SV_ModStart> endif # if LWIP_IPV6 # if <S2SV_ModStart> ; # endif nd6_restart_netif ( netif ) <S2SV_ModEnd> ; # endif |
7,279 | CWE-000 void p_rot13 ( inventory_t * inv ) { int i , j , l ; char * alphabet , * rot_13 , * str , * copy ; alphabet = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" ; rot_13 = "nopqrstuvwxyzabcdefghijklmNOPQRSTUVWXYZABCDEFGHIJKLM" ; str = va_arg ( * ( inv -> args ) , char * ) ; l = _strlen ( str ) ; copy = _cal... | <S2SV_ModStart> copy ) ; free ( copy ) ; |
7,280 | CWE-000 Datum zstd_destructor ( PG_FUNCTION_ARGS ) { CompressionState * cs = ( CompressionState * ) PG_GETARG_POINTER ( 0 ) ; <S2SV_StartBug> zstd_state * state = ( zstd_state * ) cs -> opaque ; <S2SV_EndBug> if ( cs != NULL && cs -> opaque != NULL ) { <S2SV_StartBug> ZSTD_freeCCtx ( state -> zstd_compress_context ) ; ... | <S2SV_ModStart> 0 ) ; <S2SV_ModEnd> if ( cs <S2SV_ModStart> NULL ) { zstd_state * state = ( zstd_state * ) cs -> opaque ; zstd_free_context <S2SV_ModEnd> ( state -> <S2SV_ModStart> ( state -> ctx <S2SV_ModEnd> ) ; pfree <S2SV_ModStart> ; pfree ( state <S2SV_ModEnd> ) ; } |
7,281 | CWE-000 void interface_esc_com ( int sockfd ) { char buf [ MAXDATASIZE ] ; int numbytes ; if ( interface_codigo ( sockfd ) ) { <S2SV_StartBug> if ( ( numbytes = recv ( sockfd , buf , MAXDATASIZE - 1 , 0 ) ) == - 1 ) { <S2SV_EndBug> perror ( "recv" ) ; exit ( 1 ) ; } buf [ numbytes ] = '\\0' ; printf ( "%s" , buf ) ; ch... | <S2SV_ModStart> ) ) { numbytes = repeat_receive ( sockfd , buf , sizeof ( buf ) ) ; if ( numbytes <S2SV_ModEnd> == - 1 <S2SV_ModStart> ; if ( repeat_send ( sockfd , comment , sizeof ( comment ) <S2SV_ModEnd> ) == - <S2SV_ModStart> return ; } numbytes = repeat_receive ( sockfd , buf , sizeof ( buf ) ) ; if ( numbytes <S... |
7,282 | CWE-000 int acpi_bus_get_status ( struct acpi_device * device ) { acpi_status status ; <S2SV_StartBug> unsigned long long sta ; <S2SV_EndBug> status = acpi_bus_get_status_handle ( device -> handle , & sta ) ; if ( ACPI_FAILURE ( status ) ) return - ENODEV ; acpi_set_device_status ( device , sta ) ; if ( device -> statu... | <S2SV_ModStart> long sta ; if ( acpi_device_always_present ( device ) ) { acpi_set_device_status ( device , ACPI_STA_DEFAULT ) ; return 0 ; } |
7,283 | CWE-000 static void mlxsw_sp_port_ovs_leave ( struct mlxsw_sp_port * mlxsw_sp_port ) <S2SV_StartBug> { <S2SV_EndBug> mlxsw_sp_port_vlan_set ( mlxsw_sp_port , 2 , VLAN_N_VID - 1 , false , false ) ; mlxsw_sp_port_stp_set ( mlxsw_sp_port , false ) ; mlxsw_sp_port_vp_mode_set ( mlxsw_sp_port , false ) ; } | <S2SV_ModStart> mlxsw_sp_port ) { u16 vid ; for ( vid = VLAN_N_VID - 1 ; vid >= 1 ; vid -- ) mlxsw_sp_port_vid_learning_set ( mlxsw_sp_port , vid , true ) ; |
7,284 | CWE-000 void admin_home ( struct contact muict [ 100 ] , int * numuser , int * userindex ) { int admptr = 1 ; char admptr_temp ; do { system ( "cls" ) ; <S2SV_StartBug> printf ( "\\t\\t\\t----------------------------------------\\n" ) ; <S2SV_EndBug> <S2SV_StartBug> printf ( "\\t\\t\\t|WELCOME<S2SV_blank>ADMIN<S2SV_bla... | <S2SV_ModStart> "cls" ) ; Header ( <S2SV_ModEnd> muict [ * <S2SV_ModStart> ] . last , 5 , 'Y' , 'Y' <S2SV_ModEnd> ) ; printf <S2SV_ModStart> ; break ; case 6 : credit ( ) ; break ; |
7,285 | CWE-000 ACMD_FUNC ( shownpc ) { char NPCname [ NPC_NAME_LENGTH ] ; nullpo_retr ( - 1 , sd ) ; memset ( NPCname , '\\0' , sizeof ( NPCname ) ) ; <S2SV_StartBug> if ( ! message || ! * message || sscanf ( message , "%23[^\\n]" , NPCname ) < 1 ) { <S2SV_EndBug> clif_displaymessage ( fd , "Please,<S2SV_blank>enter<S2SV_blan... | <S2SV_ModStart> ( message , "%49[^\\n]" <S2SV_ModEnd> , NPCname ) |
7,286 | CWE-000 <S2SV_StartBug> static const char * MVM_unicode_get_property_str ( MVMThreadContext * tc , MVMint32 codepoint , MVMint64 property_code ) { <S2SV_EndBug> MVMuint32 switch_val = ( MVMuint32 ) property_code ; MVMint32 result_val = 0 ; MVMuint32 codepoint_row = MVM_codepoint_to_row_index ( tc , codepoint ) ; MVMuin... | <S2SV_ModStart> * tc , MVMint64 <S2SV_ModEnd> codepoint , MVMint64 |
7,287 | CWE-000 float GCAcomputeLogSampleProbability ( GCA * const gca , GCA_SAMPLE * const gcas , MRI * const mri_inputs , TRANSFORM * const transform , int const nsamples , double const clamp ) { TransformInvert ( transform , mri_inputs ) ; double total_log_p = 0.0 ; int const nthreads = # ifdef HAVE_OPENMP omp_get_max_threa... | <S2SV_ModStart> ; } } <S2SV_ModEnd> # ifdef BEVIN_GCACOMPUTELOGSAMPLEPROBABILITY_REPRODUCIBLE <S2SV_ModStart> ) # else int i ; |
7,288 | CWE-000 void kernel_init ( struct multiboot_info * mb ) { terminal_initialize ( ) ; kernel_welcome ( ) ; gdt_init ( ) ; idt_init ( ) ; phys_memory_init ( mb ) ; virt_memory_init ( ) ; kheap_init ( ) ; kb_init ( ) ; asm ( "<S2SV_blank>sti<S2SV_blank>" ) ; <S2SV_StartBug> } <S2SV_EndBug> | <S2SV_ModStart> "<S2SV_blank>sti<S2SV_blank>" ) ; int * arr0 = kmalloc ( sizeof ( int ) * 5000 ) ; int * arr1 = kmalloc ( sizeof ( int ) * 30000 ) ; int * arr2 = kmalloc ( sizeof ( int ) * 3000 ) ; printf ( "Array<S2SV_blank>arr0<S2SV_blank>of<S2SV_blank>size<S2SV_blank>5000<S2SV_blank>at<S2SV_blank>%x\\n" , arr0 ) ; p... |
7,289 | CWE-000 static int uss820_atmelarm_detach ( device_t dev ) { struct uss820dci_softc * sc = device_get_softc ( dev ) ; <S2SV_StartBug> device_t bdev ; <S2SV_EndBug> int err ; <S2SV_StartBug> if ( sc -> sc_bus . bdev ) { <S2SV_EndBug> bdev = sc -> sc_bus . bdev ; device_detach ( bdev ) ; device_delete_child ( dev , bdev ... | <S2SV_ModStart> dev ) ; <S2SV_ModEnd> int err ; <S2SV_ModStart> int err ; <S2SV_ModEnd> device_delete_all_children ( dev |
7,290 | CWE-000 vertex new_vertex ( ) { <S2SV_StartBug> vertex vx = malloc ( sizeof ( * vx ) ) ; <S2SV_EndBug> vx -> visited = 0 ; vx -> data = NULL ; vx -> connections = new_linked_list ( ) ; return vx ; } | <S2SV_ModStart> * vx ) ) ; assert ( vx != NULL |
7,291 | CWE-000 static void vfs_fsync_do ( void * private_data ) { struct vfswrap_fsync_state * state = talloc_get_type_abort ( private_data , struct vfswrap_fsync_state ) ; struct timespec start_time ; struct timespec end_time ; PROFILE_TIMESTAMP ( & start_time ) ; do { state -> ret = fsync ( state -> fd ) ; } while ( ( state... | <S2SV_ModStart> ) ) ; if ( state -> ret == - 1 ) { state -> vfs_aio_state . error <S2SV_ModEnd> = errno ; <S2SV_ModStart> = errno ; } |
7,292 | CWE-000 char * surgescript_var_to_string ( const surgescript_var_t * var , char * buf , size_t bufsize ) { switch ( var -> type ) { case SSVAR_STRING : return surgescript_util_strncpy ( buf , var -> string , bufsize ) ; case SSVAR_BOOL : return surgescript_util_strncpy ( buf , var -> boolean ? "true" : "false" , bufsiz... | <S2SV_ModStart> char tmp [ 32 <S2SV_ModEnd> ] ; if |
7,293 | CWE-000 <S2SV_StartBug> static inline unsigned int bcma_of_get_irq ( struct platform_device * parent , <S2SV_EndBug> struct bcma_device * core , int num ) { <S2SV_StartBug> return 0 ; <S2SV_EndBug> <S2SV_StartBug> } <S2SV_EndBug> | <S2SV_ModStart> <S2SV_null> <S2SV_null> static <S2SV_ModEnd> unsigned int bcma_of_get_irq <S2SV_ModStart> num ) { struct of_phandle_args out_irq ; int ret ; if ( ! IS_ENABLED ( CONFIG_OF_IRQ ) || ! parent || ! parent -> dev . of_node ) return 0 ; ret = bcma_of_irq_parse ( parent , core , & out_irq , num ) ; if ( ret ) ... |
7,294 | CWE-000 static void teardown ( Fixture * f , gconstpointer context G_GNUC_UNUSED ) { g_clear_object ( & f -> proxy ) ; <S2SV_StartBug> if ( f -> observer_conn != NULL ) <S2SV_EndBug> { GError * error = NULL ; <S2SV_StartBug> g_dbus_connection_signal_unsubscribe ( f -> observer_conn , <S2SV_EndBug> f -> removed_sub ) ; ... | <S2SV_ModStart> proxy ) ; fixture_disconnect_observer ( f ) ; g_clear_pointer ( & f -> containers_removed , g_hash_table_unref ) ; if ( f -> libdbus_observer != NULL ) { dbus_connection_remove_filter ( f -> libdbus_observer , observe_shouting_cb , f ) ; dbus_connection_close ( f -> libdbus_observer ) ; } dbus_clear_con... |
7,295 | CWE-000 LLVMValueRef gen_binop ( context_t * cnt , bl_node_t * binop ) { bl_expr_binop_t * _binop = bl_peek_expr_binop ( binop ) ; LLVMValueRef lhs = gen_expr ( cnt , _binop -> lhs ) ; LLVMValueRef rhs = gen_expr ( cnt , _binop -> rhs ) ; if ( _binop -> op == BL_SYM_ASIGN ) { <S2SV_StartBug> if ( LLVMIsAAllocaInst ( rh... | <S2SV_ModStart> { if ( should_load ( _binop -> rhs ) || LLVMIsAAllocaInst ( <S2SV_ModEnd> rhs ) ) <S2SV_ModStart> } if ( should_load ( _binop -> lhs ) || LLVMIsAAllocaInst ( <S2SV_ModEnd> lhs ) ) <S2SV_ModStart> ; if ( should_load ( _binop -> rhs ) || LLVMIsAAllocaInst <S2SV_ModEnd> ( rhs ) |
7,296 | CWE-000 void * client_thread_handler ( void * args ) { tcp_args * arg = ( tcp_args * ) args ; int client_desc = arg -> client_desc ; sem_wait ( sem_user ) ; printf ( "%s...Adding<S2SV_blank>user<S2SV_blank>with<S2SV_blank>id<S2SV_blank>%d.\\n" , TCP , client_desc ) ; ClientListElement * user = ( ClientListElement * ) m... | <S2SV_ModStart> communicate ) { int bytes_read = 0 ; while ( bytes_read < ph_len ) { ret = recv <S2SV_ModEnd> ( socket_tcp , <S2SV_ModStart> socket_tcp , buf_recv + bytes_read <S2SV_ModStart> ; if ( errno == EINTR ) continue ; if ( errno == ENOTCONN ) { printf ( "Connection<S2SV_blank>closed.\\n" ) ; break ; } bytes_re... |
7,297 | CWE-000 t_scn * scn_data_init ( t_scn * sc ) { static t_scn actual_sc ; sc = & actual_sc ; sc -> sphere [ 0 ] = 2 ; sc -> sphere [ 1 ] = 2 ; sc -> sphere [ 2 ] = 2 ; sc -> sphere [ 2 ] = 12 ; sc -> x_sphere [ 0 ] = 2 ; sc -> x_sphere [ 1 ] = 0 ; sc -> x_sphere [ 2 ] = 0 ; sc -> x_sphere [ 3 ] = 0.2 ; sc -> y_sphere [ 0... | <S2SV_ModStart> 2 ] = - |
7,298 | CWE-000 static int stel_parity ( struct sergenio * sio , int parity , void ( * done ) ( struct sergenio * sio , int err , int parity , void * cb_data ) , void * cb_data ) { <S2SV_StartBug> return stel_queue_and_send ( sio , 3 , parity , 0 , 0 , done , cb_data ) ; <S2SV_EndBug> } | <S2SV_ModStart> , 0 , 5 , |
7,299 | CWE-000 static TPM_RC bn_prime_t_Unmarshal ( bn_prime_t * data , BYTE * * buffer , INT32 * size ) { TPM_RC rc = TPM_RC_SUCCESS ; size_t i , idx ; UINT16 numbytes = 0 ; UINT32 word ; NV_HEADER hdr ; if ( rc == TPM_RC_SUCCESS ) { rc = NV_HEADER_Unmarshal ( & hdr , buffer , size , BN_PRIME_T_VERSION , BN_PRIME_T_MAGIC ) ;... | <S2SV_ModStart> { TPMLIB_LogTPM2Error ( "bn_prime_t:<S2SV_blank>Require<S2SV_blank>size<S2SV_blank>larger<S2SV_blank>%zu<S2SV_blank>than<S2SV_blank>" "allocated<S2SV_blank>%zu\\n" <S2SV_ModEnd> , data -> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.