Unnamed: 0
int64
0
535k
source
stringlengths
50
89.8k
target
stringlengths
23
37.7k
11,900
CWE-000 <S2SV_StartBug> void * rw_io_wrapper ( void * restrict _arg ) { <S2SV_EndBug> rw_io_t * restrict arg = ( rw_io_t * restrict ) _arg ; error_check ( rw_io ( arg -> io , arg -> rd , arg -> wr ) != 0 ) return NULL ; return NULL ; }
<S2SV_ModStart> <S2SV_null> <S2SV_null> <S2SV_null> __attribute__ ( ( nonnull ( 1 ) , nothrow , warn_unused_result ) ) static
11,901
CWE-000 static int of_translate_one ( struct device_node * parent , struct of_bus * bus , <S2SV_StartBug> struct of_bus * pbus , u32 * addr , <S2SV_EndBug> int na , int ns , int pna , const char * rprop ) { const __be32 * ranges ; unsigned int rlen ; int rone ; u64 offset = OF_BAD_ADDR ; ranges = of_get_property ( pare...
<S2SV_ModStart> * pbus , __be32 <S2SV_ModEnd> * addr ,
11,902
CWE-000 static void __sl_timeout_mod_wakeup_expired ( cycles_t now ) { cycles_t nw ; if ( ! heap_size ( hs ) ) return ; nw = now ; int idx = 1 ; do { struct sl_thd * tp , * th ; tp = heap_peek_at ( hs , idx ) ; assert ( tp ) ; <S2SV_StartBug> if ( ! cycles_same ( tp -> wakeup_cycs , nw , WKUP_DIFF_CYCS ) && ( tp -> wak...
<S2SV_ModStart> if ( ! sl_cycles_same <S2SV_ModEnd> ( tp -> <S2SV_ModStart> wakeup_cycs , nw <S2SV_ModEnd> ) && ( <S2SV_ModStart> == SL_THD_SIMPLE ) { <S2SV_ModStart> th ) ; } else { <S2SV_ModEnd> sl_mod_wakeup ( sl_mod_thd_policy_get <S2SV_ModStart> ) ) ; }
11,903
CWE-000 int ploop_restore_descriptor ( const char * dir , char * delta_path , int raw , int blocksize ) { struct delta delta ; struct ploop_disk_images_data * di = NULL ; struct ploop_create_param param = { } ; char ddxml [ PATH_MAX ] ; char fname [ PATH_MAX ] ; int ret ; if ( strlen ( dir ) == 0 ) return SYSEXIT_PARAM...
<S2SV_ModStart> } else { <S2SV_ModEnd> blocksize = select_best_blocksize <S2SV_ModStart> ; if ( <S2SV_ModEnd> blocksize < 0 <S2SV_ModStart> SYSEXIT_PARAM ; } param . blocksize = blocksize ;
11,904
CWE-000 void init_graphics ( ) { file = open ( "/dev/fb0" , O_RDWR ) ; ioctl ( file , FBIOGET_VSCREENINFO , & variable_info ) ; ioctl ( file , FBIOGET_FSCREENINFO , & fixed_info ) ; len = variable_info . yres_virtual * fixed_info . line_length ; <S2SV_StartBug> address = mmap ( 0 , len , PROT_READ | PROT_WRITE , MAP_PR...
<S2SV_ModStart> . line_length ; process_address <S2SV_ModEnd> = mmap (
11,905
CWE-000 const char * mfn_name ( MFUNARGS ) { char * ptr ; dbref obj = mesg_dbref_raw ( descr , player , what , argv [ 0 ] ) ; if ( obj == UNKNOWN ) ABORT_MPI ( "NAME" , "Match<S2SV_blank>failed." ) ; if ( obj == PERMDENIED ) ABORT_MPI ( "NAME" , "Permission<S2SV_blank>denied." ) ; if ( obj == NOTHING ) { strcpyn ( buf ...
<S2SV_ModStart> { ptr = strchr <S2SV_ModEnd> ( buf ,
11,906
CWE-000 char * ft_strmap ( char const * s , char ( * f ) ( char ) ) { size_t i ; size_t ln ; char * mas ; i = 0 ; if ( ! s || ! f ) return ( NULL ) ; ln = ft_strlen ( s ) ; <S2SV_StartBug> mas = ft_strnew ( ln ) ; <S2SV_EndBug> if ( ! mas ) { ft_memdel ( ( void * ) & mas ) ; return ( NULL ) ; <S2SV_StartBug> } <S2SV_En...
<S2SV_ModStart> s ) ; if ( ! ( <S2SV_ModStart> ( ln ) ) ) <S2SV_ModEnd> return ( NULL <S2SV_ModStart> NULL ) ; <S2SV_ModEnd> while ( s
11,907
CWE-000 instruction * parserCodeGen ( lexeme * lexemes , int print ) { symbol * table = calloc ( MAX_TABLE_SIZE , sizeof ( symbol ) ) ; instruction * code = calloc ( MAX_CODE_LENGTH , sizeof ( instruction ) ) ; parser p ; p . instruction = 0 ; p . reg = 0 ; p . stack = 0 ; p . table = 0 ; p . token = - 1 ; p . level = ...
<S2SV_ModStart> p ) ; code [ 0 ] . count = p . instruction ;
11,908
CWE-000 void windowsButtonStart ( MENU * menu , WINDOW_VIEW_CONTROLS * windowControls , ARGS * args , volatile BOOL * running ) { * running = TRUE ; int windowSelection = ( int ) SendMessage ( windowControls -> comboBox , CB_GETCURSEL , 0 , 0 ) ; args -> selectedWindow = windowControls -> windows . windows [ windowSele...
<S2SV_ModStart> TRUE ) ; EnableWindow ( windowControls -> comboBox , FALSE ) ;
11,909
CWE-000 static void enqueue_task_rt ( struct rq * rq , struct task_struct * p , int flags ) { struct sched_rt_entity * rt_se = & p -> rt ; if ( flags & ENQUEUE_WAKEUP ) rt_se -> timeout = 0 ; enqueue_rt_entity ( rt_se , flags & ENQUEUE_HEAD ) ; walt_inc_cumulative_runnable_avg ( rq , p ) ; if ( ! task_current ( rq , p ...
<S2SV_ModStart> ) ; } if ( ! schedtune_task_boost ( p ) ) return ; hrtimer_try_to_cancel ( & rt_se -> schedtune_timer ) ; if ( rt_se -> schedtune_enqueued == true ) return ; rt_se -> schedtune_enqueued = true ; <S2SV_ModStart> ) ) ; sched_rt_update_capacity_req ( rq , false ) ;
11,910
CWE-000 PyObject * AerospikeClient_MapClear ( AerospikeClient * self , PyObject * args , PyObject * kwds ) { BASE_VARIABLES PyObject * py_meta = NULL ; PyObject * py_policy = NULL ; as_policy_operate operate_policy ; <S2SV_StartBug> as_policy_operate * operate_policy_p = NULL ; <S2SV_EndBug> as_record * rec = NULL ; CH...
<S2SV_ModStart> operate_policy_p = NULL ; bool error_occured = false <S2SV_ModStart> false ) { error_occured = true ; <S2SV_ModStart> err ) ; if ( error_occured ) { return NULL ; }
11,911
CWE-000 static int ip6_tnl_xmit2 ( struct sk_buff * skb , struct net_device * dev , __u8 dsfield , struct flowi6 * fl6 , int encap_limit , __u32 * pmtu ) { struct net * net = dev_net ( dev ) ; struct ip6_tnl * t = netdev_priv ( dev ) ; struct net_device_stats * stats = & t -> dev -> stats ; struct ipv6hdr * ipv6h = ipv...
<S2SV_ModStart> encap_limit ) ; ipv6_push_frag_opts <S2SV_ModEnd> ( skb , <S2SV_ModStart> , & proto <S2SV_ModEnd> ) ; }
11,912
CWE-000 gboolean gst_msdkenc_get_common_property ( GObject * object , guint prop_id , GValue * value , GParamSpec * pspec ) { GstMsdkEnc * thiz = GST_MSDKENC ( object ) ; gboolean ret = TRUE ; GST_OBJECT_LOCK ( thiz ) ; switch ( prop_id ) { case PROP_HARDWARE : g_value_set_boolean ( value , thiz -> hardware ) ; break ;...
<S2SV_ModStart> break ; case PROP_AVBR_ACCURACY : g_value_set_uint ( value , thiz -> accuracy ) ; break ; case PROP_AVBR_CONVERGENCE : g_value_set_uint ( value , thiz -> convergence ) ; break ; case PROP_RC_LOOKAHEAD_DEPTH : g_value_set_uint ( value , thiz -> lookahead_depth ) ; break ; case
11,913
CWE-000 static int coroutine_thread_routine ( void * data ) { struct coroutine_thread * thread = ( struct coroutine_thread * ) data ; struct coroutine * co , * next_co ; trace ( "co<S2SV_blank>thread<S2SV_blank>0x%px<S2SV_blank>enter\\n" , thread ) ; <S2SV_StartBug> while ( ! kthread_should_stop ( ) ) { <S2SV_EndBug> <...
<S2SV_ModStart> thread ) ; for ( ; ; ) { wait_event_interruptible ( thread -> waitq , ( thread -> stopping || atomic_read ( & thread -> signaled ) ) ) ; if ( thread -> stopping ) break ; atomic_set ( & thread -> signaled , 0 ) ; co = coroutine_thread_next_coroutine ( thread , NULL ) ; while ( <S2SV_ModEnd> co != NULL <...
11,914
CWE-000 uint8_t ps2_read_data ( ) { uint8_t status ; do { status = inb ( PS2_COMMAND_PORT ) ; <S2SV_StartBug> } while ( ( status & PS2_STATUS_OBF ) == 0 ) ; <S2SV_EndBug> return inb ( PS2_DATA_PORT ) ; }
<S2SV_ModStart> } while ( ! <S2SV_ModStart> & PS2_STATUS_OBF ) <S2SV_ModEnd> ) ; return
11,915
CWE-000 int RetrieveEndorsementCredentials ( char * b64h ) { int ret = - 1 ; <S2SV_StartBug> if ( b64h == NULL ) { <S2SV_EndBug> LOG_ERR ( "Base64Encode<S2SV_blank>returned<S2SV_blank>null" ) ; return ret ; } size_t len = 1 + strlen ( b64h ) + strlen ( EKserverAddr ) ; char * weblink = ( char * ) malloc ( len ) ; if ( ...
<S2SV_ModStart> - 1 ; <S2SV_ModEnd> size_t len =
11,916
CWE-000 void cdbCopyStart ( CdbCopy * c , CopyStmt * stmt , struct GpPolicy * policy ) { <S2SV_StartBug> int flags ; <S2SV_EndBug> c -> err_msg . len = 0 ; c -> err_msg . data [ 0 ] = '\\0' ; c -> err_msg . cursor = 0 ; stmt = copyObject ( stmt ) ; stmt -> partitions = c -> partitions ; stmt -> ao_segnos = c -> ao_segn...
<S2SV_ModStart> { int flags <S2SV_ModEnd> ; stmt =
11,917
CWE-000 gboolean gdm_launch_environment_start ( GdmLaunchEnvironment * launch_environment ) { gboolean res = FALSE ; GError * local_error = NULL ; GError * * error = & local_error ; struct passwd * passwd_entry ; uid_t uid ; gid_t gid ; g_debug ( "GdmLaunchEnvironment:<S2SV_blank>Starting..." ) ; if ( ! gdm_get_pwent_f...
<S2SV_ModStart> 0 ) ; g_signal_connect_object ( launch_environment -> priv -> session , "hostname-selected" , G_CALLBACK ( on_hostname_selected ) , launch_environment , 0 ) ;
11,918
CWE-000 void skynet_globalinit ( void ) { G_NODE . total = 0 ; <S2SV_StartBug> G_NODE . monitor_exit = 0 ; <S2SV_EndBug> if ( pthread_key_create ( & G_NODE . handle_key , NULL ) ) { fprintf ( stderr , "pthread_key_create<S2SV_blank>failed" ) ; exit ( 1 ) ; } skynet_initthread ( THREAD_MAIN ) ; }
<S2SV_ModStart> monitor_exit = 0 ; G_NODE . init = 1
11,919
CWE-000 int main ( void ) { unsigned char ret_val ; unsigned char rawData_window_len = AUDIO_DATA_WINDOW_SIZE ; uint16_t current_peak = 0 ; const uint16_t threshold = 2048 ; unsigned char threshold_crossed = 0 ; audioData_counter = 0 ; CHIP_Init ( ) ; initADC ( ) ; ADC_Start ( ADC0 , adcStartSingle ) ; EMU_DCDCInit_Typ...
<S2SV_ModStart> 1 ) { if ( audioData_counter == AUDIO_DATA_WINDOW_LEN ) { <S2SV_ModStart> ; } } audioData_counter = 0 ; }
11,920
CWE-000 void FORTRAN ( create_pyefcn ) ( char fname [ ] , int * lenfname , char pymod [ ] , int * lenpymod , char errstring [ ] , int * lenerrstring ) { ExternalFunction ef ; ExternalFunction * ef_ptr ; char libname [ 1024 ] ; if ( * lenpymod >= EF_MAX_DESCRIPTION_LENGTH ) { sprintf ( errstring , "Module<S2SV_blank>nam...
<S2SV_ModStart> ( ExternalFunction ) , __FILE__ , __LINE__ <S2SV_ModStart> list_remove_rear ( STATIC_ExternalFunctionList , __FILE__ , __LINE__ <S2SV_ModStart> list_remove_rear ( STATIC_ExternalFunctionList , __FILE__ , __LINE__ <S2SV_ModStart> list_remove_rear ( STATIC_ExternalFunctionList , __FILE__ , __LINE__ <S2SV_...
11,921
CWE-000 static inline int s5p_mfc_run_init_dec_buffers ( struct s5p_mfc_ctx * ctx ) { struct s5p_mfc_dev * dev = ctx -> dev ; int ret ; if ( ctx -> capture_state != QUEUE_BUFS_MMAPED ) { <S2SV_StartBug> mfc_err ( "It<S2SV_blank>seems<S2SV_blank>that<S2SV_blank>not<S2SV_blank>all<S2SV_blank>destionation<S2SV_blank>buffe...
<S2SV_ModStart> { mfc_err ( "It<S2SV_blank>seems<S2SV_blank>that<S2SV_blank>not<S2SV_blank>all<S2SV_blank>destination<S2SV_blank>buffers<S2SV_blank>were\\n" <S2SV_ModEnd> "mmaped.MFC<S2SV_blank>requires<S2SV_blank>that<S2SV_blank>all<S2SV_blank>destination<S2SV_blank>are<S2SV_blank>mmaped\\n" "before<S2SV_blank>startin...
11,922
CWE-000 static ERL_NIF_TERM zlib_inflate ( ErlNifEnv * env , int argc , const ERL_NIF_TERM argv [ ] ) { zlib_data_t * d ; int input_chunk_size , output_chunk_size , flush ; if ( argc != 4 || ! get_zlib_data ( env , argv [ 0 ] , & d ) || ! enif_get_int ( env , argv [ 1 ] , & input_chunk_size ) || ! enif_get_int ( env , ...
<S2SV_ModStart> ) ; } if ( d -> eos_seen ) { int res ; switch ( d -> eos_behavior ) { case EOS_BEHAVIOR_ERROR : return zlib_return ( env , Z_DATA_ERROR ) ; case EOS_BEHAVIOR_RESET : res = inflateReset ( & d -> s ) ; if ( res != Z_OK ) { return zlib_return ( env , res ) ; } d -> eos_seen = 0 ; break ; case EOS_BEHAVIOR_...
11,923
CWE-000 static void hlsenc_io_close ( AVFormatContext * s , AVIOContext * * pb , char * filename ) { HLSContext * hls = s -> priv_data ; <S2SV_StartBug> int http_base_proto = filename ? ff_is_http_proto ( filename ) : 0 ; <S2SV_EndBug> if ( ! http_base_proto || ! hls -> http_persistent || hls -> key_info_file || hls ->...
<S2SV_ModStart> ) : 0 ; if ( ! * pb ) return
11,924
CWE-000 unsigned int iwl_mvm_get_wd_timeout ( struct iwl_mvm * mvm , struct ieee80211_vif * vif , bool tdls , bool cmd_q ) { struct iwl_fw_dbg_trigger_tlv * trigger ; struct iwl_fw_dbg_trigger_txq_timer * txq_timer ; unsigned int default_timeout = cmd_q ? IWL_DEF_WD_TIMEOUT : mvm -> cfg -> base_params -> wd_timeout ; <...
<S2SV_ModStart> FW_DBG_TRIGGER_TXQ_TIMERS ) ) { if ( fw_has_capa ( & mvm -> fw -> ucode_capa , IWL_UCODE_TLV_CAPA_STA_PM_NOTIF ) && vif && vif -> type == NL80211_IFTYPE_AP ) return IWL_WATCHDOG_DISABLED ; <S2SV_ModStart> : IWL_WATCHDOG_DISABLED ; }
11,925
CWE-000 int main ( ) { int i ; <S2SV_StartBug> int socket_fd , <S2SV_EndBug> new_fd ; socklen_t clen ; <S2SV_StartBug> struct sockaddr_in server_addr , <S2SV_EndBug> client_addr ; <S2SV_StartBug> signal ( SIGTSTP , TSTP_handler ) ; <S2SV_EndBug> if ( ( socket_fd = socket ( AF_INET , SOCK_STREAM , 0 ) ) == - 1 ) ERROR (...
<S2SV_ModStart> int i ; pid_t server_pid ; <S2SV_ModStart> socklen_t clen ; server_pid = getpid ( ) ; <S2SV_ModStart> SIGTSTP , TSTP_handler ) ; printf ( "Server\'s<S2SV_blank>pid<S2SV_blank>%d\\n" , server_pid
11,926
CWE-000 static void change_button_clicked_handler ( GtkButton * button , GspellCheckerDialog * dialog ) { <S2SV_StartBug> GspellCheckerDialogPrivate * priv ; <S2SV_EndBug> gchar * change_to ; priv = gspell_checker_dialog_get_instance_private ( dialog ) ; g_return_if_fail ( priv -> misspelled_word != NULL ) ; <S2SV_Star...
<S2SV_ModStart> GspellCheckerDialogPrivate * priv ; const gchar * entry_text <S2SV_ModStart> NULL ) ; entry_text = <S2SV_ModEnd> gtk_entry_get_text ( priv <S2SV_ModStart> -> word_entry ) <S2SV_ModEnd> ; g_return_if_fail ( <S2SV_ModStart> ; g_return_if_fail ( entry_text <S2SV_ModEnd> != NULL ) <S2SV_ModStart> ; g_return...
11,927
CWE-000 struct key_t * keyboard_view_get_key ( struct keyboard_view_t * kv , double x , double y , <S2SV_StartBug> GdkRectangle * rect , struct key_t * * * parent_ptr ) <S2SV_EndBug> { double kbd_x , kbd_y ; keyboard_view_get_margins ( kv , & kbd_x , & kbd_y ) ; if ( x < kbd_x || y < kbd_y ) { return NULL ; } struct ro...
<S2SV_ModStart> GdkRectangle * rect , bool * is_rectangular <S2SV_ModStart> float multirow_y_offset ; bool l_is_rectangular = <S2SV_ModStart> multirow_y_offset ) ; if ( is_rectangular != NULL ) { * is_rectangular = l_is_rectangular ; }
11,928
CWE-000 void parseArgs ( Inargs * in , int argc , char * argv [ ] ) { <S2SV_StartBug> int ch , index ; <S2SV_EndBug> bool h , nd ; h = false ; nd = false ; while ( ( ch = getopt ( argc , argv , "hn:d:" ) ) != - 1 ) switch ( ch ) { case 'h' : h = true ; break ; case 'n' : if ( ! isdigit ( optarg [ 0 ] ) ) usage ( ) ; in...
<S2SV_ModStart> { int ch <S2SV_ModEnd> ; bool h
11,929
CWE-000 int printVerbose ( void * printInfo_v , int mode ) { struct superblock * printInfo_su ; struct partitionTable * printInfo_p ; struct inode * printInfo_i ; time_t time ; int i ; switch ( mode ) { case SUPERBLOCK : printInfo_su = ( struct superblock * ) printInfo_v ; fprintf ( stderr , "Superblock<S2SV_blank>cont...
<S2SV_ModStart> stderr , "inode<S2SV_blank>contents:\\nStoredFields:\\n" ) ; fprintf ( stderr , "<S2SV_blank><S2SV_blank><S2SV_blank>mode:<S2SV_blank>%x\\n" , printInfo_i -> mode
11,930
CWE-000 void commsPedalAdcCallback ( ) { <S2SV_StartBug> commsPedalAdc = getPedalValue ( ) ; <S2SV_EndBug> <S2SV_StartBug> } <S2SV_EndBug>
<S2SV_ModStart> ( ) { uint16_t pedalVal <S2SV_ModEnd> = getPedalValue ( <S2SV_ModStart> ( ) ; commsPedalAdc [ 0 ] = ( pedalVal >> 8 ) & 0xFF ; commsPedalAdc [ 1 ] = pedalVal & 0xFF ;
11,931
CWE-000 int server4_lease_cbk ( call_frame_t * frame , void * cookie , xlator_t * this , int32_t op_ret , int32_t op_errno , struct gf_lease * lease , dict_t * xdata ) { gfx_lease_rsp rsp = { 0 , } ; rpcsvc_request_t * req = NULL ; server_state_t * state = NULL ; dict_to_xdr ( xdata , & rsp . xdata ) ; if ( op_ret ) { ...
<S2SV_ModStart> ) ) ; <S2SV_ModEnd> } server4_post_lease ( <S2SV_ModStart> lease ) ; <S2SV_ModEnd> rsp . op_ret
11,932
CWE-000 static void http_server_send_response ( struct client_t * client , const struct http_response_t * response ) { const char * origin = "Access-Control-Allow-Origin:<S2SV_blank>*\\n" ; char buffer [ 1024 ] ; int len = snprintf ( buffer , sizeof ( buffer ) , "HTTP/1.1<S2SV_blank>%s\\n" , http_server_get_message_tex...
<S2SV_ModStart> len ) ; if ( http_socket_write_all <S2SV_ModEnd> ( client -> <S2SV_ModStart> ) content_length ) < 0 ) { client -> terminate = true ; return ; } <S2SV_ModEnd> } else {
11,933
CWE-000 int fifo_q_push ( fifo_queue * q , void * obj ) { <S2SV_StartBug> fifo_node * node ; <S2SV_EndBug> if ( q == NULL || obj == NULL ) { return - 1 ; } <S2SV_StartBug> node = ( fifo_node * ) xmalloc ( sizeof ( fifo_node ) ) ; <S2SV_EndBug> node -> object = obj ; if ( q -> size < 1 ) { q -> head = node ; node -> pre...
<S2SV_ModStart> obj ) { fifo_q_node <S2SV_ModEnd> * node ; <S2SV_ModStart> node = ( fifo_q_node <S2SV_ModEnd> * ) xmalloc <S2SV_ModStart> ( sizeof ( fifo_q_node <S2SV_ModEnd> ) ) ;
11,934
CWE-000 int main ( int argc , char * argv [ ] ) { Output output_files ; output_files . log = stderr ; if ( argc == 1 ) output_exit ( & output_files , "Usage<S2SV_blank>is<S2SV_blank>%s<S2SV_blank>input\\n" , argv [ 0 ] ) ; signal ( SIGTERM , gbl_terminate ) ; signal ( SIGABRT , gbl_terminate ) ; signal ( SIGINT , gbl_t...
<S2SV_ModStart> & syst , "last.mgl" ) ; } } syst . do_ensemble ( & syst , & output_files ) ; } output_save ( & output_files , & syst , curr_step , <S2SV_ModStart> configuration_last ) ; if ( output_files . save_also_as_mgl ) { output_save_to_mgl ( & output_files , & syst , "last.mgl" ) ; } <S2SV_ModEnd> E = (
11,935
CWE-000 static uint64_t bcm2835_sdhost_read ( void * opaque , hwaddr offset , unsigned size ) { BCM2835SDHostState * s = ( BCM2835SDHostState * ) opaque ; uint32_t res = 0 ; switch ( offset ) { case SDCMD : res = s -> cmd ; break ; case SDHSTS : res = s -> status ; break ; case SDRSP0 : res = s -> rsp [ 0 ] ; break ; c...
<S2SV_ModStart> break ; } trace_bcm2835_sdhost_read ( offset , res , size ) ;
11,936
CWE-000 void R_DrawColumn ( void ) { int count = dc_yh - dc_yl + 1 ; byte * dest = topleft0 + dc_yl * SCREENWIDTH + dc_x ; <S2SV_StartBug> fixed_t frac = dc_texturefrac + SPARKLEFIX ; <S2SV_EndBug> <S2SV_StartBug> const fixed_t fracstep = dc_iscale - SPARKLEFIX ; <S2SV_EndBug> const byte * source = dc_source ; const li...
<S2SV_ModStart> frac = dc_texturefrac <S2SV_ModEnd> ; const fixed_t <S2SV_ModStart> fracstep = dc_iscale <S2SV_ModEnd> ; const byte
11,937
CWE-000 static long msm_core_ioctl ( struct file * file , unsigned int cmd , unsigned long arg ) { long ret = 0 ; struct cpu_activity_info * node = NULL ; struct sched_params __user * argp = ( struct sched_params __user * ) arg ; int i , cpu = num_possible_cpus ( ) ; int mpidr , cluster , cpumask ; if ( ! argp ) return...
<S2SV_ModStart> ( ret ) goto unlock <S2SV_ModEnd> ; for (
11,938
CWE-000 void page_default ( char * protocol , char * method , http_response * response , char * path , char * last_modified ) { char protocol_allocate [ DIM_SHORT ] ; strcpy ( protocol_allocate , protocol ) ; char * header = strcat ( protocol_allocate , "<S2SV_blank>200<S2SV_blank>OK\\r" ) ; strcpy ( response -> Header...
<S2SV_ModStart> [ ] = "Server:<S2SV_blank>AGA<S2SV_blank>server\\r" <S2SV_ModEnd> ; strcpy (
11,939
CWE-000 static atm_uint_t atm_task_load ( ) { atm_uint_t i = 0 ; atm_task_worker_t * worker ; atm_uint_t ts = 0 ; <S2SV_StartBug> atm_uint_t ws = 0 ; <S2SV_EndBug> for ( i = 0 ; i < workers -> length ; ++ i ) { worker = ( atm_task_worker_t * ) atm_arr_get ( workers , i ) ; if ( worker != NULL ) { if ( worker -> status ...
<S2SV_ModStart> ws = 0 ; pthread_mutex_lock ( & worker_lock ) <S2SV_ModStart> } } } pthread_mutex_unlock ( & worker_lock ) ;
11,940
CWE-000 NTSTATUS can_delete_directory_fsp ( files_struct * fsp ) { NTSTATUS status = NT_STATUS_OK ; long dirpos = 0 ; const char * dname = NULL ; const char * dirname = fsp -> fsp_name -> base_name ; char * talloced = NULL ; SMB_STRUCT_STAT st ; struct connection_struct * conn = fsp -> conn ; <S2SV_StartBug> struct smb...
<S2SV_ModStart> * dir_hnd = OpenDir <S2SV_ModEnd> ( talloc_tos ( <S2SV_ModStart> conn , fsp -> fsp_name
11,941
CWE-000 static int get_new_sb ( struct f2fs_super_block * sb ) { u_int32_t zone_size_bytes , zone_align_start_offset ; u_int32_t blocks_for_sit , blocks_for_nat , blocks_for_ssa ; u_int32_t sit_segments , nat_segments , diff , total_meta_segments ; u_int32_t total_valid_blks_available ; u_int32_t sit_bitmap_size , max_...
<S2SV_ModStart> . start_sector * DEFAULT_SECTOR_SIZE <S2SV_ModEnd> + 2 * <S2SV_ModStart> . start_sector * DEFAULT_SECTOR_SIZE <S2SV_ModEnd> ; set_sb (
11,942
CWE-000 <S2SV_StartBug> void decryptSaveStructures ( <S2SV_EndBug> pSaveBlock1 SaveBlock1 , pSaveBlock2 SaveBlock2 , pSaveBlock3 SaveBlock3 ) { if ( GAME_RS ) { return ; } u8 * sb1raw = ( u8 * ) SaveBlock1 ; u8 * sb2raw = ( u8 * ) SaveBlock2 ; u32 * xor_key_ptr = ( u32 * ) ( & sb2raw [ ( GAME_EM ? 0xA8 : 0xF20 ) ] ) ; ...
<S2SV_ModStart> <S2SV_null> <S2SV_null> <S2SV_null> static
11,943
CWE-000 void x11_get_auth_from_authfile ( struct X11Display * disp , const char * authfilename ) { FILE * authfp ; char * buf ; int size ; BinarySource src [ 1 ] ; int family , protocol ; ptrlen addr , protoname , data ; char * displaynum_string ; int displaynum ; int ideal_match = FALSE ; char * ourhostname ; <S2SV_St...
<S2SV_ModStart> size_t MAX_RECORD_SIZE = 2 + 4 * ( 2 + 0xFFFF ) ; const size_t <S2SV_ModEnd> BUF_SIZE = 2
11,944
CWE-000 <S2SV_StartBug> static PHP_METHOD ( Phalcon_Db_Dialect_Mysql , viewExists ) { <S2SV_EndBug> zval * viewName_param = NULL , * schemaName_param = NULL ; zval viewName , schemaName ; <S2SV_StartBug> zval * this_ptr = getThis ( ) ; <S2SV_EndBug> ZVAL_UNDEF ( & viewName ) ; ZVAL_UNDEF ( & schemaName ) ; ZEPHIR_MM_GR...
<S2SV_ModStart> static PHP_METHOD ( Phalcon_Db_Adapter , getDescriptor ) { RETURN_MEMBER ( <S2SV_ModEnd> getThis ( ) <S2SV_ModStart> getThis ( ) , "_descriptor" <S2SV_ModEnd> ) ; }
11,945
CWE-000 static int dump_one_netlink_fd ( int lfd , u32 id , const struct fd_parms * p ) { struct netlink_sk_desc * sk ; NetlinkSkEntry ne = NETLINK_SK_ENTRY__INIT ; SkOptsEntry skopts = SK_OPTS_ENTRY__INIT ; sk = ( struct netlink_sk_desc * ) lookup_socket ( p -> stat . st_ino , PF_NETLINK , 0 ) ; if ( IS_ERR ( sk ) ) g...
<S2SV_ModStart> ] ) ; # ifdef __ORDER_BIG_ENDIAN__ if ( ne . n_groups == 2 ) { uint32_t tmp = sk -> groups [ 1 ] ; sk -> groups [ 1 ] = sk -> groups [ 0 ] ; sk -> groups [ 0 ] = tmp ; } # endif
11,946
CWE-000 static void brw_get_perf_query_data ( struct gl_context * ctx , struct gl_perf_query_object * o , GLsizei data_size , GLuint * data , GLuint * bytes_written ) { struct brw_context * brw = brw_context ( ctx ) ; struct brw_perf_query_object * obj = brw_perf_query ( o ) ; int written = 0 ; assert ( brw_is_perf_que...
<S2SV_ModStart> case OA_COUNTERS : case OA_COUNTERS_RAW : if ( ! obj -> oa . results_accumulated ) { read_gt_frequency ( brw , obj ) ; read_slice_unslice_frequencies ( brw , obj ) ; accumulate_oa_reports ( brw , obj ) ; assert ( obj -> oa . results_accumulated ) ; brw_bo_unmap ( obj -> oa . bo ) ; obj -> oa . map = NUL...
11,947
CWE-000 void projection_t ( ) { if ( camera == 0 ) { camera = malloc ( sizeof ( ST_Gameobject ) ) ; memset ( camera , 0 , sizeof ( ST_Gameobject ) ) ; camera_cus = malloc ( sizeof ( ST_CUS_CAMERA ) ) ; memset ( camera_cus , 0 , sizeof ( ST_CUS_CAMERA ) ) ; camera -> custom = camera_cus ; camera_cus -> near_distance = 1...
<S2SV_ModStart> 10000.0f ; } PrintAll ( "beforeHomo" <S2SV_ModEnd> ) ; float <S2SV_ModStart> old ) ; PrintAll ( "afterHomo" <S2SV_ModEnd> ) ; }
11,948
CWE-000 static bfd_boolean _bfd_mn10300_elf_size_dynamic_sections ( bfd * output_bfd , struct bfd_link_info * info ) { struct elf32_mn10300_link_hash_table * htab = elf32_mn10300_hash_table ( info ) ; bfd * dynobj ; asection * s ; bfd_boolean plt ; bfd_boolean relocs ; bfd_boolean reltext ; dynobj = htab -> root . dyno...
<S2SV_ModStart> ( info ) && ! info -> nointerp
11,949
CWE-000 static void mad_init_c ( void ) { struct variable * var ; int ione = 1 ; setvbuf ( stdout , 0 , _IONBF , 0 ) ; init55 ( 123456789 ) ; if ( watch_flag == 1 ) debug_file = fopen ( "madx.debug" , "w" ) ; else if ( watch_flag == 2 ) debug_file = stdout ; if ( stamp_flag == 1 ) stamp_file = fopen ( "madx.stamp" , "w...
<S2SV_ModStart> AUX_LG ) ; <S2SV_ModEnd> variable_list = new_var_list
11,950
CWE-000 static void __tc_set_alarm ( struct timer_chain * tchain , struct alarm_waiter * waiter ) { assert ( waiter -> wake_up_time != ALARM_POISON_TIME ) ; assert ( ! waiter -> on_tchain ) ; <S2SV_StartBug> spin_pdr_lock ( & tchain -> lock ) ; <S2SV_EndBug> <S2SV_StartBug> if ( waiter -> no_rearm ) { <S2SV_EndBug> spi...
<S2SV_ModStart> & tchain -> cv . <S2SV_ModStart> lock ) ; <S2SV_ModEnd> if ( __insert_awaiter <S2SV_ModStart> & tchain -> cv .
11,951
CWE-000 struct mlx5_flow_namespace * mlx5_get_flow_namespace ( struct mlx5_core_dev * dev , enum mlx5_flow_namespace_type type ) { struct mlx5_flow_steering * steering = dev -> priv . steering ; struct mlx5_flow_root_namespace * root_ns ; int prio ; struct fs_prio * fs_prio ; struct mlx5_flow_namespace * ns ; if ( ! st...
<S2SV_ModStart> NULL ; case <S2SV_ModEnd> MLX5_FLOW_NAMESPACE_SNIFFER_RX : if
11,952
CWE-000 int mmcSPI_blockErase ( MmcSPI self , uint32_t start , uint32_t end ) { int ret = - 1 ; uint32_t i ; static const uint8_t zeroBlock [ MMC_SPI_BLOCKSIZE ] = { 0 } ; if ( NULL != self -> storage && start <= end && end < self -> nsectors ) { for ( i = start ; i <= end ; i ++ ) { if ( fwrite ( zeroBlock , self -> b...
<S2SV_ModStart> ; } } fflush ( self -> storage ) ; rewind ( self -> storage ) ;
11,953
CWE-000 void messagebus_watchgroup_watch ( messagebus_watcher_t * watcher , messagebus_watchgroup_t * group , messagebus_topic_t * topic ) { messagebus_lock_acquire ( topic -> lock ) ; messagebus_lock_acquire ( group -> lock ) ; watcher -> group = group ; <S2SV_StartBug> if ( topic -> watchers != NULL ) { <S2SV_EndBug>...
<S2SV_ModStart> = group ; <S2SV_ModEnd> watcher -> next <S2SV_ModStart> -> watchers ; <S2SV_ModEnd> topic -> watchers
11,954
CWE-000 static void check_configuration ( void ) { char model [ 512 ] ; pagesize = getpagesize ( ) ; if ( getuid ( ) != 0 ) { fprintf ( stderr , "%s:<S2SV_blank>must<S2SV_blank>be<S2SV_blank>root<S2SV_blank>to<S2SV_blank>run<S2SV_blank>error<S2SV_blank>injection<S2SV_blank>tests\\n" , progname ) ; exit ( 1 ) ; } if ( a...
<S2SV_ModStart> ; if ( <S2SV_ModEnd> strstr ( model
11,955
CWE-000 int single_file_processor ( const char * filename , const struct stat * st ) { struct file_header hdr ; int fd ; mode_t mode = st -> st_mode ; hdr . namelen = strlen ( filename ) + 1 ; hdr . mode = mode ; hdr . atime = st -> st_atim . tv_sec ; hdr . atime_nsec = st -> st_atim . tv_nsec ; hdr . mtime = st -> st_...
<S2SV_ModStart> ; } } <S2SV_ModEnd> return 0 ;
11,956
CWE-000 static void read_input ( t_room * * rooms , t_link * * links , t_strlist * * ants_comments , int * ants ) { * rooms = NULL ; * links = NULL ; * ants_comments = NULL ; * ants = read_ants ( ants_comments ) ; <S2SV_StartBug> read_graph ( rooms , links ) ; <S2SV_EndBug> }
<S2SV_ModStart> ants_comments ) ; if ( * ants > 0 )
11,957
CWE-000 void mergeSortNodes ( char * category ) { if ( head == NULL || head -> next == NULL ) { return ; } movieNode * next = head -> next -> next ; <S2SV_StartBug> movieInfo * * mergedData = mergeNodeData ( head -> data , head -> next -> data , head -> arrLen , head -> next -> arrLen , category ) ; <S2SV_EndBug> movie...
<S2SV_ModStart> -> next ; int isInt = 0 ; <S2SV_ModStart> arrLen , category , isInt
11,958
CWE-000 void init_matrix ( glstate_t * glstate ) { DBG ( printf ( "init_matrix(%p)\\n" , glstate ) ; ) alloc_matrix ( & glstate -> projection_matrix , MAX_STACK_PROJECTION ) ; set_identity ( TOP ( projection_matrix ) ) ; glstate -> projection_matrix -> identity = 1 ; alloc_matrix ( & glstate -> modelview_matrix , MAX_S...
<S2SV_ModStart> MAX_TEX ) ; set_identity ( glstate -> mvp_matrix ) ; glstate -> mvp_matrix_dirty = 0 ;
11,959
CWE-000 void process_get_packet ( handler_input * input , send_data_sessions * send_data_sessions ) { udp_session * send_session = NULL ; char * requested_chunk_hash ; size_t chunk_idx ; ip_port_t * ip_port = input -> ip_port ; requested_chunk_hash = parse_get_packet ( input -> body_buf , input -> buf_len ) ; chunk_idx...
<S2SV_ModStart> , ip_port , input -> incoming_socket <S2SV_ModEnd> ) ; vec_add
11,960
CWE-000 int MPI_Unpack ( const void * inbuf , int insize , int * position , void * outbuf , int outcount , MPI_Datatype datatype , MPI_Comm comm ) { int rc = MPI_SUCCESS ; opal_convertor_t local_convertor ; struct iovec outvec ; unsigned int iov_count ; size_t size ; MEMCHECKER ( memchecker_datatype ( datatype ) ; memc...
<S2SV_ModStart> & local_convertor ) ; } else { rc = 1
11,961
CWE-000 void ECPGset_noind_null ( enum ECPGttype type , void * ptr ) { switch ( type ) { case ECPGt_char : case ECPGt_unsigned_char : case ECPGt_string : * ( ( char * ) ptr ) = '\\0' ; break ; case ECPGt_short : case ECPGt_unsigned_short : * ( ( short int * ) ptr ) = SHRT_MIN ; break ; case ECPGt_int : case ECPGt_unsig...
<S2SV_ModStart> -> sign = NUMERIC_NULL <S2SV_ModEnd> ; break ; <S2SV_ModStart> -> sign = NUMERIC_NULL <S2SV_ModEnd> ; break ;
11,962
CWE-000 static void writeBlock ( U32 * seed , frame_t * frame , size_t contentSize , int lastBlock ) { int const blockTypeDesc = RAND ( seed ) % 8 ; size_t blockSize ; int blockType ; BYTE * const header = ( BYTE * ) frame -> data ; BYTE * op = header + 3 ; DISPLAYLEVEL ( 3 , "<S2SV_blank>block:\\n" ) ; DISPLAYLEVEL ( ...
<S2SV_ModStart> ] = ( BYTE ) ( ( <S2SV_ModStart> ) & 0xff ) <S2SV_ModStart> + 1 , ( U16 ) ( <S2SV_ModStart> >> 5 ) )
11,963
CWE-000 <S2SV_StartBug> void InterruptsInitialize ( void ) <S2SV_EndBug> { <S2SV_StartBug> } <S2SV_EndBug>
<S2SV_ModStart> <S2SV_null> <S2SV_null> <S2SV_null> bool <S2SV_ModEnd> InterruptsInitialize ( void <S2SV_ModStart> void ) { u32 result = NRF_SUCCESS ; result |= sd_nvic_SetPriority ( SD_EVT_IRQn , NRF_APP_PRIORITY_LOW ) ; result |= sd_nvic_EnableIRQ ( SD_EVT_IRQn ) ; result |= sd_nvic_SetPriority ( RTC1_IRQn , NRF_APP_...
11,964
CWE-000 static int tagalong_steps_behind ( struct sk_buff_head * queue , struct sk_buff * previous , struct sock * meta_sk ) { struct sk_buff * send_head = tcp_send_head ( meta_sk ) ; struct sk_buff * send_tail = skb_peek_tail ( queue ) ; MPTCP_LOG ( "tagalong_steps_behind\\n" ) ; if ( skb_queue_empty ( queue ) ) { MPT...
<S2SV_ModStart> ) ; return 0 <S2SV_ModEnd> ; } MPTCP_LOG
11,965
CWE-000 void writeToDisplay ( int floatDigits [ ] ) { uint8_t value ; resetAllControlPins ( ) ; for ( int i = 0 ; i < 3 ; i ++ ) { value = pinMap [ floatDigits [ i ] ] ; if ( i == 0 ) { value = value + DECIMAL ; } <S2SV_StartBug> printf ( "%d\\n" , value ) ; <S2SV_EndBug> resetAllControlPins ( ) ; setSegmentPins ( valu...
<S2SV_ModStart> DECIMAL ; } <S2SV_ModEnd> resetAllControlPins ( )
11,966
CWE-000 static void delete_unbound_messages ( TrackerMinerRSS * miner ) { tracker_sparql_connection_update_async ( tracker_miner_get_connection ( TRACKER_MINER ( miner ) ) , <S2SV_StartBug> "DELETE<S2SV_blank>{<S2SV_blank>?msg<S2SV_blank>a<S2SV_blank>rdfs:Resource<S2SV_blank>}" <S2SV_EndBug> "WHERE<S2SV_blank><S2SV_bla...
<S2SV_ModStart> ) ) , "DELETE<S2SV_blank>{<S2SV_blank>?msg<S2SV_blank>a<S2SV_blank>rdfs:Resource." "<S2SV_blank><S2SV_blank><S2SV_blank><S2SV_blank><S2SV_blank><S2SV_blank><S2SV_blank><S2SV_blank><S2SV_blank>?encl<S2SV_blank>a<S2SV_blank>rdfs:Resource.<S2SV_blank>}" "WHERE<S2SV_blank><S2SV_blank>{<S2SV_blank>?msg<S2SV_...
11,967
CWE-000 static int tcp_fnat_out_handler ( struct dp_vs_proto * proto , struct dp_vs_conn * conn , struct rte_mbuf * mbuf ) { struct tcphdr * th ; struct route_entry * rt = mbuf -> userdata ; struct netif_port * dev = NULL ; int af = conn -> af ; <S2SV_StartBug> int iphdrlen = ( ( af == AF_INET6 ) ? ip6_hdrlen ( mbuf ) ...
<S2SV_ModStart> = ( ( AF_INET6 == af <S2SV_ModEnd> ) ? ip6_hdrlen <S2SV_ModStart> { if ( AF_INET6 == af <S2SV_ModEnd> ) { mbuf <S2SV_ModStart> -> l3_len = sizeof ( struct ip6_hdr ) <S2SV_ModEnd> ; mbuf -> <S2SV_ModStart> ; if ( AF_INET6 == af <S2SV_ModEnd> ) { tcp6_send_csum
11,968
CWE-000 static int btrfs_set_acl ( struct btrfs_trans_handle * trans , struct inode * inode , struct posix_acl * acl , int type ) { int ret , size = 0 ; const char * name ; char * value = NULL ; if ( acl ) { ret = posix_acl_valid ( acl ) ; if ( ret < 0 ) return ret ; ret = 0 ; } switch ( type ) { case ACL_TYPE_ACCESS :...
<S2SV_ModStart> { ret = posix_acl_update_mode ( inode <S2SV_ModEnd> , & inode <S2SV_ModStart> inode -> i_mode , & acl ) ; if ( ret <S2SV_ModEnd> ) return ret
11,969
CWE-000 ok_system * * ok_integrate_gsl ( ok_system * initial , const gsl_vector * times , ok_integrator_options * options , const gsl_odeiv2_step_type * solver , ok_system * * bag , int * error ) { assert ( initial -> xyz != NULL ) ; assert ( times != NULL ) ; assert ( solver != NULL ) ; const double startTime = initia...
<S2SV_ModStart> j ++ ) { bag [ j ] -> time = bag [ j ] -> epoch = bag [ i ] -> time ; gsl_matrix_set_all ( bag [ j ] -> xyz , INVALID_NUMBER ) ; gsl_matrix_set_all ( bag [ j ] -> orbits , INVALID_NUMBER ) ; } <S2SV_ModEnd> gsl_odeiv2_control_free ( control <S2SV_ModStart> ) ; return bag <S2SV_ModEnd> ; } else
11,970
CWE-000 void * fz_store_item ( fz_context * ctx , void * key , void * val_ , size_t itemsize , const fz_store_type * type ) { fz_item * item = NULL ; size_t size ; fz_storable * val = ( fz_storable * ) val_ ; fz_store * store = ctx -> store ; fz_store_hash hash = { NULL } ; int use_hash = 0 ; if ( ! store ) return NULL...
<S2SV_ModStart> > 0 ) { ( void ) Memento_takeRef ( existing -> val ) ; <S2SV_ModStart> refs ++ ; }
11,971
CWE-000 int main ( int argc , char * * argv ) { init_params ( argc , argv ) ; PlantSeeds ( SEED ) ; init_arrival ( ) ; init_output_stats ( ) ; for ( current_batch = 0 ; current_batch < batch_number ; current_batch ++ ) { batch_end = ( current_batch + 1 ) * batch_time ; while ( time . current < batch_end || ( current_ba...
<S2SV_ModStart> ( ) ; printf ( "mean<S2SV_blank>service<S2SV_blank>time:<S2SV_blank>%f<S2SV_blank>std:<S2SV_blank>%f\\n" , end_mean -> glb_service , end_std -> glb_service ) ; printf ( "mean<S2SV_blank>service<S2SV_blank>time<S2SV_blank>for<S2SV_blank>a<S2SV_blank>class<S2SV_blank>1<S2SV_blank>job:<S2SV_blank>%f<S2SV_b...
11,972
CWE-000 static void yin_print_typerestr ( struct lyout * out , int level , const char * elem_name , const struct lys_module * module , const struct lys_restr * restr ) { int content = 0 ; int pattern = 0 ; if ( restr -> expr [ 0 ] == 0x06 || restr -> expr [ 0 ] == 0x15 ) { pattern = 1 ; } yin_print_open ( out , level ,...
<S2SV_ModStart> content ) ; <S2SV_ModEnd> yin_print_restr ( out
11,973
CWE-000 static void settings_alpha_cb ( void * data , Evas_Object * obj , void * event_info EINA_UNUSED ) { Ecrire_Doc * doc = data ; ent_cfg -> alpha = elm_slider_value_get ( obj ) ; <S2SV_StartBug> ALPHA ( doc -> bg , ent_cfg -> alpha ) ; <S2SV_EndBug> ALPHA ( doc -> box_main , ent_cfg -> alpha ) ; ALPHA ( doc -> box...
<S2SV_ModStart> ( doc -> <S2SV_ModEnd> box_main , ent_cfg
11,974
CWE-000 static void loadKO ( MugenDefScript * tScript ) { Position basePosition ; basePosition = getMugenDefVectorOrDefault ( tScript , "Round" , "pos" , makePosition ( 0 , 0 , 0 ) ) ; <S2SV_StartBug> basePosition . z = 20 ; <S2SV_EndBug> assert ( loadSingleUIComponentWithFullComponentNameForStorageAndReturnIfLegit ( t...
<S2SV_ModStart> . z = UI_BASE_Z <S2SV_ModEnd> ; assert (
11,975
CWE-000 <S2SV_StartBug> SQLITE_API int SQLITE_STDCALL sqlite3_value_type ( sqlite3_value * pVal ) { <S2SV_EndBug> static const u8 aType [ ] = { SQLITE_BLOB , SQLITE_NULL , SQLITE_TEXT , SQLITE_NULL , SQLITE_INTEGER , SQLITE_NULL , SQLITE_INTEGER , SQLITE_NULL , SQLITE_FLOAT , SQLITE_NULL , SQLITE_FLOAT , SQLITE_NULL , ...
<S2SV_ModStart> <S2SV_null> SQLITE_API int <S2SV_ModEnd> sqlite3_value_type ( sqlite3_value
11,976
CWE-000 static int32_t prvWSC_CoreWrite ( S_WSC_SESSION_HANDLE * WSCHandler , uint8_t * Data , size_t Size , E_WSC_OPCODE OpCode , bool Fin ) { size_t WriteDataSize = 0 ; uint8_t * WriteData = NULL ; int32_t Ret = D_WSC_RET_OK ; uint32_t MaskKey = 0 ; do { Ret = prvWSC_FrameDataEncode ( WriteData , & WriteDataSize , Da...
<S2SV_ModStart> ; if ( <S2SV_ModEnd> WriteData ) {
11,977
CWE-000 static uint16_t user_rx_char ( ) { uint16_t out ; ATOMIC_BLOCK ( ATOMIC_RESTORESTATE ) { <S2SV_StartBug> if ( user_rx_head == user_tx_head ) <S2SV_EndBug> out = 0xffff ; else { out = user_rx_buf [ user_rx_tail ] ; if ( ++ user_rx_tail == sizeof ( user_rx_buf ) ) user_rx_tail = 0 ; } } return out ; }
<S2SV_ModStart> ( user_rx_head == user_rx_tail <S2SV_ModEnd> ) out =
11,978
CWE-000 static bool _copy_and_transform ( mongoc_crypt_t * crypt , bson_iter_t iter , bson_t * out , bson_error_t * error , transform_t transform ) { CRYPT_ENTRY ; while ( bson_iter_next ( & iter ) ) { if ( BSON_ITER_HOLDS_BINARY ( & iter ) ) { mongoc_crypt_binary_t value ; bson_t as_bson ; <S2SV_StartBug> mongoc_crypt...
<S2SV_ModStart> bson_t as_bson ; mongoc_crypt_binary_from_iter_unowned <S2SV_ModEnd> ( & iter <S2SV_ModStart> marking = { { 0 } } ; if ( ! _mongoc_crypt_marking_parse_unowned <S2SV_ModEnd> ( & as_bson <S2SV_ModStart> encrypted = { { 0 } } ; if ( ! _mongoc_crypt_encrypted_parse_unowned <S2SV_ModEnd> ( & as_bson
11,979
CWE-000 static void json_pay_getroute_reply ( struct subd * gossip , const u8 * reply , const int * fds , struct pay * pay ) { struct route_hop * route ; fromwire_gossip_getroute_reply ( reply , reply , NULL , & route ) ; if ( tal_count ( route ) == 0 ) { <S2SV_StartBug> command_fail ( pay -> cmd , "Could<S2SV_blank>no...
<S2SV_ModStart> 0 ) { command_fail_detailed <S2SV_ModEnd> ( pay -> <S2SV_ModStart> -> cmd , PAY_ROUTE_NOT_FOUND , NULL ,
11,980
CWE-000 int CeedBasisCreateTensorH1_Cuda ( CeedInt dim , CeedInt P1d , CeedInt Q1d , const CeedScalar * interp1d , const CeedScalar * grad1d , const CeedScalar * qref1d , const CeedScalar * qweight1d , CeedBasis basis ) { int ierr ; CeedBasis_Cuda * data ; ierr = CeedCalloc ( 1 , & data ) ; CeedChk ( ierr ) ; const Cee...
<S2SV_ModStart> ierr ) ; Ceed ceed ; ierr = CeedBasisGetCeed ( basis , & ceed ) ; CeedChk ( ierr ) ; ierr = CeedBasisSetData ( basis , ( void * ) & data ) ; CeedChk ( ierr ) ; ierr = CeedSetBackendFunction ( ceed , "Basis" , basis , "Apply" , CeedBasisApply_Cuda ) ; CeedChk ( ierr ) ; ierr = CeedSetBackendFunction ( ce...
11,981
CWE-000 static void try_nestloop_path ( PlannerInfo * root , RelOptInfo * joinrel , JoinType jointype , SpecialJoinInfo * sjinfo , SemiAntiJoinFactors * semifactors , Relids param_source_rels , <S2SV_StartBug> Relids extra_lateral_rels , <S2SV_EndBug> Path * outer_path , Path * inner_path , List * restrict_clauses , Li...
<S2SV_ModStart> Relids param_source_rels , <S2SV_ModEnd> Path * outer_path <S2SV_ModStart> ( required_outer , joinrel -> lateral_relids <S2SV_ModEnd> ) ; initial_cost_nestloop
11,982
CWE-000 static GstFlowReturn <S2SV_StartBug> gst_omx_video_dec_drain ( GstOMXVideoDec * self , gboolean is_eos ) <S2SV_EndBug> { GstOMXVideoDecClass * klass ; GstOMXBuffer * buf ; GstOMXAcquireBufferReturn acq_ret ; OMX_ERRORTYPE err ; GST_DEBUG_OBJECT ( self , "Draining<S2SV_blank>component" ) ; klass = GST_OMX_VIDEO_...
<S2SV_ModStart> GstOMXVideoDec * self <S2SV_ModEnd> ) { GstOMXVideoDecClass <S2SV_ModStart> started = FALSE <S2SV_ModEnd> ; if (
11,983
CWE-000 MOCK_IMPL ( int , check_private_dir , ( const char * dirname , cpd_check_t check , const char * effective_user ) ) { int r ; struct stat st ; tor_assert ( dirname ) ; # ifndef _WIN32 int fd ; const struct passwd * pw = NULL ; uid_t running_uid ; gid_t running_gid ; fd = open ( sandbox_intern_string ( dirname ) ...
<S2SV_ModStart> ) running_uid , pw_uid ? pw_uid <S2SV_ModEnd> -> pw_name :
11,984
CWE-000 __stdcall HRESULT AddRef ( void * this ) { <S2SV_StartBug> writeToFile ( "AddRef,<S2SV_blank>this<S2SV_blank>=<S2SV_blank>%p" ) ; <S2SV_EndBug> HRESULT r = AddRefOrig ( this ) ; writeToFile ( "AddRef,<S2SV_blank>r<S2SV_blank>=<S2SV_blank>%d" , r ) ; return r ; }
<S2SV_ModStart> writeToFile ( "AddRef,<S2SV_blank>this<S2SV_blank>=<S2SV_blank>%p" , this
11,985
CWE-000 static ALLEGRO_DISPLAY * sdl_create_display_locked ( int w , int h ) { ALLEGRO_DISPLAY_SDL * sdl = al_calloc ( 1 , sizeof * sdl ) ; ALLEGRO_DISPLAY * d = ( void * ) sdl ; d -> w = w ; d -> h = h ; d -> flags = al_get_new_display_flags ( ) ; d -> flags |= ALLEGRO_OPENGL ; # ifdef ALLEGRO_CFG_OPENGLES2 d -> flags...
<S2SV_ModStart> -> context = SDL_GL_GetCurrentContext ( <S2SV_ModEnd> ) ; ALLEGRO_DISPLAY
11,986
CWE-000 int main ( int argc , char * argv [ ] ) { ParsingContext * ctx = arith_get_ctx ( ) ; int error_index = perform_value_tests ( ctx ) ; if ( error_index != - 1 ) { printf ( F_RED "\\nError<S2SV_blank>in<S2SV_blank>value<S2SV_blank>test<S2SV_blank>%d:<S2SV_blank>\'%s\'" COL_RESET "\\n" , error_index , valueTests [ ...
<S2SV_ModStart> printf ( F_GREEN "passed<S2SV_blank>(%d)" <S2SV_ModEnd> COL_RESET "\\n" , <S2SV_ModStart> "\\n" , NUM_VALUE_TESTS + <S2SV_ModEnd> NUM_ERROR_TESTS ) ;
11,987
CWE-000 static void test_rtnl_neightbl ( const int fd ) { <S2SV_StartBug> void * const nlh0 = tail_alloc ( NLMSG_HDRLEN ) ; <S2SV_EndBug> static const struct ndtmsg msg = { . ndtm_family = AF_NETLINK <S2SV_StartBug> } ; <S2SV_EndBug> TEST_NETLINK ( fd , nlh0 , RTM_GETNEIGHTBL , NLM_F_REQUEST , sizeof ( msg ) , & msg , ...
<S2SV_ModStart> fd ) { <S2SV_ModEnd> static const struct <S2SV_ModStart> = AF_NETLINK } ; void * const nlh0 = midtail_alloc ( NLMSG_HDRLEN , sizeof ( msg ) )
11,988
CWE-000 void sequence_access ( char * filename , int n ) { <S2SV_StartBug> int file = open ( filename , O_RDONLY ) ; <S2SV_EndBug> if ( fcntl ( file , F_NOCACHE , 1 ) == - 1 ) printf ( "Disable<S2SV_blank>Cache<S2SV_blank>Failed.\\n" ) ; void * buffer = malloc ( BLOCK_SIZE ) ; int N = FILE_SIZE / BLOCK_SIZE ; unsigned ...
<S2SV_ModStart> filename , O_RDONLY <S2SV_ModEnd> ) ; void <S2SV_ModStart> for ( int j <S2SV_ModEnd> = 0 ; <S2SV_ModStart> = 0 ; j < N * 10 ; j <S2SV_ModEnd> ++ ) { <S2SV_ModStart> ; printf ( "%d<S2SV_blank>sequential=<S2SV_blank>%f<S2SV_blank>us\\n" <S2SV_ModEnd> , n ,
11,989
CWE-000 <S2SV_StartBug> struct snd_us16x08_meter_store * snd_us16x08_create_meter_store ( void ) <S2SV_EndBug> { struct snd_us16x08_meter_store * tmp = kzalloc ( sizeof ( struct snd_us16x08_meter_store ) , GFP_KERNEL ) ; if ( ! tmp ) return NULL ; tmp -> comp_index = 1 ; tmp -> comp_active_index = 0 ; return tmp ; }
<S2SV_ModStart> <S2SV_null> <S2SV_null> <S2SV_null> static
11,990
CWE-000 void http_400 ( struct conndata * conn ) { char buff [ DATLEN ] ; sprintf ( buff , "HTTP/1.1<S2SV_blank>400<S2SV_blank>BAD<S2SV_blank>REQUEST\\r\\n" ) ; sprintf ( buff , "%sServer:<S2SV_blank>Hideo\\r\\n\\r\\n" , buff ) ; sprintf ( buff , "%s<html><head><title>400<S2SV_blank>bad<S2SV_blank>request</title></head...
<S2SV_ModStart> ( ERR , srvlog <S2SV_ModEnd> , "HTTP/1.1<S2SV_blank>400<S2SV_blank>BAD<S2SV_blank>REQUEST\\r\\n" )
11,991
CWE-000 static int LruInsert ( File file ) { Vfd * vfdP ; Assert ( file != 0 ) ; DO_DB ( elog ( LOG , "LruInsert<S2SV_blank>%d<S2SV_blank>(%s)" , file , VfdCache [ file ] . fileName ) ) ; vfdP = & VfdCache [ file ] ; if ( FileIsNotOpen ( file ) ) { ReleaseLruFiles ( ) ; vfdP -> fd = BasicOpenFile ( vfdP -> fileName , v...
<S2SV_ModStart> ( LOG , "re-open<S2SV_blank>failed:<S2SV_blank>%m" <S2SV_ModEnd> ) ) ; <S2SV_ModStart> } else { <S2SV_ModEnd> ++ nfile ; <S2SV_ModStart> 0 ) { if ( <S2SV_ModEnd> lseek ( vfdP <S2SV_ModStart> , SEEK_SET ) < 0 ) { int save_errno = errno ; elog ( LOG , "could<S2SV_blank>not<S2SV_blank>seek<S2SV_blank>file<...
11,992
CWE-000 void opt_init ( ) { FILE * tfp = fopen ( tracefile , "r" ) ; char buff [ MAXLINE ] ; addr_t vaddr ; char type ; head = NULL ; current = NULL ; while ( fgets ( buff , MAXLINE , tfp ) != NULL ) { if ( buff [ 0 ] != '=' ) { sscanf ( buff , "%c<S2SV_blank>%lx" , & type , & vaddr ) ; node * new_node = malloc ( sizeo...
<S2SV_ModStart> memsize ) ; <S2SV_ModEnd> } <S2SV_null> <S2SV_null>
11,993
CWE-000 static int qcom_pcie_get_resources_2_1_0 ( struct qcom_pcie * pcie ) { struct qcom_pcie_resources_2_1_0 * res = & pcie -> res . v2_1_0 ; struct dw_pcie * pci = pcie -> pci ; struct device * dev = pci -> dev ; <S2SV_StartBug> res -> vdda = devm_regulator_get ( dev , "vdda" ) ; <S2SV_EndBug> if ( IS_ERR ( res -> ...
<S2SV_ModStart> -> dev ; int ret ; res -> supplies [ 0 ] . supply = "vdda" ; res -> supplies [ 1 ] . supply = "vdda_phy" ; res -> supplies [ 2 ] . supply = "vdda_refclk" ; ret = devm_regulator_bulk_get ( dev , ARRAY_SIZE ( res -> supplies ) , res -> supplies ) ; if ( ret ) return ret <S2SV_ModEnd> ; res ->
11,994
CWE-000 int parser_get_opt_param_double_array ( struct swift_params * params , const char * name , int nval , double * values ) { if ( get_param_double_array ( params , name , 0 , nval , values ) != 1 ) { save_param_double_array ( params , name , nval , values ) ; <S2SV_StartBug> return 0 ; <S2SV_EndBug> } return 1 ; }
<S2SV_ModStart> values ) ; params -> data [ params -> paramCount - 1 ] . is_default = 1 ;
11,995
CWE-000 void click_finished ( qk_tap_dance_state_t * state , void * user_data ) { <S2SV_StartBug> xtap_state . state = cur_dance ( state ) ; <S2SV_EndBug> <S2SV_StartBug> switch ( xtap_state . state ) { <S2SV_EndBug> case SINGLE_TAP : mousekey_on ( KC_BTN1 ) ; break ; case SINGLE_HOLD : mousekey_on ( KC_ACL0 ) ; mousek...
<S2SV_ModStart> user_data ) { xtap_click_state <S2SV_ModEnd> . state = <S2SV_ModStart> ; switch ( xtap_click_state <S2SV_ModEnd> . state )
11,996
CWE-000 <S2SV_StartBug> bool iwl_trans_check_hw_rf_kill ( struct iwl_trans * trans ) <S2SV_EndBug> { struct iwl_trans_pcie * trans_pcie = IWL_TRANS_GET_PCIE_TRANS ( trans ) ; bool hw_rfkill = iwl_is_rfkill_set ( trans ) ; bool prev = test_bit ( STATUS_RFKILL_OPMODE , & trans -> status ) ; bool report ; if ( hw_rfkill )...
<S2SV_ModStart> <S2SV_null> <S2SV_null> <S2SV_null> static
11,997
CWE-000 void FileClient_Run ( FileClient client ) { int n ; LinkedListNode * node ; FileClientTask * task ; FileResponse response ; Connection conn = client -> connection ; LOG ( "[file<S2SV_blank>client]<S2SV_blank>work<S2SV_blank>started\\n" ) ; client -> active = TRUE ; while ( client -> active ) { LCUIMutex_Lock ( ...
<S2SV_ModStart> data ) ; FileClientTask_Destroy ( task ) ; <S2SV_ModStart> "[file<S2SV_blank>client]<S2SV_blank>work<S2SV_blank>stopped\\n" ) ; LCUIThread_Exit ( NULL ) ;
11,998
CWE-000 void all_work_units_done ( t_dispatcher * dispatcher ) { save_output ( dispatcher , dispatcher -> name ) ; clear_work_units ( & dispatcher -> workunits ) ; dispatcher -> workunits_done = 0 ; <S2SV_StartBug> divide_dataset ( dispatcher -> worker_cnt , dispatcher -> dataset , & dispatcher -> workunits ) ; <S2SV_E...
<S2SV_ModStart> divide_dataset ( dispatcher <S2SV_ModEnd> ) ; broadcast_worker_msg
11,999
CWE-000 static void <S2SV_StartBug> maint_set_ada_cmd ( char * args , int from_tty ) <S2SV_EndBug> { help_list ( maint_set_ada_cmdlist , "maintenance<S2SV_blank>set<S2SV_blank>ada<S2SV_blank>" , all_commands , gdb_stdout ) ; }
<S2SV_ModStart> void maint_set_ada_cmd ( const