Unnamed: 0
int64
0
535k
source
stringlengths
50
89.8k
target
stringlengths
23
37.7k
5,300
CWE-000 static int loopback_open ( struct snd_pcm_substream * substream ) { struct snd_pcm_runtime * runtime = substream -> runtime ; struct loopback * loopback = substream -> private_data ; struct loopback_pcm * dpcm ; <S2SV_StartBug> struct loopback_cable * cable ; <S2SV_EndBug> int err = 0 ; int dev = get_cable_inde...
<S2SV_ModStart> loopback_cable * cable = NULL <S2SV_ModStart> cable ) { <S2SV_ModEnd> err = - <S2SV_ModStart> , rule_format , dpcm <S2SV_ModEnd> , SNDRV_PCM_HW_PARAM_FORMAT , <S2SV_ModStart> , rule_rate , dpcm <S2SV_ModEnd> , SNDRV_PCM_HW_PARAM_RATE , <S2SV_ModStart> , rule_channels , dpcm <S2SV_ModEnd> , SNDRV_PCM_HW_...
5,301
CWE-000 static void rText ( float x , float y , float scaleX , float scaleY , bool baseline , const char * text ) { setTextColor ( 0xffffffff ) ; char out [ 100 ] ; char sub [ 100 ] ; memset ( out , '\\0' , sizeof ( out ) ) ; strncpy ( out , text , sizeof ( out ) ) ; float height ; float width ; int i = 0 ; while ( str...
<S2SV_ModStart> 0xff000000 ) ; else if ( out [ position - 1 ] == 'j' ) setTextColor ( 0xff008275 ) ;
5,302
CWE-000 void z_clock_set_timeout ( s32_t ticks , bool idle ) { if ( IS_ENABLED ( CONFIG_TICKLESS_IDLE ) && idle && ticks == K_FOREVER ) { SysTick -> CTRL &= ~ SysTick_CTRL_ENABLE_Msk ; last_load = TIMER_STOPPED ; return ; } <S2SV_StartBug> # ifdef CONFIG_TICKLESS_KERNEL <S2SV_EndBug> u32_t delay ; ticks = min ( MAX_TIC...
<S2SV_ModStart> ; } # if defined ( CONFIG_TICKLESS_KERNEL ) && ! defined ( CONFIG_QEMU_TICKLESS_WORKAROUND ) <S2SV_ModEnd> u32_t delay ;
5,303
CWE-000 static int l2tp_ip6_recvmsg ( struct kiocb * iocb , struct sock * sk , struct msghdr * msg , size_t len , int noblock , int flags , int * addr_len ) { struct ipv6_pinfo * np = inet6_sk ( sk ) ; struct sockaddr_l2tpip6 * lsa = ( struct sockaddr_l2tpip6 * ) msg -> msg_name ; size_t copied = 0 ; int err = - EOPNOT...
<S2SV_ModStart> msg , len ,
5,304
CWE-000 void zend_shared_alloc_shutdown ( void ) { zend_shared_segment * * tmp_shared_segments ; <S2SV_StartBug> size_t shared_segments_array_size ; <S2SV_EndBug> zend_smm_shared_globals tmp_shared_globals ; int i ; tmp_shared_globals = * smm_shared_globals ; smm_shared_globals = & tmp_shared_globals ; shared_segments_...
<S2SV_ModStart> * tmp_shared_segments ; zend_shared_segment * shared_segments_buf [ 16 ] ; <S2SV_ModStart> ) ) ; if ( shared_segments_array_size > 16 ) { tmp_shared_segments = malloc ( shared_segments_array_size ) ; } else { tmp_shared_segments = shared_segments_buf ; } <S2SV_ModEnd> copy_shared_segments ( tmp_shared_s...
5,305
CWE-000 int ibv_cmd_alloc_pd ( struct ibv_context * context , struct ibv_pd * pd , struct ibv_alloc_pd * cmd , size_t cmd_size , <S2SV_StartBug> struct ibv_alloc_pd_resp * resp , size_t resp_size ) <S2SV_EndBug> { IBV_INIT_CMD_RESP ( cmd , cmd_size , ALLOC_PD , resp , resp_size ) ; if ( write ( context -> cmd_fd , cmd ...
<S2SV_ModStart> cmd_size , struct ib_uverbs_alloc_pd_resp <S2SV_ModEnd> * resp ,
5,306
CWE-000 static int sdcardfs_rename ( struct inode * old_dir , struct dentry * old_dentry , struct inode * new_dir , struct dentry * new_dentry ) { int err = 0 ; struct dentry * lower_old_dentry = NULL ; struct dentry * lower_new_dentry = NULL ; struct dentry * lower_old_dir_dentry = NULL ; struct dentry * lower_new_dir...
<S2SV_ModStart> NULL ; struct <S2SV_ModEnd> path lower_old_path , <S2SV_ModStart> ) , saved_cred , SDCARDFS_I ( new_dir ) <S2SV_ModStart> old_dentry , new_dentry -> d_name . name <S2SV_ModStart> d_inode ) ; fixup_lower_ownership ( old_dentry , new_dentry -> d_name . name ) ; drop_recursive <S2SV_ModEnd> ( old_dentry )
5,307
CWE-000 void printRoom ( Room * room ) { printf ( "CURRENT<S2SV_blank>LOCATION:<S2SV_blank>%s\\n" , room -> name ) ; printf ( "POSSIBLE<S2SV_blank>CONNECTIONS:<S2SV_blank>" ) ; <S2SV_StartBug> for ( int i = 0 ; i < room -> connection_count ; i ++ ) { <S2SV_EndBug> printf ( "%s" , ( room -> connections [ i ] ) -> name )...
<S2SV_ModStart> "POSSIBLE<S2SV_blank>CONNECTIONS:<S2SV_blank>" ) ; int i = 0 ; for ( <S2SV_ModEnd> i = 0
5,308
CWE-000 static int config_delete_multivar ( git_config_backend * cfg , const char * name , const char * regexp ) { diskfile_backend * b = ( diskfile_backend * ) cfg ; refcounted_strmap * map ; git_strmap * values ; char * key ; regex_t preg ; int result ; khiter_t pos ; if ( ( result = git_config__normalize_name ( name...
<S2SV_ModStart> ; result = p_regcomp <S2SV_ModEnd> ( & preg
5,309
CWE-000 int authorizeConnection ( SOCKET sock ) { char recvbuf [ FTP_DEFAULT_BUFLEN ] ; int iResult = recv ( sock , recvbuf , sizeof ( recvbuf ) , 0 ) ; if ( iResult < 0 ) { hlogf ( "Error<S2SV_blank>receiving<S2SV_blank>welcome<S2SV_blank>message.\\n" ) ; return - 2 ; } recvbuf [ iResult ] = 0 ; printf ( "\\n%s\\n" , ...
<S2SV_ModStart> ( recvbuf ) , 1 <S2SV_ModStart> 3 ; } <S2SV_ModEnd> if ( (
5,310
CWE-000 int rdma_resolve_ip ( struct sockaddr * src_addr , const struct sockaddr * dst_addr , struct rdma_dev_addr * addr , int timeout_ms , void ( * callback ) ( int status , struct sockaddr * src_addr , <S2SV_StartBug> struct rdma_dev_addr * addr , void * context ) , <S2SV_EndBug> void * context ) { struct sockaddr *...
<S2SV_ModStart> * context ) , bool resolve_by_gid_attr <S2SV_ModStart> = context ; req -> resolve_by_gid_attr = resolve_by_gid_attr ; <S2SV_ModStart> addr , true , req -> resolve_by_gid_attr
5,311
CWE-000 GreyPacket * GreyList_next ( GreyPacket * packet ) { void * next = packet -> next ; if ( next == GREYLIST_LAST ) { return NULL ; <S2SV_StartBug> } else { <S2SV_EndBug> return ( GreyPacket * ) next ; } }
<S2SV_ModStart> ; } else if ( next == NULL ) { return packet + 1 ; } else
5,312
CWE-000 static void emit_rs_state ( struct anv_pipeline * pipeline , const VkPipelineRasterizationStateCreateInfo * rs_info , const VkPipelineMultisampleStateCreateInfo * ms_info , const struct anv_render_pass * pass , const struct anv_subpass * subpass ) { struct GENX ( 3DSTATE_SF ) sf = { GENX ( 3DSTATE_SF_header ) ,...
<S2SV_ModStart> = 1 ; const struct brw_vue_prog_data * last_vue_prog_data = anv_pipeline_get_last_vue_prog_data ( pipeline ) ; if ( last_vue_prog_data -> vue_map . slots_valid & VARYING_BIT_PSIZ ) { <S2SV_ModStart> = Vertex ; } else { sf . PointWidthSource = State ; <S2SV_ModStart> = 1.0 ; }
5,313
CWE-000 void initializeSensors ( ) { <S2SV_StartBug> uint8_t autoIncrementRegister [ 1 ] = { 0x12 } ; <S2SV_EndBug> uint8_t autoIncrement = 0x04 ; int incrementSuccess = i2cWrite ( accelAddress , autoIncrementRegister , 1 , autoIncrement , AUTO_INCREMENT_ENABLED ) ; if ( incrementSuccess != 0 ) { printf ( "Failed<S2SV_...
<S2SV_ModStart> ( ) { if ( _sensorsAvailable == 1 ) { return ; } <S2SV_ModStart> ) ; } getBarometerParameters ( ) ;
5,314
CWE-000 void ds_init ( DynamicString * input ) { input -> capacity = DEFAULT_LENGTH ; <S2SV_StartBug> input -> data = malloc ( DEFAULT_LENGTH ) ; <S2SV_EndBug> input -> size = 0 ; }
<S2SV_ModStart> -> data = NULL ; input -> data =
5,315
CWE-000 int main ( int argc , char * argv [ ] ) { int sock ; struct sockaddr_in echoServAddr ; struct sockaddr_in fromAddr ; unsigned short echoServPort ; unsigned int fromSize ; char * servIP ; char * echoString ; char echoBuffer [ ECHOMAX + 1 ] ; int echoStringLen ; int respStringLen ; if ( ( argc < 3 ) || ( argc > 4...
<S2SV_ModStart> echoString ) ; echoStringLen = strlen ( echoString ) ;
5,316
CWE-000 int main ( ) { int type ; double op2 ; char s [ MAXOP ] ; char active_var ; int i = 0 ; for ( i ; i < MEM_LEN ; i ++ ) mem [ i ] = 0.0 ; <S2SV_StartBug> while ( getline ( s ) > 0 ) <S2SV_EndBug> { switch ( type ) { case NUMBER : push ( atof ( s ) ) ; break ; case MATH_FUNC : push ( runfunction ( s ) ) ; break ;...
<S2SV_ModStart> ( getline ( <S2SV_ModEnd> ) > 0
5,317
CWE-000 void remove_color ( Colors * colors , color_t c ) { color_t i ; if ( c < 0 || c >= COLOR_COUNT || c == colors -> def || colors -> n == 0 ) { return ; } colors -> turn [ c ] = colors -> turn [ colors -> def ] = TURN_NONE ; if ( colors -> n -- == 1 ) { colors -> first = colors -> last = COLOR_NONE ; colors -> nex...
<S2SV_ModStart> < COLOR_COUNT ; i ++ <S2SV_ModEnd> ) { if
5,318
CWE-000 static void draw_cursor ( uint x , uint y , uint c ) { uint i ; for ( i = x ; i < x + FNT_W - 2 ; i ++ ) { <S2SV_StartBug> set_cursor_pixel ( i , j , c ) ; <S2SV_EndBug> } return ; }
<S2SV_ModStart> ( i , y <S2SV_ModEnd> , c )
5,319
CWE-000 void read_lifepo_current_batch ( lifepo_current_batch batch ) { <S2SV_StartBug> configure_adc ( & adc_instance , P_AI_LFB1SNS ) ; <S2SV_EndBug> <S2SV_StartBug> batch [ 0 ] = read_adc ( adc_instance ) ; <S2SV_EndBug> <S2SV_StartBug> configure_adc ( & adc_instance , P_AI_LFB1OSNS ) ; <S2SV_EndBug> <S2SV_StartBug>...
<S2SV_ModStart> batch ) { struct adc_module adc_instance1 ; struct adc_module adc_instance2 ; struct adc_module adc_instance3 ; struct adc_module adc_instance4 ; <S2SV_ModStart> configure_adc ( & adc_instance1 <S2SV_ModEnd> , P_AI_LFB1SNS ) <S2SV_ModStart> = read_adc ( adc_instance1 <S2SV_ModEnd> ) ; configure_adc <S2S...
5,320
CWE-000 void cdate_str ( t_cdate * cdate ) { char str0 [ 64 ] ; <S2SV_StartBug> char str1 [ 64 ] ; <S2SV_EndBug> printf ( normal ) ; memset ( str0 , '\\0' , sizeof ( str0 ) ) ; memset ( str1 , '\\0' , sizeof ( str1 ) ) ; strftime ( str0 , sizeof ( str0 ) , cdate_fmt0 , cdate -> tm ) ; strftime ( str1 , sizeof ( str1 ) ...
<S2SV_ModStart> [ 64 ] <S2SV_ModEnd> ; memset ( <S2SV_ModStart> ; printf ( normal <S2SV_ModEnd> ) ; printf <S2SV_ModStart> str1 ) ; printf ( RESET ) ;
5,321
CWE-000 int comdb2_shard_table_constraints ( Parse * pParser , const char * zName , const char * zDatabase , Expr * * pWhere ) { GET_CLNT ; struct dbtable * db ; int idx = clnt -> conns_idx ; Expr * pExprLeft , * pExprRight , * pExpr ; struct Table * pTab ; if ( ! clnt -> conns ) { return SHARD_NOERR ; } db = get_dbtab...
<S2SV_ModStart> , 0 ) <S2SV_ModEnd> ) ; pExprLeft <S2SV_ModStart> -> pLeft -> y . <S2SV_ModStart> , 0 ) <S2SV_ModEnd> ) ; pExprRight <S2SV_ModStart> -> pLeft -> y . <S2SV_ModStart> -> pLeft -> y . <S2SV_ModStart> -> pLeft -> y . <S2SV_ModStart> -> pLeft -> y . <S2SV_ModStart> pExprLeft , pExprRight <S2SV_ModEnd> ) ; } ...
5,322
CWE-000 int main ( int argc , char * * argv ) { int i , N ; _cleanup_globfree_ glob_t g = { } ; char * * fnames ; log_parse_environment ( ) ; if ( argc >= 2 ) { N = argc - 1 ; fnames = argv + 1 ; } else { <S2SV_StartBug> assert_se ( glob ( TEST_DIR "/test-resolve/*.pkts" , GLOB_NOSORT , NULL , & g ) == 0 ) ; <S2SV_EndB...
<S2SV_ModStart> ( glob ( TEST_DATA_DIR ( "/test-resolve/*.pkts" ) <S2SV_ModEnd> , GLOB_NOSORT ,
5,323
CWE-000 static void config_tab_behavior ( GtkWidget * notebook ) { GtkWidget * hbox ; GtkWidget * vbox ; GtkWidget * group ; GtkWidget * button ; GtkWidget * tabcomp ; GtkWidget * ct_button ; GtkWidget * spin ; <S2SV_StartBug> vbox = scrolled_notebook_page ( notebook , _ ( "Behavior" ) ) ; <S2SV_EndBug> group = pref_gr...
<S2SV_ModStart> * spin ; GtkWidget * table ; <S2SV_ModStart> image_lm_click_nav ) ; pref_checkbox_new_int ( group , _ ( "Play<S2SV_blank>video<S2SV_blank>by<S2SV_blank>left<S2SV_blank>click<S2SV_blank>on<S2SV_blank>image" ) , options -> image_l_click_video , & c_options -> image_l_click_video ) ; table = pref_table_new...
5,324
CWE-000 ngx_int_t ngx_http_vhost_traffic_status_node_time_queue_push ( ngx_http_vhost_traffic_status_node_time_queue_t * q , ngx_msec_int_t x ) { if ( ( q -> rear + 1 ) % q -> len == q -> front ) { return NGX_ERROR ; } <S2SV_StartBug> q -> times [ q -> rear ] . time = ngx_current_msec ; <S2SV_EndBug> q -> times [ q -> ...
<S2SV_ModStart> . time = ngx_http_vhost_traffic_status_current_msec ( ) <S2SV_ModEnd> ; q ->
5,325
CWE-000 static uint8_t _event_loop_scrsvr_on_timeout ( struct Txcb * pxcb , struct Teventstate * peventstate ) { <S2SV_StartBug> if ( ! operation_handler ( OPERATION_GETBRIGHTNESS , pxcb , 0 , & peventstate -> brn_old_perc , & peventstate -> brn_cur_perc ) ) { <S2SV_EndBug> ERROR ( "Error:<S2SV_blank>Failed<S2SV_blank>...
<S2SV_ModStart> & peventstate -> brn_priorscrsvr_perc <S2SV_ModEnd> , & peventstate <S2SV_ModStart> & peventstate -> brn_old_perc , & peventstate -> brn_cur_perc ) ) { ERROR ( "Error:<S2SV_blank>Failed<S2SV_blank>to<S2SV_blank>decrease<S2SV_blank>brightness<S2SV_blank>on<S2SV_blank>screensaver<S2SV_blank>timeout.<S2SV_...
5,326
CWE-000 int RedisModule_OnLoad ( RedisModuleCtx * ctx , RedisModuleString * * argv , int argc ) { if ( RedisModule_Init ( ctx , "ft" , REDISEARCH_MODULE_VERSION , REDISMODULE_APIVER_1 ) == REDISMODULE_ERR ) return REDISMODULE_ERR ; Extensions_Init ( ) ; ConcurrentSearch_ThreadPoolStart ( ) ; if ( argc > 0 && RMUtil_Arg...
<S2SV_ModStart> ( ctx , <S2SV_ModEnd> TRIE_DEL_CMD , SuggestDelCommand
5,327
CWE-000 int scanner ( ) { char tokn [ 9 ] = "" ; int tokenIndex = 0 ; int state = 0 ; char tmp [ 2 ] ; int column ; while ( state >= 0 && state < 1000 ) { state = FATable [ state ] [ column = filter ( ) ] ; <S2SV_StartBug> ch = getc ( fin ) ; <S2SV_EndBug> if ( state >= 0 && state < 1000 ) { if ( ! checkIfWhitespace ( ...
<S2SV_ModStart> getc ( fin ) ; printf ( "Character(c)<S2SV_blank>processed<S2SV_blank>by<S2SV_blank>filter:<S2SV_blank>%c\\n" , ch ) ; printf ( "Character(d)<S2SV_blank>processed<S2SV_blank>by<S2SV_blank>filter:<S2SV_blank>%d\\n" , ch <S2SV_ModStart> ) ) { printf ( "This<S2SV_blank>should<S2SV_blank>be<S2SV_blank>a<S2S...
5,328
CWE-000 Runtime * getRuntimeOfThread ( Instance * jthread ) { Runtime * r = NULL ; <S2SV_StartBug> thread_lock ( & threadlist_lock ) ; <S2SV_EndBug> s32 i ; for ( i = 0 ; i < thread_list -> length ; i ++ ) { Runtime * rt = arraylist_get_value ( thread_list , i ) ; if ( rt -> threadInfo -> jthread == jthread ) r = rt ; ...
<S2SV_ModStart> = NULL ; garbage_thread_lock ( <S2SV_ModEnd> ) ; s32 <S2SV_ModStart> rt ; } garbage_thread_unlock ( <S2SV_ModEnd> ) ; return
5,329
CWE-000 static int aac_get_container_name ( struct scsi_cmnd * scsicmd ) { int status ; struct aac_get_name * dinfo ; struct fib * cmd_fibcontext ; struct aac_dev * dev ; dev = ( struct aac_dev * ) scsicmd -> device -> host -> hostdata ; cmd_fibcontext = aac_fib_alloc_tag ( dev , scsicmd ) ; aac_fib_init ( cmd_fibconte...
<S2SV_ModStart> cmd_fibcontext ) ; scsicmd -> SCp . phase = AAC_OWNER_FIRMWARE ; <S2SV_ModStart> - EINPROGRESS ) <S2SV_ModEnd> return 0 ; <S2SV_ModStart> return 0 ; <S2SV_ModEnd> printk ( KERN_WARNING
5,330
CWE-000 __attribute__ ( ( nonnull ( 1 , 2 ) , nothrow ) ) void ez_pstat_ngram ( <S2SV_StartBug> pstat_ngram_t * restrict s , <S2SV_EndBug> unigram_t const vals [ ] , size_t nval , size_t n ) { <S2SV_StartBug> size_t vi , vj ; <S2SV_EndBug> init_pstat_ngram ( s ) ; for ( vi = 0 ; vi != nval - n ; vi += n ) { update_psta...
<S2SV_ModStart> void ez_pstat_ngram ( pstat_t * restrict stat <S2SV_ModEnd> , unigram_t const <S2SV_ModStart> vi , vj ; pstat_ngram_t s ; s . stat = stat
5,331
CWE-000 int pf_ll_octal ( long long num , char * flags , int mod ) { char space_type ; int p ; int num_length ; num_length = get_num_length ( num , OCTAL ) ; p = ( ft_strrchr ( flags , '#' ) ) ? 1 : 0 ; p = ( num == 0 ) ? 0 : p ; space_type = get_space_type ( flags ) ; if ( num < 0 ) <S2SV_StartBug> num_length = ( size...
<S2SV_ModStart> ) / 3 + 1
5,332
CWE-000 SEXP R_custom_data_access ( SEXP R_adios_data , SEXP R_adios_selection , SEXP R_adios_var_info ) { void * adios_data ; adios_data = R_ExternalPtrAddr ( R_adios_data ) ; ADIOS_SELECTION * adios_selection ; adios_selection = R_ExternalPtrAddr ( R_adios_selection ) ; ADIOS_VARINFO * adios_var_info ; adios_var_info...
<S2SV_ModStart> ) ) ; double <S2SV_ModEnd> * data =
5,333
CWE-000 bool ring_buffer_peek ( ring_buffer_t * rb , void * data , ring_buffer_size_t index ) { if ( ! ring_buffer_is_empty ( rb ) && ring_buffer_num_items ( rb ) > index ) { <S2SV_StartBug> const ring_buffer_size_t offset = ( rb -> tail + index & ( rb -> num_elem - 1 ) ) * rb -> size_elem ; <S2SV_EndBug> memcpy ( data...
<S2SV_ModStart> ) { const uint16_t <S2SV_ModEnd> offset = (
5,334
CWE-000 static int gps_bind ( struct usb_configuration * c , struct usb_function * f ) { struct f_gps * dev = func_to_gps ( f ) ; struct usb_ep * ep ; struct usb_composite_dev * cdev = c -> cdev ; int ret = - ENODEV ; dev -> ifc_id = usb_interface_id ( c , f ) ; if ( dev -> ifc_id < 0 ) { pr_err ( "%s:<S2SV_blank>unabl...
<S2SV_ModStart> "full" ) ; INIT_DELAYED_WORK ( & dev -> wakeup_work , gps_remote_wakeup_work ) ;
5,335
CWE-000 void function_call_expression ( linked_list * * tokens , expression * * output ) { unsigned int num_args ; unsigned int i ; unsigned int parentheses_count ; unsigned int braces_count ; linked_list * temp_tokens ; expression * * args ; token current_token ; temp_tokens = * tokens ; current_token = * ( ( token * ...
<S2SV_ModStart> CLOSE_PARENTHESES || parentheses_count || braces_count <S2SV_ModStart> ) ; } if ( num_args == 0 ) { * tokens = ( * tokens ) -> next ; }
5,336
CWE-000 int lua_git_blame_buffer ( lua_State * L ) { luagit2_blame * lua_blame ; const luagit2_blame * reference = ( luagit2_blame * ) lua_touserdata ( L , 1 ) ; const char * buffer = luaL_checkstring ( L , 2 ) ; size_t buffer_len = luaL_checkinteger ( L , 3 ) ; lua_blame = ( luagit2_blame * ) lua_newuserdata ( L , siz...
<S2SV_ModStart> = local_blame ; <S2SV_ModEnd> return 1 ;
5,337
CWE-000 static void usb_bam_work ( struct work_struct * w ) { int i ; struct usb_bam_event_info * event_info = container_of ( w , struct usb_bam_event_info , event_w ) ; struct usb_bam_pipe_connect * pipe_connect = container_of ( event_info , struct usb_bam_pipe_connect , event ) ; struct usb_bam_pipe_connect * pipe_it...
<S2SV_ModStart> { pr_debug ( "%s:<S2SV_blank>Register<S2SV_blank>wakeup<S2SV_blank>on<S2SV_blank>pipe<S2SV_blank>%pK\\n" <S2SV_ModEnd> , __func__ ,
5,338
CWE-000 static void lift_neutralize_callback ( GtkWidget * button , gpointer user_data ) { dt_iop_module_t * self = ( dt_iop_module_t * ) user_data ; if ( self -> dt -> gui -> reset ) return ; if ( self -> off ) gtk_toggle_button_set_active ( GTK_TOGGLE_BUTTON ( self -> off ) , 1 ) ; if ( self -> request_color_pick == ...
<S2SV_ModStart> # ifdef OPTIM <S2SV_ModEnd> for ( int <S2SV_ModStart> ++ c ) g <S2SV_ModEnd> -> color_patches_lift [ <S2SV_ModStart> c ] ; g <S2SV_ModEnd> -> color_patches_flags [
5,339
CWE-000 int _DkSendHandle ( PAL_HANDLE hdl , PAL_HANDLE cargo ) { struct hdl_header hdl_hdr ; void * hdl_data ; int ret = handle_serialize ( cargo , & hdl_data ) ; if ( ret < 0 ) <S2SV_StartBug> return ret ; <S2SV_EndBug> hdl_hdr . data_size = ret ; int fds [ MAX_FDS ] ; int nfds = 0 ; for ( int i = 0 ; i < MAX_FDS ; i...
<S2SV_ModStart> ) return ret ; hdl_hdr . fds = 0
5,340
CWE-000 static int fwu_read_f34_v7_queries ( void ) { int retval ; unsigned char ii ; unsigned char base ; unsigned char index ; unsigned char offset ; unsigned char * ptable ; struct f34_v7_query_0 query_0 ; struct f34_v7_query_1_7 query_1_7 ; struct synaptics_rmi4_data * rmi4_data = fwu -> rmi4_data ; base = fwu -> f...
<S2SV_ModStart> retval ; } if ( <S2SV_ModStart> ( ptable , fwu -> partition_table_bytes , <S2SV_ModStart> -> phyaddr ) ) { kfree ( ptable ) ; return - EINVAL ; } <S2SV_ModEnd> if ( fwu
5,341
CWE-000 static gboolean panel_add_device ( CcNetworkPanel * panel , NMDevice * device ) { GtkListStore * liststore_devices ; GtkTreeIter iter ; NMDeviceType type ; NetDevice * net_device ; CcNetworkPanelPrivate * priv = panel -> priv ; GtkNotebook * notebook ; GtkSizeGroup * size_group ; GType device_g_type ; const cha...
<S2SV_ModStart> TRUE ) , <S2SV_ModEnd> PANEL_DEVICES_COLUMN_OBJECT , net_device
5,342
CWE-000 gboolean cfg_process_flag ( CfgFlagHandler * handlers , gpointer base , const gchar * flag_ ) { gint h ; gchar flag [ 32 ] ; for ( h = 0 ; flag_ [ h ] && h < sizeof ( flag ) ; h ++ ) { if ( flag_ [ h ] == '_' ) flag [ h ] = '-' ; else flag [ h ] = flag_ [ h ] ; } flag [ h ] = 0 ; for ( h = 0 ; handlers [ h ] . ...
<S2SV_ModStart> return TRUE ; default : g_assert_not_reached ( ) ; break ;
5,343
CWE-000 static bool spapr_drc_needed ( void * opaque ) { sPAPRDRConnector * drc = ( sPAPRDRConnector * ) opaque ; sPAPRDRConnectorClass * drck = SPAPR_DR_CONNECTOR_GET_CLASS ( drc ) ; bool rc = false ; sPAPRDREntitySense value ; drck -> entity_sense ( drc , & value ) ; if ( value != SPAPR_DR_ENTITY_SENSE_PRESENT ) { re...
<S2SV_ModStart> case SPAPR_DR_CONNECTOR_TYPE_PCI : case SPAPR_DR_CONNECTOR_TYPE_CPU : case SPAPR_DR_CONNECTOR_TYPE_LMB : <S2SV_ModStart> break ; case <S2SV_ModEnd> SPAPR_DR_CONNECTOR_TYPE_PHB : case <S2SV_ModStart> : default : g_assert_not_reached ( <S2SV_ModEnd> ) ; }
5,344
CWE-000 void sim_model ( double * envar , double * par , int * finalT , int * control , double * result , int * success ) { param = par ; double * controlpar = 0 ; if ( ( * control ) ) { controlpar = param + NumPar ; } double * mean_air_temp = envar + 0 * ( * finalT ) ; ; double * daily_humidity = envar + 1 * ( * final...
<S2SV_ModStart> ; if ( CHECK ( nvE ) || CHECK ( nvL ) || CHECK ( nvP ) || CHECK ( nvA ) || CHECK ( nvAcap <S2SV_ModEnd> ) ) {
5,345
CWE-000 EXT_ID find_ext_id_head ( SYMBOL s , EXT_ID head ) { EXT_ID ep ; FOREACH_EXT_ID ( ep , head ) { <S2SV_StartBug> if ( strcmp ( SYM_NAME ( EXT_SYM ( ep ) ) , SYM_NAME ( s ) ) == 0 ) <S2SV_EndBug> return ep ; } return NULL ; }
<S2SV_ModStart> { if ( EXT_SYM ( ep ) &&
5,346
CWE-000 int GetNPartFrames ( partdata * parti ) { FILE * stream ; char buffer [ 256 ] ; float time_local ; char * reg_file , * size_file ; int i ; int doit = 0 ; int stat_sizefile , stat_regfile ; STRUCTSTAT stat_sizefile_buffer , stat_regfile_buffer ; int nframes_all ; reg_file = parti -> reg_file ; size_file = parti ...
<S2SV_ModStart> if ( doit == <S2SV_ModEnd> 1 || stat_sizefile
5,347
CWE-000 <S2SV_StartBug> static void continue1 ( WIDNOW * win ) <S2SV_EndBug> { mvwaddstr ( win , 10 , 1 , "<S2SV_blank>Press<S2SV_blank>any<S2SV_blank>key<S2SV_blank>to<S2SV_blank>continue" ) ; wrefresh ( win ) ; raw ( ) ; wgetch ( win ) ; }
<S2SV_ModStart> void continue1 ( WINDOW <S2SV_ModEnd> * win )
5,348
CWE-000 G_DEFINE_TYPE ( GepubArchive , gepub_archive , G_TYPE_OBJECT ) static gboolean gepub_archive_open ( GepubArchive * archive ) { <S2SV_StartBug> archive -> archive = archive_read_new ( ) ; <S2SV_EndBug> <S2SV_StartBug> archive_read_support_format_zip ( archive -> archive ) ; <S2SV_EndBug> int r ; r = archive_read...
<S2SV_ModStart> archive ) { int r ; <S2SV_ModStart> -> archive ) <S2SV_ModEnd> ; r =
5,349
CWE-000 <S2SV_StartBug> int Run ( PCB * pcb , ConfigFile * config , PCBQueueNode * runningHead , <S2SV_EndBug> char * timeStr , char * logBuffer ) { MetaDataNode * current = pcb -> current ; Boolean toBeSetReady = False ; char * outputString = NodeToString ( current ) ; char toPrint [ MAX_LINE_LENGTH ] ; int cyclesToRu...
<S2SV_ModStart> ConfigFile * config <S2SV_ModEnd> , char *
5,350
CWE-000 TEST ( check_by_absolute_path_is_performed_beforehand ) { char name_a [ ] = "a" ; <S2SV_StartBug> char name_b [ PATH_MAX ] ; <S2SV_EndBug> char * names [ ] = { name_a , name_b } ; snprintf ( name_b , sizeof ( name_b ) , "%s/b" , lwin . curr_dir ) ; create_empty_dir ( name_b ) ; ( void ) fops_mkdirs ( & lwin , -...
<S2SV_ModStart> name_b [ PATH_MAX + 8
5,351
CWE-000 static void put_matBSDF ( const char * XMLfile ) { const char * curdir = "./" ; if ( ! XMLfile ) { printf ( "\\n#<S2SV_blank>Simplified<S2SV_blank>material<S2SV_blank>because<S2SV_blank>we<S2SV_blank>have<S2SV_blank>no<S2SV_blank>XML<S2SV_blank>input\\n" ) ; printf ( "\\nvoid<S2SV_blank>brightfunc<S2SV_blank>la...
<S2SV_ModStart> ; printf ( "\\nvoid<S2SV_blank>BSDF<S2SV_blank>BSDFmat\\n6<S2SV_blank>0<S2SV_blank>\\"%s%s\\"<S2SV_blank>upx<S2SV_blank>upy<S2SV_blank>upz<S2SV_blank>bsdf2rad.cal\\n0\\n0\\n" <S2SV_ModEnd> , curdir ,
5,352
CWE-000 void imap_capability_list_unref ( struct imap_capability_list * * capability_list ) { i_assert ( ( * capability_list ) -> refcount > 0 ) ; <S2SV_StartBug> * capability_list = NULL ; <S2SV_EndBug> <S2SV_StartBug> if ( -- ( * capability_list ) -> refcount > 0 ) <S2SV_EndBug> return ; pool_unref ( & ( * capability...
<S2SV_ModStart> 0 ) ; <S2SV_ModEnd> if ( -- <S2SV_ModStart> > 0 ) { * capability_list = NULL ; return ; } <S2SV_ModEnd> pool_unref ( & <S2SV_ModStart> capability_list ) ; * capability_list = NULL ;
5,353
CWE-000 void ft_raycast ( t_e * e ) { int i ; t_ray ray ; t_p map ; i = - 1 ; while ( ++ i < e -> width ) { ray_init ( e , & ray , & map , i ) ; cast_a_ray ( e , & ray , & map ) ; if ( ray . side == 0 || ray . side == 2 ) ray . wall_d = ( map . x - ray . pos . x + ( 1 - ray . step . x ) / 2 ) / ray . dir . x ; else ray...
<S2SV_ModStart> e -> height <S2SV_ModEnd> / ray .
5,354
CWE-000 int detach_device ( struct RD_PROFILE * rd_prof , RC_PROFILE * rc_prof , unsigned char * string ) { int err = - 1 ; FILE * fp ; unsigned char * buf ; while ( rd_prof != NULL ) { if ( strcmp ( string , rd_prof -> device ) == SUCCESS ) err = 0 ; rd_prof = rd_prof -> next ; } if ( err != 0 ) { printf ( "Error.<S2S...
<S2SV_ModStart> ) ) == NULL <S2SV_ModEnd> ) { printf
5,355
CWE-000 static int file_lookup ( char * filename , struct stat * stbuf ) { struct entry * tmp ; char cpy [ 16 ] ; int i ; tmp = HEAD ; strcpy ( cpy , filename ) ; memmove ( cpy , cpy + 1 , strlen ( cpy ) ) ; printf ( "[+]<S2SV_blank>not<S2SV_blank>root<S2SV_blank>dir<S2SV_blank>filename:\\t%s\\n" , cpy ) ; for ( i = 0 ...
<S2SV_ModStart> -> st_size = tmp -> info . st_size <S2SV_ModEnd> ; } return
5,356
CWE-000 int app ( struct CONSOLE * console , int * fat , char * cmdline ) { struct MEMMAN * memman = ( struct MEMMAN * ) MEMMAN_ADDR ; struct FILEINFO * finfo ; struct SEGMENT_DESCRIPTOR * gdt = ( struct SEGMENT_DESCRIPTOR * ) ADR_GDT ; struct TASK * task = task_now ( ) ; struct SHTCTL * shtctl ; struct SHEET * sheet ;...
<S2SV_ModStart> ; } } timer_cancelall ( & task -> fifo ) ;
5,357
CWE-000 static int rkss_verify_ptable ( struct rk_secure_storage * rkss ) { void * vp = ( void * ) rkss -> data ; char * cp = ( char * ) vp ; struct rkss_file_verification * verify ; int ret ; if ( rkss -> index > RKSS_PARTITION_TABLE_COUNT ) { printf ( "cannot<S2SV_blank>support<S2SV_blank>verifing<S2SV_blank>other<S2...
<S2SV_ModStart> , 0 , RKSS_DATA_LEN <S2SV_ModEnd> ) ; verify
5,358
CWE-000 void xprt_release ( struct rpc_task * task ) { struct rpc_xprt * xprt ; struct rpc_rqst * req = task -> tk_rqstp ; if ( req == NULL ) { if ( task -> tk_client ) { xprt = task -> tk_xprt ; if ( xprt -> snd_task == task ) xprt_release_write ( xprt , task ) ; } return ; } xprt = req -> rq_xprt ; if ( task -> tk_op...
<S2SV_ModStart> ) ) ) xprt -> ops -> free_slot <S2SV_ModEnd> ( xprt ,
5,359
CWE-000 void COMvers ( int argc , const char * argv [ ] ) { ( void ) argc ; ( void ) argv ; <S2SV_StartBug> printf ( "%s<S2SV_blank>%.32s\\n" , PACKAGE_NAME , PACKAGE_VERSION ) ; <S2SV_EndBug> exit ( 0 ) ; }
<S2SV_ModStart> ; printf ( "%s<S2SV_blank>%s\\n" <S2SV_ModEnd> , PACKAGE_NAME ,
5,360
CWE-000 struct pq_align_res math_l2_postlist_coarse_score_v2 ( struct math_l2_postlist * po , uint32_t n_doc_lr_paths ) { struct pq_align_res widest = { 0 } ; int dw = ( int ) n_doc_lr_paths ; struct math_pruner * pruner = & po -> pruner ; float threshold = pruner -> init_threshold ; int pivot = MIN ( pruner -> postlis...
<S2SV_ModStart> ++ ) { uint64_t cur = postmerger_iter_call ( & po -> pm , po -> iter , cur , i ) ; <S2SV_ModStart> i > pivot && cur < candidate <S2SV_ModStart> i , candidate <S2SV_ModEnd> ) ; if
5,361
CWE-000 void init_func1 ( t_func1 * func ) { <S2SV_StartBug> func [ UP ] = & move_up ; <S2SV_EndBug> func [ DOWN ] = & move_down ; func [ LEFT ] = & move_left ; func [ RIGHT ] = & move_right ; <S2SV_StartBug> func [ DEL ] = & del_at ; <S2SV_EndBug> func [ HOME ] = & home ; func [ END ] = & end ; func [ FWORD ] = & fwor...
<S2SV_ModStart> { func [ <S2SV_ModEnd> RIGHT ] = <S2SV_ModStart> & move_right ; <S2SV_ModEnd> } <S2SV_null> <S2SV_null>
5,362
CWE-000 <S2SV_StartBug> static void grow_match_cases ( lily_emit_state * emit , int new_size ) <S2SV_EndBug> { while ( emit -> match_case_size < new_size ) emit -> match_case_size *= 2 ; emit -> match_cases = lily_realloc ( emit -> match_cases , sizeof ( * emit -> match_cases ) * emit -> match_case_size ) ; }
<S2SV_ModStart> lily_emit_state * emit ) { <S2SV_ModEnd> emit -> match_case_size
5,363
CWE-000 int iwl_mvm_send_rm_bcast_sta ( struct iwl_mvm * mvm , struct ieee80211_vif * vif ) { struct iwl_mvm_vif * mvmvif = iwl_mvm_vif_from_mac80211 ( vif ) ; int ret ; lockdep_assert_held ( & mvm -> mutex ) ; <S2SV_StartBug> ret = iwl_mvm_rm_sta_common ( mvm , mvmvif -> bcast_sta . sta_id ) ; <S2SV_EndBug> if ( ret )...
<S2SV_ModStart> mutex ) ; if ( iwl_mvm_is_dqa_supported ( mvm ) ) iwl_mvm_free_bcast_sta_queues ( mvm , vif ) ;
5,364
CWE-000 static BOOL setLayerValue ( BOOL bMachine , const char * valueName , const char * value ) { HKEY key = NULL ; LSTATUS lstatus = RegCreateKeyExA ( bMachine ? HKEY_LOCAL_MACHINE : HKEY_CURRENT_USER , "Software\\\\Microsoft\\\\Windows<S2SV_blank>NT\\\\CurrentVersion\\\\AppCompatFlags\\\\Layers" , 0 , NULL , 0 , Qu...
<S2SV_ModStart> ) value , ( DWORD )
5,365
CWE-000 <S2SV_StartBug> static _Bool dns_d_isanchored ( const void * _src , size_t len ) { <S2SV_EndBug> const unsigned char * src = _src ; return len > 0 && src [ len - 1 ] == '.' ; }
<S2SV_ModStart> <S2SV_null> <S2SV_null> static dns_bool <S2SV_ModEnd> dns_d_isanchored ( const
5,366
CWE-000 static int event_sequence_insert ( struct event_sequence * * event_sequences , int * n , PyObject * event ) { long template_id = get_template_id ( event ) ; struct event_sequence * event_sequence ; PyObject * * new_events ; int need_sort = 0 ; <S2SV_StartBug> if ( template_id < 0 ) <S2SV_EndBug> <S2SV_StartBug>...
<S2SV_ModStart> < 0 ) { Py_DECREF ( event ) ; <S2SV_ModStart> - 1 ; }
5,367
CWE-000 void init_smb2_1_server ( struct cifsd_tcp_conn * conn ) { conn -> vals = & smb21_server_values ; conn -> ops = & smb2_0_server_ops ; conn -> cmds = smb2_0_server_cmds ; conn -> max_cmds = ARRAY_SIZE ( smb2_0_server_cmds ) ; conn -> max_credits = SMB2_MAX_CREDITS ; <S2SV_StartBug> if ( lease_enable ) <S2SV_EndB...
<S2SV_ModStart> = SMB2_MAX_CREDITS ; conn -> srv_cap = SMB2_GLOBAL_CAP_LARGE_MTU ; <S2SV_ModStart> conn -> srv_cap |= SMB2_GLOBAL_CAP_LEASING <S2SV_ModEnd> ; } <S2SV_null>
5,368
CWE-000 int x264_encoder_invalidate_reference ( x264_t * h , int64_t pts ) { x264_api_t * api = ( x264_api_t * ) h ; <S2SV_StartBug> return api -> encoder_invalidate_reference ( api -> x264 , pts ) ; <S2SV_EndBug> }
<S2SV_ModStart> h ; return x264_stack_align ( <S2SV_ModStart> api -> encoder_invalidate_reference , <S2SV_ModEnd> api -> x264
5,369
CWE-000 static int IsLetterGroup ( Translator * tr , char * word , int group , int pre ) { char * p ; char * w ; int len = 0 ; p = tr -> letterGroups [ group ] ; if ( p == NULL ) <S2SV_StartBug> return 0 ; <S2SV_EndBug> while ( * p != RULE_GROUP_END ) { if ( pre ) { len = strlen ( p ) ; w = word - len + 1 ; } else w = ...
<S2SV_ModStart> NULL ) return - 1 <S2SV_ModEnd> ; while (
5,370
CWE-000 value_t fcnStrConcat ( value_t * args , value_t thisVal , environment_t * env ) { string_t * str = js_addr ( thisVal ) ; value_t val [ 1 ] ; <S2SV_StartBug> int idx ; <S2SV_EndBug> * val = newString ( str -> val , str -> len ) ; for ( idx = 0 ; idx < vec_cnt ( args ) ; idx ++ ) { value_t v = conv2Str ( args [ i...
<S2SV_ModStart> 1 ] ; uint32_t <S2SV_ModEnd> idx ; *
5,371
CWE-000 int nandmtd_EraseBlockInNAND ( struct yaffs_dev * dev , int blockNumber ) { struct mtd_info * mtd = ( struct mtd_info * ) ( dev -> driver_context ) ; __u32 addr = <S2SV_StartBug> ( ( loff_t ) blockNumber ) * dev -> data_bytes_per_chunk <S2SV_EndBug> * dev -> param . chunks_per_block ; struct erase_info ei ; int...
<S2SV_ModStart> * dev -> param . total_bytes_per_chunk <S2SV_ModEnd> * dev -> <S2SV_ModStart> = dev -> param . total_bytes_per_chunk <S2SV_ModEnd> * dev ->
5,372
CWE-000 <S2SV_StartBug> static int ip_identify_match_srv_lookup ( struct ip_identify_match * identify , const char * prefix , const char * host ) <S2SV_EndBug> { char service [ NI_MAXHOST ] ; struct srv_context * context = NULL ; int srv_ret ; const char * srvhost ; <S2SV_StartBug> unsigned short srvport ; <S2SV_EndBug...
<S2SV_ModStart> char * host , int results <S2SV_ModStart> unsigned short srvport <S2SV_ModEnd> ; snprintf (
5,373
CWE-000 mrb_callinfo * mrbjit_cipush ( mrb_state * mrb ) { struct mrb_context * c = mrb -> c ; mrb_callinfo * ci = c -> ci ; int ridx = ci -> ridx ; if ( ci + 1 == c -> ciend ) { ptrdiff_t size = ci - c -> cibase ; mrb_callinfo * sci ; mrb_callinfo * dci ; c -> cibase_org = ( mrb_callinfo * ) mrb_malloc ( mrb , sizeof ...
<S2SV_ModStart> 2 ; } c -> ci -> jit_entry = NULL ;
5,374
CWE-000 static ssize_t kdsstat_show ( struct device * dev , struct device_attribute * attr , char * buf ) { <S2SV_StartBug> int i ; <S2SV_EndBug> struct xocl_dev * xdev = dev_get_drvdata ( dev ) ; int size = sprintf ( buf , "xclbin:\\t\\t\\t%pUl\\noutstanding<S2SV_blank>execs:\\t%d\\ntotal<S2SV_blank>execs:\\t\\t%ld\\n...
<S2SV_ModStart> buf ) { <S2SV_ModEnd> struct xocl_dev *
5,375
CWE-000 ptr_int_t ksynch_wait ( mac_synch_t * synch , int mustbe , int timeout_ms ) { kern_return_t res ; if ( timeout_ms > 0 ) { mach_timespec_t timeout ; timeout . tv_sec = ( timeout_ms / 1000 ) ; timeout . tv_nsec = ( ( int64 ) timeout_ms % 1000 ) * 1000000 ; res = semaphore_timedwait ( synch -> sem , timeout ) ; } ...
<S2SV_ModStart> sem ) ; switch ( res ) { case KERN_SUCCESS : return 0 ; case KERN_OPERATION_TIMED_OUT : return - ETIMEDOUT ; default : return - 1 ; } } <S2SV_ModEnd> <S2SV_null> <S2SV_null> <S2SV_null>
5,376
CWE-000 rt_function_error_t free_exp_local_context ( rt_function_t * f ) { <S2SV_StartBug> rt_free_func ( f -> local_context ) ; <S2SV_EndBug> return RT_FUNCTION_ERROR_NOERROR ; }
<S2SV_ModStart> f ) { <S2SV_ModEnd> return RT_FUNCTION_ERROR_NOERROR ;
5,377
CWE-000 conn_t * conn_init ( int fd , int epfd ) { <S2SV_StartBug> pool_t * pool = pool_init ( ) ; <S2SV_EndBug> <S2SV_StartBug> conn_t * conn = malloc ( sizeof ( conn_t ) ) ; <S2SV_EndBug> conn -> pool = pool ; conn -> fd = fd ; conn -> epfd = epfd ; fd_set_non_blocking ( fd ) ; fd_set_no_delay ( fd ) ; <S2SV_StartBug...
<S2SV_ModStart> epfd ) { <S2SV_ModEnd> conn_t * conn <S2SV_ModStart> conn_t ) ) <S2SV_ModEnd> ; conn -> <S2SV_ModStart> = request_init ( <S2SV_ModEnd> ) ; return
5,378
CWE-000 static int anatop_regulator_probe ( struct platform_device * pdev ) { struct device * dev = & pdev -> dev ; struct device_node * np = dev -> of_node ; struct device_node * anatop_np ; struct regulator_desc * rdesc ; struct regulator_dev * rdev ; struct anatop_regulator * sreg ; struct regulator_init_data * init...
<S2SV_ModStart> ! sreg -> bypass && ! sreg ->
5,379
CWE-000 static void normalize_ts ( tsfix_t * tf , tfstream_t * tfs , th_pkt_t * pkt , int backlog ) { int64_t ref , dts , odts , opts , d ; if ( tf -> tf_tsref == PTS_UNSET ) { if ( backlog ) { if ( pkt -> pkt_dts != PTS_UNSET ) tfs -> tfs_seen = 1 ; pktref_enqueue ( & tf -> tf_backlog , pkt ) ; } else pkt_ref_dec ( pk...
<S2SV_ModStart> ; dts = pts_diff ( ref , pkt -> pkt_dts ) <S2SV_ModEnd> ; if (
5,380
CWE-000 <S2SV_StartBug> static inline ntPubMsg_p __pubMsg_New ( constr subj , int64_t timestamp , convoid data , int data_len ) <S2SV_EndBug> { int time_len = timestamp > - 1 ? 15 : 0 ; int subj_len = strlen ( subj ) + 1 ; int base_len = subj_len + time_len + data_len + 1 ; ntPubMsg_p _out = calloc ( 1 , sizeof ( * _ou...
<S2SV_ModStart> int64_t timestamp , conptr <S2SV_ModEnd> data , int
5,381
CWE-000 int sxpi_filtering_init ( void * log_ctx , struct filtering_ctx * ctx , AVThreadMessageQueue * in_queue , <S2SV_StartBug> AVThreadMessageQueue * out_queue , <S2SV_EndBug> const AVCodecContext * avctx , double media_rotation , const struct sxplayer_opts * o ) { int ret ; ctx -> log_ctx = log_ctx ; ctx -> in_queu...
<S2SV_ModStart> AVThreadMessageQueue * out_queue , const AVStream * stream <S2SV_ModStart> ; ctx -> st_timebase = stream -> time_base ; ctx -> <S2SV_ModStart> > 0 ? av_rescale_q ( <S2SV_ModStart> o -> trim_duration64 , AV_TIME_BASE_Q , ctx -> st_timebase )
5,382
CWE-000 void vytvor_soubor_z_pc ( int cilova_slozka , char * filename , char * pc_soubor ) { <S2SV_StartBug> int i , j , k , l , size , ret , potreba_clusteru , adresa , volne_uid , spoj_len , starter ; <S2SV_EndBug> FILE * fr , * fw ; <S2SV_StartBug> char * result , * obsah_z_pc ; <S2SV_EndBug> <S2SV_StartBug> char po...
<S2SV_ModStart> , j , <S2SV_ModEnd> l , size <S2SV_ModStart> , size , potreba_clusteru , <S2SV_ModEnd> volne_uid , spoj_len <S2SV_ModStart> fw ; char <S2SV_ModEnd> * obsah_z_pc ; <S2SV_ModStart> [ 20 ] ;
5,383
CWE-000 static int _remove_accounts ( slurmdbd_conn_t * slurmdbd_conn , persist_msg_t * msg , Buf * out_buffer , uint32_t * uid ) { int rc = SLURM_SUCCESS ; dbd_cond_msg_t * get_msg = msg -> data ; <S2SV_StartBug> dbd_list_msg_t list_msg ; <S2SV_EndBug> char * comment = NULL ; debug2 ( "DBD_REMOVE_ACCOUNTS:<S2SV_blank>...
<S2SV_ModStart> ; dbd_list_msg_t list_msg = { NULL }
5,384
CWE-000 static struct fq_flow * fq_classify ( struct sk_buff * skb , struct fq_sched_data * q ) { struct rb_node * * p , * parent ; struct sock * sk = skb -> sk ; struct rb_root * root ; struct fq_flow * f ; if ( unlikely ( ( skb -> priority & TC_PRIO_MAX ) == TC_PRIO_CONTROL ) ) return & q -> internal ; if ( ! sk || s...
<S2SV_ModStart> -> sk_hash ; if ( fq_flow_is_throttled ( f ) ) fq_flow_unset_throttled ( q , f ) ;
5,385
CWE-000 static void _parameter_string ( string * str , zend_function * fptr , struct _zend_arg_info * arg_info , uint32_t offset , uint32_t required , char * indent ) { string_printf ( str , "Parameter<S2SV_blank>#%d<S2SV_blank>[<S2SV_blank>" , offset ) ; if ( offset >= required ) { string_printf ( str , "<optional><S2...
<S2SV_ModStart> ) ) ; if ( UNEXPECTED ( <S2SV_ModStart> . scope ) == FAILURE ) ) { zval_ptr_dtor ( & zv ) ; return ; } <S2SV_ModEnd> if ( Z_TYPE
5,386
CWE-000 static int nc_uri ( ASN1_IA5STRING * uri , ASN1_IA5STRING * base ) { const char * baseptr = ( char * ) base -> data ; const char * hostptr = ( char * ) uri -> data ; const char * p = strchr ( hostptr , ':' ) ; int hostlen ; if ( ! p || ( p [ 1 ] != '/' ) || ( p [ 2 ] != '/' ) ) return X509_V_ERR_UNSUPPORTED_NAM...
<S2SV_ModStart> ; if ( ia5ncasecmp ( p , baseptr , base -> length ) == 0 <S2SV_ModEnd> ) return X509_V_OK <S2SV_ModStart> hostlen ) || ia5ncasecmp <S2SV_ModEnd> ( hostptr ,
5,387
CWE-000 static gboolean spice_usb_device_manager_initable_init ( GInitable * initable , GCancellable * cancellable , GError * * err ) { SpiceUsbDeviceManager * self = SPICE_USB_DEVICE_MANAGER ( initable ) ; SpiceUsbDeviceManagerPrivate * priv = self -> priv ; <S2SV_StartBug> g_print ( "spice_usb_device_manager_initable...
<S2SV_ModStart> ; g_print ( "spice_usb_device_manager_initable_init<S2SV_blank>%p<S2SV_blank>max_luns:%u\\n" <S2SV_ModEnd> , self ,
5,388
CWE-000 static void ui_init ( UIState * s ) { memset ( s , 0 , sizeof ( UIState ) ) ; pthread_mutex_init ( & s -> lock , NULL ) ; pthread_cond_init ( & s -> bg_cond , NULL ) ; s -> status = STATUS_DISENGAGED ; strcpy ( s -> car_model , "Tesla" ) ; strcpy ( s -> car_folder , "tesla" ) ; s -> label_last_modified = 0 ; s ...
<S2SV_ModStart> ; s -> img_logo = nvgCreateImage ( s -> vg , "../assets/img_spinner_comma.png" , 1 ) ; s ->
5,389
CWE-000 void kmsan_vmap ( struct vm_struct * area , struct page * * pages , unsigned int count , unsigned long flags , pgprot_t prot , void * caller ) { struct vm_struct * shadow , * origin ; struct page * * s_pages , * * o_pages ; unsigned long irq_flags , size ; int i ; if ( ! kmsan_ready || IN_RUNTIME ( ) ) return ;...
<S2SV_ModStart> { if ( ! pages [ i ] -> is_kmsan_tracked_page <S2SV_ModEnd> ) goto err_free
5,390
CWE-000 <S2SV_StartBug> QS_FUNC ( qsf_run ) <S2SV_EndBug> { qs_value_t * func_v = QS_ARGV ( 0 ) ; qs_list_t * l = malloc ( sizeof ( qs_list_t ) ) ; <S2SV_StartBug> l -> value_count = args - 1 ; <S2SV_EndBug> l -> values = arg + 1 ; qs_action_t * a = malloc ( sizeof ( qs_action_t ) ) ; memset ( a , 0 , sizeof ( qs_actio...
<S2SV_ModStart> <S2SV_null> QS_FUNC ( qsf_vars ) { qs_execute_t * e = qs_execute_get_block ( exe ) ; int i ; for ( i = 0 ; i < args ; i ++ ) qs_variable_new_execute ( e , QS_ARGS ( i <S2SV_ModEnd> ) ) ; <S2SV_ModStart> ) ) ; return QS_RETI ( args ) <S2SV_ModEnd> ; } <S2SV_null>
5,391
CWE-000 int main ( ) { igraph_t g , g2 ; igraph_bool_t iso ; igraph_lcf ( & g , 12 , 5 , - 5 , 6 , 0 ) ; igraph_famous ( & g2 , "franklin" ) ; igraph_isomorphic_vf2 ( & g , & g2 , 0 , 0 , 0 , 0 , & iso , 0 , 0 , 0 , 0 , 0 ) ; if ( ! iso ) { printf ( "Failure:<S2SV_blank>Franklin\\n" ) ; return 1 ; } igraph_destroy ( & ...
<S2SV_ModStart> g ) ; igraph_lcf ( & g , 0 ) ; if ( igraph_vcount ( & g ) != 0 || igraph_ecount ( & g ) != 0 ) { printf ( "Failure:<S2SV_blank>regression<S2SV_blank>test<S2SV_blank>for<S2SV_blank>#996\\n" ) ; return 1 ; } igraph_destroy ( & g ) ;
5,392
CWE-000 void ANIM_animdata_update ( bAnimContext * ac , ListBase * anim_data ) { bAnimListElem * ale ; if ( ELEM ( ac -> datatype , ANIMCONT_MASK ) ) { # ifdef DEBUG for ( ale = anim_data -> first ; ale ; ale = ale -> next ) { ale -> update = 0 ; } # endif return ; } for ( ale = anim_data -> first ; ale ; ale = ale -> ...
<S2SV_ModStart> ) ; } if ( ale -> update & ANIM_UPDATE_HANDLES ) { ale -> update &= ~ ANIM_UPDATE_HANDLES ; }
5,393
CWE-000 <S2SV_StartBug> __attribute__ ( ( leaf , warn_unused_result ) ) <S2SV_EndBug> size_t darr_resize_exact ( size_t inc , void * restrict unused ) { return inc ; }
<S2SV_ModStart> __attribute__ ( ( const ,
5,394
CWE-000 static void fileio_release_on_update_headers_con_cb ( gpointer client , gpointer ctx ) { HttpConnection * con = ( HttpConnection * ) client ; FileIO * fop = ( FileIO * ) ctx ; gchar * path ; gchar * cpy_path ; gboolean res ; unsigned char digest [ 16 ] ; gchar * md5str ; size_t i ; <S2SV_StartBug> LOG_debug ( F...
<S2SV_ModStart> ino ) , ( void * ) <S2SV_ModStart> ino ) , ( void * )
5,395
CWE-000 void buzz ( void ) { int max = 0 ; if ( lewa == 0 && srodek == 0 && prawa == 0 ) { TIM_Cmd ( TIM4 , DISABLE ) ; <S2SV_StartBug> GPIO_ResetBits ( GPIOA , GPIO_Pin_7 ) ; <S2SV_EndBug> } else TIM_Cmd ( TIM4 , ENABLE ) ; if ( lewa >= srodek && lewa >= prawa ) max = lewa ; if ( srodek >= lewa && srodek >= prawa ) ma...
<S2SV_ModStart> ; GPIO_ResetBits ( GPIOC , GPIO_Pin_1 <S2SV_ModEnd> ) ; }
5,396
CWE-000 static int nilfs_ioctl_change_cpmode ( struct inode * inode , struct file * filp , unsigned int cmd , void __user * argp ) { struct the_nilfs * nilfs = inode -> i_sb -> s_fs_info ; struct nilfs_transaction_info ti ; struct nilfs_cpmode cpmode ; int ret ; if ( ! capable ( CAP_SYS_ADMIN ) ) return - EPERM ; ret =...
<S2SV_ModStart> goto out ; mutex_lock ( & nilfs -> ns_snapshot_mount_mutex <S2SV_ModEnd> ) ; nilfs_transaction_begin <S2SV_ModStart> i_sb ) ; mutex_unlock ( & nilfs -> ns_snapshot_mount_mutex <S2SV_ModEnd> ) ; out
5,397
CWE-000 static int ade7758_ring_preenable ( struct iio_dev * indio_dev ) { <S2SV_StartBug> struct ade7758_state * st = iio_priv ( indio_dev ) ; <S2SV_EndBug> unsigned channel ; int ret ; if ( ! bitmap_empty ( indio_dev -> active_scan_mask , indio_dev -> masklength ) ) return - EINVAL ; ret = iio_sw_buffer_preenable ( i...
<S2SV_ModStart> indio_dev ) { <S2SV_ModEnd> unsigned channel ; <S2SV_ModStart> -> dev , indio_dev -> channels <S2SV_ModEnd> [ channel ]
5,398
CWE-000 bool ok_to_excute ( ) { int ret ; if ( if_state == WANT_THEN ) { ret = syn_error ( "then<S2SV_blank>expected!" ) ; } else if ( if_state == THEN_BLOCK && if_result == SUCCESS ) ret = 1 ; else if ( if_state == THEN_BLOCK && if_result == FAIL ) ret = 0 ; <S2SV_StartBug> } <S2SV_EndBug>
<S2SV_ModStart> = 0 ; else if ( if_state == NEUTRAL ) ret = 1 ; return ret == 1 ? true : false ;
5,399
CWE-000 esp_gatt_status_t esp_ble_gattc_unregister_for_notify ( esp_gatt_if_t gatt_if , esp_bd_addr_t server_bda , esp_gatt_srvc_id_t * srvc_id , esp_gatt_id_t * char_id ) { btc_msg_t msg ; btc_ble_gattc_args_t arg ; msg . sig = BTC_SIG_API_CALL ; msg . pid = BTC_PID_GATTC ; msg . act = BTC_GATTC_ACT_UNREG_FOR_NOTIFY ;...
<S2SV_ModStart> ; memcpy ( <S2SV_ModEnd> arg . unreg_for_notify <S2SV_ModStart> . remote_bda , <S2SV_ModEnd> server_bda , sizeof