Unnamed: 0
int64
0
535k
source
stringlengths
50
89.8k
target
stringlengths
23
37.7k
7,500
CWE-000 <S2SV_StartBug> int is_built ( char * * cmd , char * str ) <S2SV_EndBug> { if ( ft_strequ ( * cmd , "exit" ) || ft_strequ ( * cmd , "bye" ) ) return ( - 1 ) ; else if ( ft_strequ ( * cmd , "echo" ) ) <S2SV_StartBug> return ( ft_echo ( cmd + 1 , str + 5 ) ) ; <S2SV_EndBug> else if ( ft_strequ ( * cmd , "cd" ) ) ...
<S2SV_ModStart> * * cmd <S2SV_ModEnd> ) { if <S2SV_ModStart> cmd + 1 <S2SV_ModEnd> ) ) ;
7,501
CWE-000 <S2SV_StartBug> int ft_strncmp ( const char * s1 , const char * s2 , size_t n ) { <S2SV_EndBug> size_t len = MIN ( n , MIN ( ft_strlen ( s1 ) , ft_strlen ( s2 ) ) ) ; return ft_memcmp ( ( const void * ) s1 , ( const void * ) s2 , len ) ; }
<S2SV_ModStart> n ) { if ( s1 == s2 ) return 0 ;
7,502
CWE-000 <S2SV_StartBug> MVMint64 MVM_io_setsockopt ( MVMThreadContext * tc , MVMObject * oshandle , MVMint32 option , MVMint64 value ) { <S2SV_EndBug> MVMOSHandle * handle = verify_is_handle ( tc , oshandle , "setsockopt" ) ; if ( handle -> body . ops -> options ) { MVMint64 result ; MVMROOT ( tc , handle , { uv_mutex_...
<S2SV_ModStart> <S2SV_null> <S2SV_null> <S2SV_null> void <S2SV_ModEnd> MVM_io_setsockopt ( MVMThreadContext <S2SV_ModStart> handle ) ; <S2SV_ModEnd> handle -> body <S2SV_ModStart> , handle , <S2SV_ModEnd> option , value <S2SV_ModStart> } ) ; <S2SV_ModEnd> } else {
7,503
CWE-000 static void emit_one_texture ( struct v3d_context * v3d , struct v3d_texture_stateobj * stage_tex , int i ) { struct v3d_job * job = v3d -> job ; struct pipe_sampler_state * psampler = stage_tex -> samplers [ i ] ; struct v3d_sampler_state * sampler = v3d_sampler_state ( psampler ) ; struct pipe_sampler_view * ...
<S2SV_ModStart> = PIPE_TEX_MIPFILTER_NEAREST ; min_img_filter <S2SV_ModEnd> = PIPE_TEX_FILTER_NEAREST ;
7,504
CWE-000 gboolean <S2SV_StartBug> fu_dell_supported ( GError * * error ) <S2SV_EndBug> { guint8 dell_supported = 0 ; struct smbios_struct * de_table ; <S2SV_StartBug> g_autofree gchar * dmidecode_path = NULL ; <S2SV_EndBug> g_autofree gchar * dmidecode_version = NULL ; g_autofree gchar * oem_string = NULL ; gboolean ret...
<S2SV_ModStart> gboolean fu_dell_supported ( void <S2SV_ModEnd> ) { guint8 <S2SV_ModStart> * de_table ; <S2SV_ModEnd> de_table = smbios_get_next_struct_by_handle <S2SV_ModStart> return FALSE ; <S2SV_ModEnd> return TRUE ;
7,505
CWE-000 struct mCc_assembly_line * mCc_assembly_condition ( struct mCc_tac_list * tac , struct mCc_assembly_line * current ) { jump_cond = tac -> binary_op_type ; if ( tac -> next -> type == MCC_TAC_ELEMENT_TYPE_CONDITIONAL_JUMP ) { if ( is_float ( tac -> rhs ) ) { NEW_DOUBLE_LINE set_float_register ( "temp_float_zero_...
<S2SV_ModStart> ) ) ; free_register ( tac -> lhs ) ; free_register ( tac -> rhs ) ;
7,506
CWE-000 static pid_t sub_command ( int fd_in , int fd_out , char * argv_store [ MAX_ARGC ] , int is_first , pid_t pgid_idx ) { if ( ( strcmp ( argv_store [ 0 ] , "export" ) == 0 ) || ( strcmp ( argv_store [ 0 ] , "unset" ) == 0 ) ) { do_environVar ( argv_store [ 0 ] , argv_store [ 1 ] ) ; return MAGIC_BUILDIN ; } pid_t...
<S2SV_ModStart> pid ; } globfree ( & glob_result ) ;
7,507
CWE-000 Grammar * createGrammar ( ) { <S2SV_StartBug> Grammar * g = Grammar_new ( ) ; <S2SV_EndBug> Grammar_setVerbose ( g ) ; SYMBOL ( WS , TOKEN ( "\\\\s+" ) ) ; SYMBOL ( NUMBER , TOKEN ( "\\\\d+(\\\\.\\\\d+)?" ) ) ; SYMBOL ( VARIABLE , TOKEN ( "\\\\w+" ) ) ; SYMBOL ( OPERATOR , TOKEN ( "[\\\\+\\\\-\\\\*/]" ) ) ; SYM...
<S2SV_ModStart> = Grammar_new ( <S2SV_ModEnd> ) ; SYMBOL
7,508
CWE-000 static int _set_object ( struct UtilTimeoutChain * chain , void * obj , struct timespec * time ) { int callStat = 0 ; struct ObjItem objValue ; struct TimeItem timeValue ; RbKey_t timeKey = _rbkey_from_timespec ( time ) ; RbKey_t objKey = _rbKey_from_objptr ( obj ) ; <S2SV_StartBug> _TM_DB ( "Add<S2SV_blank>tim...
<S2SV_ModStart> ; _TM_DB ( "Add<S2SV_blank>time<S2SV_blank>%04ld.%09ld,<S2SV_blank>object<S2SV_blank>%s" <S2SV_ModEnd> , ( long <S2SV_ModStart> ) -> description <S2SV_ModEnd> ) ; callStat
7,509
CWE-000 uint32_t load_rom ( uint8_t * filename , uint32_t base_addr , uint8_t flags ) { UINT bytes_read ; DWORD filesize ; UINT count = 0 ; UINT is_menu = filename == ( uint8_t * ) "/sd2snes/menu.bin" ; tick_t ticksstart , ticks_total = 0 ; ticksstart = getticks ( ) ; printf ( "%s\\n" , filename ) ; file_open ( filenam...
<S2SV_ModStart> . fpga_conf && ( <S2SV_ModStart> ( filename ) || romprops . mapper_id == 3 || romprops . has_dspx ) <S2SV_ModStart> . fpga_conf = FPGA_ORIG <S2SV_ModEnd> ; if (
7,510
CWE-000 void * waiting_worker ( void * arg_ ) { struct waiting_worker_args * arg = ( struct waiting_worker_args * ) arg_ ; __int128_t val = 1 ; val = val << arg -> bit ; pthread_mutex_lock ( & ( arg -> m -> lock ) ) ; * ( arg -> count ) += 1 ; if ( * ( arg -> count ) == NUM_THREADS ) { <S2SV_StartBug> printf ( "Waking<...
<S2SV_ModStart> NUM_THREADS ) { sleep ( 1 <S2SV_ModEnd> ) ; pthread_cond_broadcast <S2SV_ModStart> NUM_THREADS ) { <S2SV_ModEnd> pthread_cond_wait ( & <S2SV_ModStart> ++ ) { shared_128_int <S2SV_ModEnd> = val ; <S2SV_ModStart> = val ; * ( arg -> started ) = true ; } } <S2SV_ModEnd> <S2SV_null> <S2SV_null> <S2SV_null>
7,511
CWE-000 SR_PRIV int std_session_send_df_end ( const struct sr_dev_inst * sdi ) { <S2SV_StartBug> const char * prefix = sdi -> driver -> name ; <S2SV_EndBug> int ret ; struct sr_datafeed_packet packet ; if ( ! sdi ) return SR_ERR_ARG ; sr_dbg ( "%s:<S2SV_blank>Sending<S2SV_blank>SR_DF_END<S2SV_blank>packet." , prefix ) ...
<S2SV_ModStart> * prefix = ( sdi -> driver ) ? <S2SV_ModStart> driver -> name : "unknown"
7,512
CWE-000 int main ( ) { int array [ 10 ] = { 5 , 2 , 7 , 3 , 1 , 7 , 2 , 9 , 3 , 0 } ; <S2SV_StartBug> int * parray [ 10 ] ; <S2SV_EndBug> for ( int i = 0 ; i < 10 ; ++ i ) { parray [ i ] = array + i ; } <S2SV_StartBug> quick_sort ( ( void * * ) parray , 10 , cmpInt ) ; <S2SV_EndBug> for ( int j = 0 ; j < 10 ; ++ j ) { ...
<S2SV_ModStart> 0 } ; void <S2SV_ModEnd> * parray [ <S2SV_ModStart> } quick_sort ( <S2SV_ModEnd> parray , 10 <S2SV_ModStart> 10 , cmpInt ) ; printf ( "\\n" <S2SV_ModStart> "%d,<S2SV_blank>" , * ( int * ) <S2SV_ModStart> ) ; } printf ( "\\n" ) ;
7,513
CWE-000 static Binding * get_binding ( i3_event_state_mask_t state_filtered , bool is_release , uint16_t input_code , input_type_t input_type ) { <S2SV_StartBug> Binding * bind ; <S2SV_EndBug> if ( ! is_release ) { TAILQ_FOREACH ( bind , bindings , bindings ) { if ( bind -> input_type != input_type ) continue ; if ( bi...
<S2SV_ModStart> Binding * bind ; Binding * result = NULL <S2SV_ModStart> bind ) ; if ( result ) { break ; } continue <S2SV_ModEnd> ; } if <S2SV_ModStart> && is_release ) ) { continue ; } if ( is_release ) { return bind ; } else if ( ! result ) { result = bind ; } } return result <S2SV_ModEnd> ; } <S2SV_null>
7,514
CWE-000 static void hw_stop ( struct entropy_nrf5_dev_data * dev_data ) { unsigned int key ; __ASSERT_NO_MSG ( dev_data ) ; key = irq_lock ( ) ; <S2SV_StartBug> __ASSERT_NO_MSG ( ( dev_data -> hw_users - 1 ) != ~ 0u ) ; <S2SV_EndBug> if ( -- dev_data -> hw_users == 0 ) nrf_rng_task_trigger ( NRF_RNG_TASK_STOP ) ; irq_u...
<S2SV_ModStart> ( ) ; if <S2SV_ModEnd> ( dev_data -> <S2SV_ModStart> dev_data -> hw_users != 0 ) <S2SV_ModEnd> if ( --
7,515
CWE-000 static void yyaddDeferredAction ( yyGLRStack * yystackp , size_t yyk , yyGLRState * yystate , yyGLRState * yyrhs , yyRuleNum yyrule ) { yySemanticOption * yynewOption = <S2SV_StartBug> & yynewGLRStackItem ( yystackp , yyfalse ) -> yyoption ; <S2SV_EndBug> yynewOption -> yystate = yyrhs ; yynewOption -> yyrule =...
<S2SV_ModStart> ) -> yyoption ; YYASSERT ( ! yynewOption -> yyisState )
7,516
CWE-000 bool dlg_win_init_ansi ( void ) { <S2SV_StartBug> # ifdef DLG_OS_WIN <S2SV_EndBug> static volatile LONG status = 0 ; LONG res = InterlockedCompareExchange ( & status , 1 , 0 ) ; if ( res == 0 ) { InterlockedExchange ( & status , 3 + init_ansi_console ( ) ) ; } while ( status == 1 ) ; return ( status == 4 ) ; # ...
<S2SV_ModStart> ) { # if defined ( DLG_OS_WIN ) && defined ( DLG_WIN_CONSOLE ) <S2SV_ModEnd> static volatile LONG
7,517
CWE-000 int dmu_object_next ( objset_t * os , uint64_t * objectp , boolean_t hole , uint64_t txg ) { uint64_t offset ; uint64_t start_obj ; struct dsl_dataset * ds = os -> os_dsl_dataset ; int error ; if ( * objectp == 0 ) { start_obj = 1 ; } else if ( ds && ds -> ds_feature_inuse [ SPA_FEATURE_LARGE_DNODE ] ) { uint64...
<S2SV_ModStart> uint64_t last_obj = * objectp | ( DNODES_PER_BLOCK - 1 <S2SV_ModEnd> ) ; dmu_object_info_t <S2SV_ModStart> while ( i <= <S2SV_ModEnd> last_obj ) {
7,518
CWE-000 void table_liste_liberer ( Cellule_t * liste ) { Cellule_t * tmp ; while ( liste ) { tmp = liste ; liste = liste -> next ; <S2SV_StartBug> free ( tmp ) ; <S2SV_EndBug> } }
<S2SV_ModStart> free ( tmp -> key ) ; free ( tmp -> content ) ; free ( tmp
7,519
CWE-000 static ssize_t nfs_idmap_get_key ( const char * name , size_t namelen , const char * type , void * data , size_t data_size , struct idmap * idmap ) { const struct cred * saved_cred ; struct key * rkey ; const struct user_key_payload * payload ; ssize_t ret ; saved_cred = override_creds ( id_resolver_cache ) ; r...
<S2SV_ModStart> ; payload = user_key_payload_rcu <S2SV_ModEnd> ( rkey )
7,520
CWE-000 static void json_object_extarr_delete ( struct json_object * jso ) { assert ( jso && json_object_is_type ( jso , json_type_extarr ) ) ; array_list_free ( jso -> o . c_extarr . dims ) ; <S2SV_StartBug> json_object_generic_delete ( jso ) ; <S2SV_EndBug> }
<S2SV_ModStart> dims ) ; if ( ! ( jso -> o . c_extarr . flags & JSON_C_EXTARR_DONT_FREE ) ) free ( ( void * ) jso -> o . c_extarr . data ) ;
7,521
CWE-000 void fs_rtp_session_new_recv_pad ( FsRtpSession * session , GstPad * new_pad , guint32 ssrc , guint pt ) { FsRtpSubStream * substream = NULL ; FsRtpStream * stream = NULL ; GError * error = NULL ; gint no_rtcp_timeout ; if ( fs_rtp_session_has_disposed_enter ( session , NULL ) ) return ; FS_RTP_SESSION_LOCK ( s...
<S2SV_ModStart> , substream , session ,
7,522
CWE-000 void vcons_attach ( struct device * parent , struct device * self , void * aux ) { struct vcons_softc * sc = ( struct vcons_softc * ) self ; <S2SV_StartBug> struct vbus_attach_args * va = aux ; <S2SV_EndBug> uint64_t sysino ; int vcons_is_input , vcons_is_output ; int node , maj ; sc -> sc_si = softintr_establi...
<S2SV_ModStart> va = aux <S2SV_ModEnd> ; int vcons_is_input <S2SV_ModStart> ] , & sc -> sc_sysino <S2SV_ModEnd> ) ) printf <S2SV_ModStart> ( ":<S2SV_blank>ivec<S2SV_blank>0x%llx" , sc -> sc_sysino ) ; sc -> sc_bustag = va -> va_bustag <S2SV_ModEnd> ; sc -> <S2SV_ModStart> = bus_intr_establish ( sc -> sc_bustag , sc -> ...
7,523
CWE-000 void load_handle_select ( ) <S2SV_StartBug> { <S2SV_EndBug> game . current_screen = HANDLE_SELECT ; clear_sprites ( ) ; DrawMap2 ( 3 , 4 , map_green_tank ) ; DrawMap2 ( 20 , 4 , map_blue_tank ) ; Print ( 9 , 1 , ( char * ) strHandlesTitle ) ; Print ( 6 , 5 , ( char * ) strPlayer1 ) ; Print ( 23 , 5 , ( char * )...
<S2SV_ModStart> ( ) { player1 . netMessage . ps . select_state = SELECTING ; player2 . netMessage . ps . select_state = SELECTING ; player1 . netMessage . ps . handle_id = 0 ; player2 . netMessage . ps . handle_id = 0 ; player1 . netMessage . ps . char_index = 0 ; player2 . netMessage . ps . char_index = 0 ;
7,524
CWE-000 int main ( int argc , char * * argv ) { uint in_wnum , in_rnum , in_max , in_time ; int error_code , i , end_size ; pthread_t * writers , * readers , garbage_collector ; if ( 5 != argc ) { printf ( "Incorrect<S2SV_blank>usage.\\nUse<S2SV_blank>%s<S2SV_blank><WNUM><S2SV_blank><RNUM><S2SV_blank><MAX><S2SV_blank><...
<S2SV_ModStart> ) ) ; return - 1 ; <S2SV_ModStart> ) ) ; return - 1 ; <S2SV_ModStart> end_size ) ; free ( readers ) ; free ( writers ) ; intlist_destroy ( global_intlist ) ; free ( global_intlist ) ; pthread_cond_destroy ( too_many_elements_cond ) ; free ( too_many_elements_cond ) ; return 0 ; <S2SV_ModEnd> } <S2SV_nul...
7,525
CWE-000 static void ndpi_tg_destroy ( const struct xt_tgdtor_param * par ) { <S2SV_StartBug> nf_ct_l3proto_module_put ( par -> family ) ; <S2SV_EndBug> }
<S2SV_ModStart> par ) { # if LINUX_VERSION_CODE >= KERNEL_VERSION ( 4 , 11 , 0 ) nf_ct_netns_put ( par -> net , par -> family ) ; # endif
7,526
CWE-000 static int h264_slice_header_init ( H264Context * h ) { const SPS * sps = h -> ps . sps ; int i , ret ; ff_set_sar ( h -> avctx , sps -> sar ) ; av_pix_fmt_get_chroma_sub_sample ( h -> avctx -> pix_fmt , & h -> chroma_x_shift , & h -> chroma_y_shift ) ; if ( sps -> timing_info_present_flag ) { int64_t den = sps...
<S2SV_ModStart> = 1 ; h -> got_first_iframe = 0 ;
7,527
CWE-000 static int print_insn_shift ( bfd_vma memaddr , struct disassemble_info * info , uint8_t byte ) { size_t i ; uint8_t sb ; int status = read_memory ( memaddr , & sb , 1 , info ) ; if ( status < 0 ) return status ; enum SB_DIR dir = ( sb & 0x40 ) ? SB_LEFT : SB_RIGHT ; enum SB_TYPE type = ( sb & 0x80 ) ? SB_ARITH...
<S2SV_ModStart> case SB_REG_REG_N : { uint8_t xb ; read_memory ( memaddr + 1 , & xb , 1 , info ) ; if ( ( xb & 0xF0 ) == 0x70 <S2SV_ModEnd> ) { operand_separator <S2SV_ModStart> 0x10 ) { <S2SV_ModEnd> int shift = <S2SV_ModStart> ) ; } }
7,528
CWE-000 double gcamLogLikelihoodEnergy ( const GCA_MORPH * gcam , MRI * mri ) { # if GCAM_LLENERGY_OUTPUT const unsigned int gcamLLEoutputFreq = 10 ; static unsigned int nCalls = 0 ; if ( ( nCalls % gcamLLEoutputFreq ) == 0 ) { char fname [ STRLEN ] ; snprintf ( fname , STRLEN - 1 , "gcamLLEinput%04u" , nCalls / gcamLL...
<S2SV_ModStart> define ROMP_FOR_LEVEL ROMP_level_assume_reproducible # ifdef ROMP_SUPPORT_ENABLED const int romp_for_line = __LINE__ ; # endif
7,529
CWE-000 static int src_params ( struct comp_dev * dev ) { struct sof_ipc_stream_params * params = & dev -> params ; struct sof_ipc_comp_src * src = COMP_GET_IPC ( dev , sof_ipc_comp_src ) ; struct sof_ipc_comp_config * config = COMP_GET_CONFIG ( dev ) ; struct comp_data * cd = comp_get_drvdata ( dev ) ; struct comp_buf...
<S2SV_ModStart> int q ; int d ; <S2SV_ModStart> + 1 ; d = dev -> frames - cd -> param . blk_out ; cd -> prefill = ( d > 0 ) ? d * dev -> frame_bytes : 0 ;
7,530
CWE-000 char * M_GetSaveGameDir ( char * iwadname ) { char * savegamedir ; char * topdir ; <S2SV_StartBug> if ( ! strcmp ( configdir , "" ) ) <S2SV_EndBug> { savegamedir = M_StringDuplicate ( "" ) ; } else { topdir = M_StringJoin ( configdir , "savegames" , NULL ) ; M_MakeDirectory ( topdir ) ; savegamedir = M_StringJo...
<S2SV_ModStart> * topdir ; int p ; p = M_CheckParmWithArgs ( "-savedir" , 1 ) ; if ( p ) { savegamedir = myargv [ p + 1 ] ; if ( ! M_FileExists ( savegamedir ) ) { M_MakeDirectory ( savegamedir ) ; } savegamedir = M_StringJoin ( savegamedir , DIR_SEPARATOR_S , NULL ) ; printf ( "Save<S2SV_blank>directory<S2SV_blank>cha...
7,531
CWE-000 int ccreate ( void * ( * start ) ( void * ) , void * arg , int prio ) { if ( scheduler == NULL ) { printf ( "scheduler<S2SV_blank>nulo:<S2SV_blank>bora<S2SV_blank>inicializa<S2SV_blank>essa<S2SV_blank>merda\\n" ) ; csched_init ( ) ; } printf ( "\\n[<S2SV_blank>CCREATE<S2SV_blank>]\\n" ) ; TCB_t * newThread = ma...
<S2SV_ModStart> -> count ; newThread -> lastTime = 0 ;
7,532
CWE-000 static M_CODE lm_worker_perform ( worker_t * w ) { M_CODE r ; int x ; if ( w -> ue_h -> current -> bind == 0 ) { LM_WARNING ( w -> m , "lm_worker_perform<S2SV_blank>called<S2SV_blank>on<S2SV_blank>unbound<S2SV_blank>URL" ) ; w -> ue_h -> current -> bind = 1 ; } filetype_t * ft = w -> m -> filetypes [ w -> ue_h ...
<S2SV_ModStart> ; # endif if ( FT_FLAG_ISSET ( ft , FT_FLAG_IGNORE_DEPTH ) != FT_FLAG_ISSET ( <S2SV_ModEnd> w -> m <S2SV_ModStart> - 1 ] , FT_FLAG_IGNORE_DEPTH ) ) { LM_ERROR ( w -> m , "switching<S2SV_blank>between<S2SV_blank>filetypes<S2SV_blank>with<S2SV_blank>mismatch<S2SV_blank>ignore_depth<S2SV_blank>setting<S2SV...
7,533
CWE-000 int main ( void ) { Param param ; SK sk ; PK pk ; mpz_t chiper1 ; mpz_t chiper2 ; mpz_t chiper3 ; mpz_t chiper4 ; mpz_t chiper5 ; mpz_t chiper6 ; mpz_inits ( chiper1 , chiper2 , chiper3 , chiper4 , chiper5 , chiper6 , NULL ) ; <S2SV_StartBug> param_init ( & param , 5 ) ; <S2SV_EndBug> keyGen ( & sk , & pk , & p...
<S2SV_ModStart> & param , 4 <S2SV_ModEnd> ) ; keyGen
7,534
CWE-000 static void alloc_processus ( t_arena * arena , uint16_t actor , size_t offset ) { t_process process ; process . pc = offset ; process . carry = FALSE ; process . alive = FALSE ; process . wait = 0 ; <S2SV_StartBug> ft_memcpy ( & process . reg [ 0 ] , & ( arena -> players [ actor ] . id ) , <S2SV_EndBug> sizeof...
<S2SV_ModStart> = 0 ; <S2SV_ModEnd> process . reg <S2SV_ModStart> [ 0 ] = <S2SV_ModEnd> arena -> players <S2SV_ModStart> ] . id <S2SV_ModEnd> ; process . <S2SV_ModStart> ft_dlstappend ( & <S2SV_ModEnd> arena -> procs <S2SV_ModStart> arena -> procs <S2SV_ModEnd> , ft_dlstnew (
7,535
CWE-000 void add_while_label ( Symbol * cond , Analysis * stat ) { <S2SV_StartBug> set_control_label ( & label ) ; <S2SV_EndBug> <S2SV_StartBug> assembly_push_front ( cond -> assembly , append_char ( get_beg_label ( & label ) , ':' ) ) ; <S2SV_EndBug> <S2SV_StartBug> pop_and_je ( cond -> assembly , cond -> res_info , g...
<S2SV_ModStart> { set_control_label ( <S2SV_ModEnd> ) ; assembly_push_front <S2SV_ModStart> ( get_beg_label ( <S2SV_ModEnd> ) , ':' <S2SV_ModStart> , get_end_label ( <S2SV_ModEnd> ) ) ; <S2SV_ModStart> , get_beg_label ( <S2SV_ModEnd> ) ) ; <S2SV_ModStart> ( get_end_label ( <S2SV_ModEnd> ) , ':'
7,536
CWE-000 int read_humidity ( phydat_t * res ) { res -> unit = UNIT_PERCENT ; res -> scale = 0 ; gpio_set ( GPIO_POWER ) ; xtimer_usleep ( ADC_SLEEP1 ) ; int measurement = adc_sample ( ADC_USED_LINE , RES ) ; gpio_clear ( GPIO_POWER ) ; if ( PFLANZEN_DEBUG ) { <S2SV_StartBug> printf ( "adc<S2SV_blank>sample<S2SV_blank>va...
<S2SV_ModStart> { printf ( "adc<S2SV_blank>sample<S2SV_blank>value:<S2SV_blank>%d\\n" <S2SV_ModEnd> , measurement )
7,537
CWE-000 static void chip_revision_info ( struct drm_device * dev ) { struct via_device * dev_priv = dev -> dev_private ; struct pci_bus * bus = NULL ; u16 device_id , subsystem_vendor_id , subsystem_device_id ; u8 tmp ; int pci_bus ; u8 pci_device , pci_function ; int ret ; DRM_DEBUG_KMS ( "Entered<S2SV_blank>%s.\\n" ,...
<S2SV_ModStart> false ; } if ( ( subsystem_vendor_id == 0x144d ) && ( subsystem_device_id == 0xc04e ) ) { dev_priv -> is_samsung_nc20 = true ; } else { dev_priv -> is_samsung_nc20 = false ; }
7,538
CWE-000 void edi_debugpanel_add ( Evas_Object * parent ) { Evas_Object * table , * entry , * bt_term , * bt_int , * bt_start , * bt_quit ; Evas_Object * separator ; Evas_Object * ico_start , * ico_quit , * ico_int , * ico_term ; Elm_Code_Widget * widget ; Elm_Code * code ; Ecore_Timer * timer ; code = elm_code_create (...
<S2SV_ModStart> ( bt_int , "Start/Stop<S2SV_blank>Process" <S2SV_ModEnd> ) ; elm_object_disabled_set
7,539
CWE-000 void vListDelNode ( vList * list , vListNode * node ) { if ( node -> pre ) { node -> pre -> next = node -> next ; } else { list -> head = node -> next ; } if ( node -> next ) { node -> next -> pre = node -> pre ; } else { list -> tail = node -> pre ; } if ( list -> free ) { ( * list -> free ) ( node -> val ) ; ...
<S2SV_ModStart> ) ; } list -> len -- ;
7,540
CWE-000 static int msm_bus_dbg_fill_fab_buffer ( const char * fabname , void * cdata , int nmasters , int nslaves , int ntslaves ) { int i ; char * buf = NULL ; struct msm_bus_fab_list * fablist = NULL ; struct timespec ts ; int found = 0 ; mutex_lock ( & msm_bus_dbg_fablist_lock ) ; list_for_each_entry ( fablist , & f...
<S2SV_ModStart> ! found ) { mutex_unlock ( & msm_bus_dbg_fablist_lock ) ; <S2SV_ModStart> - ENOENT ; }
7,541
CWE-000 static void gst_festival_init ( GstFestival * festival ) { festival -> sinkpad = gst_pad_new_from_static_template ( & sink_template_factory , "sink" ) ; gst_pad_set_chain_function ( festival -> sinkpad , gst_festival_chain ) ; gst_element_add_pad ( GST_ELEMENT ( festival ) , festival -> sinkpad ) ; festival -> ...
<S2SV_ModStart> "src" ) ; gst_pad_set_query_function ( festival -> srcpad , gst_festival_src_query ) ;
7,542
CWE-000 void mag_set_req_data ( request_rec * req , struct mag_config * cfg , struct mag_conn * mc ) { apr_table_set ( mc -> env , "GSS_NAME" , mc -> gss_name ) ; apr_table_set ( mc -> env , "GSS_SESSION_EXPIRATION" , apr_psprintf ( req -> pool , "%ld" , ( long ) mc -> expiration ) ) ; req -> ap_auth_type = ( char * ) ...
<S2SV_ModStart> ccname ) { mag_set_ccname_envvar <S2SV_ModEnd> ( req ,
7,543
CWE-000 long int __strtol ( const char * nptr , char * * endptr , int base ) { int negative = 0 ; while ( is_space ( * nptr ) ) { nptr ++ ; } switch ( * nptr ) { case '-' : negative = 1 ; case '+' : nptr ++ ; } switch ( base ) { case 0 : if ( nptr [ 0 ] == '0' ) { if ( ( nptr [ 1 ] == 'x' || nptr [ 1 ] == 'X' ) ) { bas...
<S2SV_ModStart> 10 ; } break ; <S2SV_ModStart> 2 ; } break ;
7,544
CWE-000 static void __vr_interface_make_req ( vr_interface_req * req , struct vr_interface * intf , unsigned int core ) { uint8_t proto ; uint16_t port ; unsigned int cpu , i , j , k = 0 ; struct vr_interface_settings settings ; req -> vifr_core = core ; req -> vifr_type = intf -> vif_type ; req -> vifr_flags = intf ->...
<S2SV_ModStart> 0 ; } req -> vifr_in_mirror_md_size = 0 ; <S2SV_ModStart> vif_in_mirror_md_len ; } req -> vifr_out_mirror_md_size = 0 ;
7,545
CWE-000 static void register_packages ( MonoDomain * domain , JNIEnv * env , jobjectArray assemblies ) { jsize i ; jsize assembliesLength = ( * env ) -> GetArrayLength ( env , assemblies ) ; for ( i = 0 ; i < assembliesLength ; ++ i ) { const char * filename ; char * basename ; MonoAssembly * a ; MonoImage * image ; Mo...
<S2SV_ModStart> filename ) ; ( * env ) -> DeleteLocalRef ( env , assembly ) ;
7,546
CWE-000 static size_t httplog ( char * response , size_t size , size_t nmemb , void * userptr ) { char * log ; size_t realsize , copysize ; log = ( char * ) userptr ; realsize = size * nmemb ; <S2SV_StartBug> copysize = realsize < LOG_MEM_LIMIT ? realsize : LOG_MEM_LIMIT ; <S2SV_EndBug> memcpy ( log , response , copysi...
<S2SV_ModStart> = realsize < ( LOG_MEM_LIMIT - 1 ) <S2SV_ModEnd> ? realsize : <S2SV_ModStart> ? realsize : ( LOG_MEM_LIMIT - 1 ) <S2SV_ModEnd> ; memcpy (
7,547
CWE-000 static ssize_t uv__fs_fdatasync ( uv_fs_t * req ) { # if defined ( __linux__ ) || defined ( __sun ) || defined ( __NetBSD__ ) return fdatasync ( req -> file ) ; # elif defined ( __APPLE__ ) <S2SV_StartBug> return fcntl ( req -> file , F_FULLFSYNC ) ; <S2SV_EndBug> # else return fsync ( req -> file ) ; # endif }
<S2SV_ModStart> __APPLE__ ) return uv__fs_fsync ( req <S2SV_ModEnd> ) ; #
7,548
CWE-000 <S2SV_StartBug> LC_Return_t LC_SendMessage ( void * sender , LC_ObjectRecord_t * object , uint16_t target , uint16_t index ) { <S2SV_EndBug> LC_NodeDescription_t * node = sender ; if ( node == 0 ) node = & own_nodes [ 0 ] ; if ( node -> State != LCNodeState_Online ) return LC_NodeOffline ; if ( object == 0 ) re...
<S2SV_ModStart> LC_ObjectRecord_t * object <S2SV_ModEnd> , uint16_t index <S2SV_ModStart> , index , object -> NodeID <S2SV_ModEnd> , node -> <S2SV_ModStart> ; if ( object -> NodeID <S2SV_ModEnd> == node -> <S2SV_ModStart> . Target = object -> NodeID <S2SV_ModEnd> ; # ifndef <S2SV_ModStart> . Target = object -> NodeID <...
7,549
CWE-000 void sixp_input ( const uint8_t * buf , uint16_t len , const linkaddr_t * src_addr ) { sixp_pkt_t pkt ; sixp_nbr_t * nbr ; uint8_t invalid_schedule_generation ; sixp_trans_t * trans ; const sixtop_sf_t * sf ; int16_t seqno ; int16_t gen ; int ret ; assert ( buf != NULL && src_addr != NULL ) ; if ( buf == NULL |...
<S2SV_ModStart> { LOG_ERR ( "6P:<S2SV_blank>sixp_input()<S2SV_blank>fails<S2SV_blank>because<S2SV_blank>of<S2SV_blank>a<S2SV_blank>malformed<S2SV_blank>6P<S2SV_blank>packet\\n" <S2SV_ModEnd> ) ; return
7,550
CWE-000 ngx_int_t ngx_http_v2_get_indexed_header ( ngx_http_v2_connection_t * h2c , ngx_uint_t index , ngx_uint_t name_only ) { u_char * p ; size_t rest ; ngx_http_v2_header_t * entry ; if ( index == 0 ) { ngx_log_error ( NGX_LOG_INFO , h2c -> connection -> log , 0 , "client<S2SV_blank>sent<S2SV_blank>invalid<S2SV_blan...
<S2SV_ModStart> , name_only ? "name" : "header" <S2SV_ModEnd> , index )
7,551
CWE-000 void cmd_loop ( ) { while ( 1 ) { while ( ub . command == NULL ) { } esp_command_req_t * command = ub . command ; ub . command = NULL ; uint32_t * data_words = ( uint32_t * ) command -> data_buf ; esp_command_response_t resp = { . resp = 1 , . op_ret = command -> op , . len_ret = 2 , . value = 0 , } ; switch ( ...
<S2SV_ModStart> 1 ] ; # ifdef ESP32 uart_tx_flush ( 0 ) ; # endif ets_delay_us ( 1000 ) ;
7,552
CWE-000 static void synaptics_ts_work_func ( struct work_struct * work ) { int ret ; uint8_t status = 0 ; uint8_t inte = 0 ; struct synaptics_ts_data * ts = ts_g ; if ( ts -> enable_remote ) { goto END ; } ret = synaptics_rmi4_i2c_write_byte ( ts -> client , 0xff , 0x00 ) ; ret = synaptics_rmi4_i2c_read_word ( ts -> cl...
<S2SV_ModStart> 0x04 ) { uint8_t finger_num = <S2SV_ModStart> ( ) ; ts -> touch_active = finger_num ;
7,553
CWE-000 static void wma_set_vdev_resume_dtim ( tp_wma_handle wma , uint8_t vdev_id ) { struct wma_txrx_node * iface = & wma -> interfaces [ vdev_id ] ; if ( ( iface -> type == WMI_VDEV_TYPE_STA ) && ( iface -> restore_dtim_setting ) ) { QDF_STATUS ret ; uint32_t cfg_data_val = 0 ; struct sAniSirGlobal * mac = cds_get_c...
<S2SV_ModStart> } WMA_LOGD ( "%s:<S2SV_blank>Set<S2SV_blank>Listen<S2SV_blank>Interval<S2SV_blank>vdevId<S2SV_blank>%d<S2SV_blank>Listen<S2SV_blank>Intv<S2SV_blank>%d" , __func__ , <S2SV_ModEnd> vdev_id , cfg_data_val
7,554
CWE-000 void gettxinfo ( void ) { # ifdef HAVE_LIBHAMLIB freq_t rigfreq ; vfo_t vfo ; pbwidth_t bwidth ; int retval ; int retvalmode ; static double last_freq_time = 0.0 ; # else float rigfreq ; # endif static int oldbandinx ; <S2SV_StartBug> # ifdef HAVE_LIBXMLRPC <S2SV_EndBug> static int fldigi_carrier ; static int f...
<S2SV_ModStart> ; # ifdef HAVE_LIBHAMLIB <S2SV_ModEnd> static int fldigi_carrier
7,555
CWE-000 void pathman_join_pathlist_hook ( PlannerInfo * root , RelOptInfo * joinrel , RelOptInfo * outerrel , RelOptInfo * innerrel , JoinType jointype , JoinPathExtraData * extra ) { JoinCostWorkspace workspace ; JoinType saved_jointype = jointype ; RangeTblEntry * inner_rte = root -> simple_rte_array [ innerrel -> re...
<S2SV_ModStart> ; if ( innerrel -> reloptkind != RELOPT_BASEREL ) return ; if ( <S2SV_ModEnd> inner_rte -> inh
7,556
CWE-000 <S2SV_StartBug> int <S2SV_EndBug> em_allocate_legacy ( struct adapter * adapter ) { device_t dev = adapter -> dev ; struct tx_ring * txr = adapter -> tx_rings ; int error , rid = 0 ; E1000_WRITE_REG ( & adapter -> hw , E1000_IMC , 0xffffffff ) ; if ( adapter -> msix == 1 ) rid = 1 ; adapter -> res = bus_alloc_r...
<S2SV_ModStart> <S2SV_null> <S2SV_null> <S2SV_null> static
7,557
CWE-000 int main ( int argc , char * argv [ ] ) { program_name = argv [ 0 ] ; const char * const shortOptions = "hdrun" ; const struct option longOptions [ ] = { { "help" , 0 , NULL , 'h' } , { "daemon" , 0 , NULL , 'd' } , { "report" , 0 , NULL , 'r' } , { "update" , 0 , NULL , 'u' } , { "no-network" , 0 , NULL , 'n' ...
<S2SV_ModStart> ( 0 , 1 <S2SV_ModEnd> ) ; true
7,558
CWE-000 vcode_reg_t emit_abs ( vcode_reg_t lhs ) { int64_t lconst ; if ( vcode_reg_const ( lhs , & lconst ) ) <S2SV_StartBug> return emit_const ( vcode_reg_type ( lhs ) , - lconst ) ; <S2SV_EndBug> op_t * op = vcode_add_op ( VCODE_OP_ABS ) ; vcode_add_arg ( op , lhs ) ; op -> result = vcode_add_reg ( vcode_reg_type ( l...
<S2SV_ModStart> lhs ) , llabs ( lconst ) <S2SV_ModEnd> ) ; op_t
7,559
CWE-000 void <S2SV_StartBug> defsubr ( struct Lisp_Subr * sname ) <S2SV_EndBug> { Lisp_Object sym , tem ; sym = intern_c_string ( sname -> symbol_name ) ; XSETPVECTYPE ( sname , PVEC_SUBR ) ; XSETSUBR ( tem , sname ) ; set_symbol_function ( sym , tem ) ; }
<S2SV_ModStart> void defsubr ( union Aligned_Lisp_Subr * aname ) { <S2SV_ModStart> Lisp_Subr * sname = & aname -> s ; <S2SV_ModEnd> Lisp_Object sym ,
7,560
CWE-000 my_bool audit_log_check_command_included ( const char * name , size_t length ) { <S2SV_StartBug> my_bool res ; <S2SV_EndBug> mysql_rwlock_rdlock ( & LOCK_command_list ) ; res = my_hash_search ( & include_commands , ( const uchar * ) name , length ) != NULL ; mysql_rwlock_unlock ( & LOCK_command_list ) ; return ...
<S2SV_ModStart> { my_bool res ; if ( length == 0 ) return false
7,561
CWE-000 int xhci_init ( struct xhci_softc * sc ) { uint32_t hcr ; int npage , error ; # ifdef XHCI_DEBUG uint16_t vers ; vers = XREAD2 ( sc , XHCI_HCIVERSION ) ; printf ( "%s:<S2SV_blank>xHCI<S2SV_blank>version<S2SV_blank>%x.%x\\n" , DEVNAME ( sc ) , vers >> 8 , vers & 0xff ) ; # endif sc -> sc_bus . usbrev = USBREV_3_...
<S2SV_ModStart> XHCI_DEBUG printf ( "%s:<S2SV_blank>CAPLENGTH=%#lx\\n" <S2SV_ModEnd> , DEVNAME ( <S2SV_ModStart> ; printf ( "%s:<S2SV_blank>DOORBELL=%#lx\\n" <S2SV_ModEnd> , DEVNAME ( <S2SV_ModStart> ; printf ( "%s:<S2SV_blank>RUNTIME=%#lx\\n" <S2SV_ModEnd> , DEVNAME (
7,562
CWE-000 int ipa_nat_init_cmd ( struct ipa_ioc_v4_nat_init * init ) { struct ipa_desc desc = { 0 } ; struct ipa_ip_v4_nat_init * cmd ; u16 size = sizeof ( struct ipa_ip_v4_nat_init ) ; int result ; u32 offset = 0 ; IPADBG ( "\\n" ) ; <S2SV_StartBug> if ( init -> tbl_index < 0 || init -> table_entries <= 0 ) { <S2SV_EndB...
<S2SV_ModStart> ( init -> table_entries == 0 ) { IPADBG ( "Table<S2SV_blank>index<S2SV_blank>or<S2SV_blank>entries<S2SV_blank>is<S2SV_blank>zero\\n" ) ; result = - EPERM ; goto bail ; } if ( init -> ipv4_rules_offset >= ipa_ctx -> nat_mem . size || init -> index_offset >= ipa_ctx -> nat_mem . size || init -> expn_rules...
7,563
CWE-000 int __wrap_main ( int argc , char * * argv ) { MPI_Init ( & argc , & argv ) ; int rank ; int size ; MPI_Comm_size ( MPI_COMM_WORLD , & size ) ; MPI_Comm_rank ( MPI_COMM_WORLD , & rank ) ; int * send_buff ; int * recv_buff ; int lenperproc ; opts o ; parse_opts ( argc , argv , & o ) ; init_data ( & o , & send_bu...
<S2SV_ModStart> ( recv_buff , lenperproc <S2SV_ModEnd> , send_buff ,
7,564
CWE-000 static void exit_udp_trace ( void ) { working = 0 ; <S2SV_StartBug> resetTcpSocket ( ) ; <S2SV_EndBug> sem_post ( & sema ) ; sem_destroy ( & sema ) ; }
<S2SV_ModStart> ; resetTcpSocket ( __FUNCTION__ , __LINE__
7,565
CWE-000 int main ( int argc , char * * argv ) { int cycles , frameskip ; sysconsole_open ( ) ; xemu_dump_version ( stdout , "The<S2SV_blank>Incomplete<S2SV_blank>Commodore-65/Mega-65<S2SV_blank>emulator<S2SV_blank>from<S2SV_blank>LGB" ) ; emucfg_define_str_option ( "8" , NULL , "Path<S2SV_blank>of<S2SV_blank>EXTERNAL<S...
<S2SV_ModStart> ( paused ) { DEBUGPRINT ( <S2SV_ModEnd> "TRACE:<S2SV_blank>entering<S2SV_blank>into<S2SV_blank>trace<S2SV_blank>mode<S2SV_blank>@<S2SV_blank>$%04X" NL , <S2SV_ModStart> cpu_pc ) ; cpu_cycles_per_step = 0 ; } else { DEBUGPRINT ( <S2SV_ModEnd> "TRACE:<S2SV_blank>leaving<S2SV_blank>trace<S2SV_blank>mode<S2...
7,566
CWE-000 void getMove ( int move [ 2 ] , Player currentPlayer , bool result [ 8 ] [ 8 ] ) { printf ( "%s,<S2SV_blank>choose<S2SV_blank>your<S2SV_blank>move:<S2SV_blank>\\n" , currentPlayer . name ) ; int count = 0 ; for ( int i = 0 ; i < 8 ; i ++ ) { for ( int j = 0 ; j < 8 ; j ++ ) { if ( result [ i ] [ j ] == true ) {...
<S2SV_ModStart> true ) { count ++ ; <S2SV_ModStart> ( "%d.<S2SV_blank>(%d,<S2SV_blank>%d)\\t" , <S2SV_ModEnd> count , i <S2SV_ModStart> { printf ( "Invalid<S2SV_blank>input!1\\n><S2SV_blank>" <S2SV_ModEnd> ) ; } <S2SV_ModStart> [ 2 ] == <S2SV_ModEnd> '\\0' ) { <S2SV_ModStart> { printf ( "Invalid<S2SV_blank>input.2\\n><...
7,567
CWE-000 static void arc_read_done ( zio_t * zio ) { blkptr_t * bp = zio -> io_bp ; arc_buf_hdr_t * hdr = zio -> io_private ; kmutex_t * hash_lock = NULL ; arc_callback_t * callback_list ; arc_callback_t * acb ; boolean_t freeable = B_FALSE ; boolean_t no_zio_error = ( zio -> io_error == 0 ) ; if ( HDR_IN_HASH_TABLE ( h...
<S2SV_ModStart> callback_cnt ++ ; if ( zio -> io_error != 0 ) continue ; <S2SV_ModStart> acb_buf ) ; if ( error != 0 ) { ( void ) remove_reference ( hdr , hash_lock , acb -> acb_private ) ; arc_buf_destroy_impl ( acb -> acb_buf ) ; acb -> acb_buf = NULL ; }
7,568
CWE-000 int aws_task_scheduler_schedule_future ( struct aws_task_scheduler * scheduler , struct aws_task * task , uint64_t time_to_run ) { <S2SV_StartBug> if ( aws_thread_current_thread_id ( ) != scheduler -> owning_thread ) { <S2SV_EndBug> return aws_raise_error ( AWS_ERROR_TASK_SCHEDULER_ILLEGAL_XTHREAD_ACCESS ) ; } ...
<S2SV_ModStart> time_to_run ) { <S2SV_ModEnd> struct task_container container
7,569
CWE-000 long sgx_ioctl ( struct file * filep , unsigned int cmd , unsigned long arg ) { char data [ 256 ] ; sgx_ioc_t handler = NULL ; long ret ; switch ( cmd ) { <S2SV_StartBug> case SGX_IOC_ENCLAVE_CREATE : <S2SV_EndBug> handler = sgx_ioc_enclave_create ; break ; case SGX_IOC_ENCLAVE_ADD_PAGE : handler = sgx_ioc_encl...
<S2SV_ModStart> ) { case SGX_IOC_ENCLU_REGISTER : handler = sgx_ioc_enclu_register ; break ; case
7,570
CWE-000 void setsysvar_str ( int index , const char * value ) { <S2SV_StartBug> int tid ; <S2SV_EndBug> int i ; <S2SV_StartBug> int l = strlen ( value ) + 1 ; <S2SV_EndBug> tid = ctask -> tid ; for ( i = 0 ; i < count_tasks ( ) ; i ++ ) { activate_task ( i ) ; if ( ctask -> has_sysvars ) { var_t * var_p = tvar [ index ...
<S2SV_ModStart> ) { int <S2SV_ModEnd> i ; int <S2SV_ModStart> i ; int <S2SV_ModEnd> tid = ctask <S2SV_ModStart> index ] ; v_free ( var_p ) ; v_createstr ( var_p , value ) <S2SV_ModEnd> ; var_p -> <S2SV_ModStart> const_flag = 1 <S2SV_ModEnd> ; } }
7,571
CWE-000 void resetx86 ( ) { pclog ( "x86<S2SV_blank>reset\\n" ) ; resets ++ ; ins = 0 ; <S2SV_StartBug> use32 = 0 ; <S2SV_EndBug> cpu_cur_status = 0 ; stack32 = 0 ; cpu_state . pc = 0 ; msw = 0 ; if ( is486 ) cr0 = 1 << 30 ; else cr0 = 0 ; cpu_cache_int_enabled = 0 ; cpu_update_waitstates ( ) ; cr4 = 0 ; eflags = 0 ; c...
<S2SV_ModStart> 0 ; use32 <S2SV_ModEnd> = 0 ;
7,572
CWE-000 XArchive * xa_init_archive_structure ( gint type ) { XEntry * entry = NULL ; XArchive * archive = NULL ; archive = g_new0 ( XArchive , 1 ) ; if ( archive == NULL ) return NULL ; entry = g_new0 ( XEntry , 1 ) ; entry -> filename = "" ; archive -> root_entry = entry ; archive -> ask = ask [ type ] ; <S2SV_StartBu...
<S2SV_ModStart> ; archive -> list = list <S2SV_ModEnd> [ type ]
7,573
CWE-000 static ssize_t occ_write_common ( struct occ_client * client , const char __user * ubuf , const char * kbuf , size_t len ) { int rc ; unsigned int i ; u16 data_length , checksum = 0 ; struct occ_xfr * xfr = & client -> xfr ; if ( len > ( OCC_CMD_DATA_BYTES + 3 ) || len < 3 ) return - EINVAL ; spin_lock_irq ( & ...
<S2SV_ModStart> ; done : spin_unlock_irq <S2SV_ModEnd> ( & client
7,574
CWE-000 static struct tlv_packet * core_negotiate_tlv_encryption ( struct tlv_handler_ctx * ctx ) { # ifndef __MINGW32__ size_t guid_len = 0 ; size_t pkey_len = 0 ; struct mettle * m = ctx -> arg ; struct tlv_dispatcher * td = mettle_get_tlv_dispatcher ( m ) ; char * guid = tlv_packet_get_raw ( ctx -> req , TLV_TYPE_SE...
<S2SV_ModStart> TLV_RESULT_SUCCESS ) ; p = <S2SV_ModStart> ENC_AES256 ) ; p =
7,575
CWE-000 <S2SV_StartBug> int unset_invalid_bit ( union rfs_block * block ) { <S2SV_EndBug> <S2SV_StartBug> if ( is_set ( block -> inode . isvalid ) ) { <S2SV_EndBug> <S2SV_StartBug> block -> inode . isvalid = 0 ; <S2SV_EndBug> } return 1 ; }
<S2SV_ModStart> rfs_block * block , int index <S2SV_ModStart> block -> inode [ index ] <S2SV_ModStart> block -> inode [ index ]
7,576
CWE-000 PHP_METHOD ( Xfyun , __destruct ) { int ret = MSPLogout ( ) ; if ( MSP_SUCCESS != ret ) { throw_exception ( XFYUN_ERROR_LOGOUT , "MSPLogout<S2SV_blank>failed<S2SV_blank>[%d]" , ret ) ; <S2SV_StartBug> } <S2SV_EndBug> }
<S2SV_ModStart> ret ) ; RETURN_NULL ( ) ;
7,577
CWE-000 static inline void kill_all_lockers ( struct flock * mem_usage_check ) { int tries = 10 ; ZCSG ( force_restart_time ) = 0 ; while ( mem_usage_check -> l_pid > 0 ) { while ( tries -- ) { <S2SV_StartBug> zend_accel_error ( ACCEL_LOG_ERROR , "Killed<S2SV_blank>locker<S2SV_blank>%d" , mem_usage_check -> l_pid ) ; <...
<S2SV_ModStart> { zend_accel_error ( ACCEL_LOG_WARNING <S2SV_ModEnd> , "Killed<S2SV_blank>locker<S2SV_blank>%d" , <S2SV_ModStart> { zend_accel_error ( ACCEL_LOG_WARNING , "Can\'t<S2SV_blank>kill<S2SV_blank>%d<S2SV_blank>after<S2SV_blank>10<S2SV_blank>tries!" <S2SV_ModEnd> , mem_usage_check ->
7,578
CWE-000 static struct sk_buff * ipv6_gso_segment ( struct sk_buff * skb , netdev_features_t features ) { struct sk_buff * segs = ERR_PTR ( - EINVAL ) ; struct ipv6hdr * ipv6h ; const struct net_offload * ops ; int proto ; struct frag_hdr * fptr ; u8 * prevhdr ; int offset = 0 ; bool encap , udpfrag ; int nhoff ; if ( u...
<S2SV_ModStart> udpfrag ) { int err <S2SV_ModEnd> = ip6_find_1stfragopt ( <S2SV_ModStart> ; if ( err <S2SV_ModEnd> < 0 ) <S2SV_ModStart> return ERR_PTR ( err <S2SV_ModEnd> ) ; fptr <S2SV_ModStart> ) ipv6h + err <S2SV_ModEnd> ) ; fptr
7,579
CWE-000 INLINE int _ReduceCharDataMatch ( XML_Char c ) { int i = ( int ) c ; if ( i >= 0 && i < 256 ) return _ReduceCharDataMatchChars [ i ] ; <S2SV_StartBug> } <S2SV_EndBug>
<S2SV_ModStart> i ] ; return 0 ;
7,580
CWE-000 <S2SV_StartBug> int sortAddressList ( eCategory_t category ) { <S2SV_EndBug> if ( pAddressList != NULL ) { if ( pAddressList -> next != NULL ) { <S2SV_StartBug> int x ; <S2SV_EndBug> <S2SV_StartBug> int strcmpResult ; <S2SV_EndBug> int requestedLoop = TRUE ; struct tAddress * currItem ; struct tAddress * nextIt...
<S2SV_ModStart> <S2SV_null> <S2SV_null> <S2SV_null> eReturnCode_t <S2SV_ModEnd> sortAddressList ( eCategory_t <S2SV_ModStart> { int x = 0 <S2SV_ModStart> ; int strcmpResult = NULL <S2SV_ModStart> ; } } if ( 0 < x ) { return RET_SUCCESS ; } } } return RET_NOTHING_TO_SORT <S2SV_ModEnd> ; } <S2SV_null>
7,581
CWE-000 void init_rt_rq ( struct rt_rq * rt_rq ) { struct rt_prio_array * array ; int i ; array = & rt_rq -> active ; for ( i = 0 ; i < MAX_RT_PRIO ; i ++ ) { INIT_LIST_HEAD ( array -> queue + i ) ; __clear_bit ( i , array -> bitmap ) ; } __set_bit ( MAX_RT_PRIO , array -> bitmap ) ; # if defined CONFIG_SMP rt_rq -> hi...
<S2SV_ModStart> ) ; # <S2SV_ModEnd> endif rt_rq ->
7,582
CWE-000 void MCU_Temperature_Detector ( void ) { static float act_temp = 0.f ; <S2SV_StartBug> globalMCU_Temperature = InnerTempCalcus ( ADC_Temp_Channel , 1 ) ; <S2SV_EndBug> globalMCU_Temperature = Kalman_1DerivFilter ( globalMCU_Temperature , & itd_kf ) ; if ( act_temp != globalMCU_Temperature ) <S2SV_StartBug> { <S...
<S2SV_ModStart> ; globalMCU_Temperature = Kalman_1DerivFilter ( <S2SV_ModStart> , 1 ) <S2SV_ModEnd> , & itd_kf <S2SV_ModStart> != globalMCU_Temperature ) <S2SV_ModEnd> act_temp = globalMCU_Temperature <S2SV_ModStart> act_temp = globalMCU_Temperature ; if ( act_temp >= Warning_Temperature && pwsf != JBoot ) { delay_ms (...
7,583
CWE-000 obs_weak_encoder_t * obs_encoder_get_weak_encoder ( obs_encoder_t * encoder ) { <S2SV_StartBug> if ( ! encoder ) <S2SV_EndBug> <S2SV_StartBug> return NULL ; <S2SV_EndBug> obs_weak_encoder_t * weak = encoder -> control ; obs_weak_encoder_addref ( weak ) ; return weak ; }
<S2SV_ModStart> encoder ) { obs_weak_encoder_t * weak = encoder -> control ; <S2SV_ModStart> ) return NULL <S2SV_ModEnd> ; obs_weak_encoder_addref (
7,584
CWE-000 bool object_is_shell ( object * o ) { <S2SV_StartBug> return ! object_properties_size ( o , ":" ) && ! o -> evaluator ; <S2SV_EndBug> }
<S2SV_ModStart> { return ! o -> properties <S2SV_ModEnd> && ! o
7,585
CWE-000 ssize_t my_write ( struct file * file , const char __user * user_buffer , size_t count , loff_t * ppos ) { <S2SV_StartBug> if ( count > 0 ) <S2SV_EndBug> <S2SV_StartBug> return count ; <S2SV_EndBug> int i = 0 ; while ( 1 ) { msleep ( 500 ) ; if ( my_proc_fp > PROCSIZE - 100 ) break ; if ( myioque . que_count ==...
<S2SV_ModStart> ppos ) { int i = 0 ; <S2SV_ModStart> ) return count <S2SV_ModEnd> ; while (
7,586
CWE-000 static int eth_0_init ( struct device * dev ) { struct eth_context * context = dev -> driver_data ; enet_config_t enet_config ; uint32_t sys_clock ; enet_buffer_config_t buffer_config = { . rxBdNumber = CONFIG_ETH_MCUX_RX_BUFFERS , . txBdNumber = CONFIG_ETH_MCUX_TX_BUFFERS , . rxBuffSizeAlign = ETH_MCUX_BUFFER_...
<S2SV_ModStart> |= kENET_MiiInterrupt ; enet_config . macSpecialConfig |= kENET_ControlPromiscuousEnable ;
7,587
CWE-000 static void gimp_airbrush_paint ( GimpPaintCore * paint_core , GimpDrawable * drawable , GimpPaintOptions * paint_options , GimpSymmetry * sym , GimpPaintState paint_state , guint32 time ) { GimpAirbrush * airbrush = GIMP_AIRBRUSH ( paint_core ) ; GimpAirbrushOptions * options = GIMP_AIRBRUSH_OPTIONS ( paint_op...
<S2SV_ModStart> pixel_dist ) ; airbrush -> drawable = drawable ; airbrush -> paint_options = paint_options ; if ( airbrush -> sym ) g_object_unref ( airbrush -> sym ) ; airbrush -> sym = g_object_ref ( sym ) ; <S2SV_ModStart> time ) ; g_clear_object ( & airbrush -> sym ) ;
7,588
CWE-000 _db6_local_function ( db6result , _rawgen_nextvec , ( Db6Executor * self , Db6ExecVector * vector ) ) { db6result result = DB6_SUCCESS ; RawGen * gen = RAWGEN ( self ) ; db6ssize k , * vals ; DB6_ASSERT ( self != DB6_NULL ) ; if ( gen -> delivered_recs >= gen -> max_recs ) { return DB6_EXHAUSTED ; } if ( pthrea...
<S2SV_ModStart> max_recs ) { vector -> n_recs = k + 1L ;
7,589
CWE-000 static ofdpa_sai_vlan_member_t * get_ofdpa_sai_vlan_member_by_vlan_member_id ( sai_object_id_t oid ) { int i ; ofdpa_sai_vlan_member_t * vlan = NULL ; for ( i = 0 ; i < port_num ; i ++ ) { vlan = ports [ i ] . vlans ; while ( vlan != NULL ) { if ( vlan -> oid == oid ) { return vlan ; } <S2SV_StartBug> } <S2SV_E...
<S2SV_ModStart> vlan ; } vlan = vlan -> next ;
7,590
CWE-000 EXPR * makeEXPRvariable ( char * var_name ) { EXPR * e = malloc ( sizeof ( EXPR ) ) ; <S2SV_StartBug> e -> expression_type = get_type ( var_name ) ; <S2SV_EndBug> <S2SV_StartBug> if ( e -> expression_type == error_type ) { <S2SV_EndBug> printf ( "ERROR:<S2SV_blank>%s<S2SV_blank>has<S2SV_blank>not<S2SV_blank>bee...
<S2SV_ModStart> -> expression_type = variable_type ; e -> type = <S2SV_ModStart> ( e -> type <S2SV_ModEnd> == error_type ) <S2SV_ModStart> } e -> <S2SV_ModEnd> val . id
7,591
CWE-000 static int gs_usb_probe ( struct usb_interface * intf , const struct usb_device_id * id ) { struct gs_usb * dev ; int rc = - ENOMEM ; unsigned int icount , i ; struct gs_host_config * hconf ; struct gs_device_config * dconf ; hconf = kmalloc ( sizeof ( * hconf ) , GFP_KERNEL ) ; if ( ! hconf ) return - ENOMEM ;...
<S2SV_ModStart> ) ) { rc = PTR_ERR ( dev -> canch [ i ] ) ; <S2SV_ModStart> i ++ ) <S2SV_ModEnd> gs_destroy_candev ( dev <S2SV_ModStart> ] ) ; usb_kill_anchored_urbs ( & dev -> rx_submitted ) ; <S2SV_ModEnd> kfree ( dev
7,592
CWE-000 int insert ( State * st , Buffer * buf , Arg * arg , char * error ) { Line * new ; <S2SV_StartBug> if ( arg -> addr && gotol ( st , buf , arg , error ) ) <S2SV_EndBug> return 1 ; arg -> addr = 0 ; if ( arg -> mode ) { if ( ! strcmp ( arg -> mode , "insert" ) ) { ; } else if ( ! strcmp ( arg -> mode , "append" )...
<S2SV_ModStart> -> addr && ( <S2SV_ModStart> , error ) == FAIL ) ) return FAIL <S2SV_ModEnd> ; arg -> <S2SV_ModStart> { if ( <S2SV_ModEnd> delete ( st <S2SV_ModStart> , error ) == FAIL ) return FAIL <S2SV_ModEnd> ; } else <S2SV_ModStart> ) ; return SUCC <S2SV_ModEnd> ; } } <S2SV_ModStart> ) ; return SUCC <S2SV_ModEnd> ...
7,593
CWE-000 void pios_gpio_pinmode ( uint32_t pin , uint32_t val ) { if ( val > 7 ) return ; if ( pin > 53 ) return ; volatile uint32_t * base = & pios_gpio -> fn_select [ 0 ] ; while ( pin >= 10 ) { base ++ ; pin -= 10 ; } uint32_t v = * base ; <S2SV_StartBug> v &= ( 7 << ( ( pin << 1 ) + pin ) ) ; <S2SV_EndBug> v |= ( va...
<S2SV_ModStart> ; v &= ~
7,594
CWE-000 int main ( int argc , char * argv [ ] ) { int error = EXIT_SUCCESS ; char * str = NULL ; char * reader = NULL ; LONG err ; MifareTag * tags = NULL ; if ( argc > 1 ) errx ( EXIT_FAILURE , "usage:<S2SV_blank>%s" , argv [ 0 ] ) ; struct pcsc_context * context ; pcsc_init ( & context ) ; if ( ! context ) { fprintf ...
<S2SV_ModStart> { if ( MIFARE_DESFIRE <S2SV_ModEnd> != freefare_get_tag_type (
7,595
CWE-000 static int any_array_ufunc_overrides ( PyObject * args , PyObject * kwds ) { int i ; int nin , nout ; PyObject * out_kwd_obj ; PyObject * fast ; PyObject * * in_objs , * * out_objs ; nin = PyTuple_Size ( args ) ; if ( nin < 0 ) { return - 1 ; } fast = PySequence_Fast ( args , "Could<S2SV_blank>not<S2SV_blank>co...
<S2SV_ModStart> 0 ) { <S2SV_ModEnd> return - 1 <S2SV_ModStart> ) ) { Py_DECREF ( out_kwd_obj ) ; return 1 ; } } <S2SV_ModStart> ) ; return <S2SV_ModEnd> 0 ; }
7,596
CWE-000 tThread * Thread ( ) { static U32 threadID = 0 ; tThread * pThis ; tThread * pThread ; pThis = ( tThread * ) Heap_AllocType ( types [ TYPE_SYSTEM_THREADING_THREAD ] ) ; Heap_MakeUndeletable ( ( HEAP_PTR ) pThis ) ; pThis -> threadID = ++ threadID ; pThis -> pCurrentMethodState = NULL ; pThis -> threadExitValue ...
<S2SV_ModStart> ( 1 , "Creating<S2SV_blank>thread<S2SV_blank>%d.\\n" <S2SV_ModEnd> , ( int
7,597
CWE-000 int dht_setxattr2 ( xlator_t * this , xlator_t * subvol , call_frame_t * frame , int ret ) { dht_local_t * local = NULL ; int op_errno = EINVAL ; if ( ! frame || ! frame -> local ) goto err ; local = frame -> local ; <S2SV_StartBug> if ( we_are_not_migrating ( ret ) ) { <S2SV_EndBug> DHT_STACK_UNWIND ( setxattr...
<S2SV_ModStart> -> local ; op_errno = local -> op_errno ; <S2SV_ModStart> ) goto err <S2SV_ModEnd> ; local ->
7,598
CWE-000 int yield_handler ( thread_node * ptr ) { <S2SV_StartBug> printf ( "handling<S2SV_blank>yield()\\n" ) ; <S2SV_EndBug> switch ( ptr -> thread -> yield_purpose ) { case 1 : { my_pthread_t exit_pid = ptr -> thread -> pid ; thread_node * temp = ptr ; free ( temp -> thread ) ; free ( temp ) ; join_waiting_queue_node...
<S2SV_ModStart> { printf ( "handling<S2SV_blank>yield()<S2SV_blank>%d\\n" , ptr -> thread -> yield_purpose <S2SV_ModEnd> ) ; switch
7,599
CWE-000 DEFUN ( ospf_mpls_te_router_addr , ospf_mpls_te_router_addr_cmd , "mpls-te<S2SV_blank>router-address<S2SV_blank>A.B.C.D" , MPLS_TE_STR "Stable<S2SV_blank>IP<S2SV_blank>address<S2SV_blank>of<S2SV_blank>the<S2SV_blank>advertising<S2SV_blank>router\\n" "MPLS-TE<S2SV_blank>router<S2SV_blank>address<S2SV_blank>in<S2...
<S2SV_ModStart> "MPLS-TE<S2SV_blank>router<S2SV_blank>address<S2SV_blank>in<S2SV_blank>IPv4<S2SV_blank>address<S2SV_blank>format\\n" ) { VTY_DECLVAR_INSTANCE_CONTEXT <S2SV_ModEnd> ( ospf ,