Unnamed: 0 int64 0 535k | source stringlengths 50 89.8k | target stringlengths 23 37.7k |
|---|---|---|
7,700 | CWE-000 static void sun4i_lvds_encoder_enable ( struct drm_encoder * encoder ) { struct sun4i_lvds * lvds = drm_encoder_to_sun4i_lvds ( encoder ) ; struct sun4i_tcon * tcon = lvds -> tcon ; DRM_DEBUG_DRIVER ( "Enabling<S2SV_blank>LVDS<S2SV_blank>output\\n" ) ; <S2SV_StartBug> if ( ! IS_ERR ( tcon -> panel ) ) { <S2SV_E... | <S2SV_ModStart> ; if ( <S2SV_ModEnd> tcon -> panel <S2SV_ModStart> tcon -> panel <S2SV_ModEnd> ) { drm_panel_prepare |
7,701 | CWE-000 static enum status parse_world ( struct memfile * mf , struct base_file * file , int not_a_world ) { struct zip_archive * zp = zip_open_mem_read ( mf -> start , mf -> end - mf -> start ) ; char * buffer ; size_t actual_size ; struct memfile buf_file ; unsigned int file_id ; <S2SV_StartBug> int ret = ZIP_SUCCESS... | <S2SV_ModStart> int file_id ; enum status ret = SUCCESS <S2SV_ModEnd> ; if ( <S2SV_ModStart> case FPROP_ROBOT : case FPROP_WORLD_SFX : <S2SV_ModStart> ret = parse_robot_info ( & buf_file , file ) ; else if ( file_id == FPROP_WORLD_SFX ) ret = parse_sfx_file |
7,702 | CWE-000 static parser_state_t scanError ( REnv * re , FEnv * fe , int inp_stream ) { CACHE_REGS fe -> t = 0 ; if ( LOCAL_Error_TYPE == RESOURCE_ERROR_TRAIL ) { LOCAL_Error_TYPE = YAP_NO_ERROR ; if ( ! Yap_growtrail ( sizeof ( CELL ) * K16 , FALSE ) ) { return YAP_PARSING_FINISHED ; } } else if ( LOCAL_Error_TYPE == RES... | <S2SV_ModStart> } if ( LOCAL_Error_TYPE == SYNTAX_ERROR ) { return YAP_PARSING_ERROR ; } if ( |
7,703 | CWE-000 uint32_t FAudioVoice_SetOutputMatrix ( FAudioVoice * voice , FAudioVoice * pDestinationVoice , uint32_t SourceChannels , uint32_t DestinationChannels , const float * pLevelMatrix , uint32_t OperationSet ) { uint32_t i ; FAudio_assert ( OperationSet == FAUDIO_COMMIT_NOW ) ; if ( pDestinationVoice == NULL && voic... | <S2SV_ModStart> ( DestinationChannels == pDestinationVoice <S2SV_ModEnd> -> mix . |
7,704 | CWE-000 int atoi ( char * str ) { int ret ; int i ; ret = 0 ; i = 0 ; do { <S2SV_StartBug> ret = ( ret * 10 + str [ i ] - '\\0' ) ; <S2SV_EndBug> } while ( i ++ && str [ i ] ) ; return ret ; } | <S2SV_ModStart> ; do { if ( str [ i ] > '9' && str [ i ] < '0' ) { break ; } <S2SV_ModStart> i ] - '0' <S2SV_ModEnd> ) ; } |
7,705 | CWE-000 int DriverRegPlayback ( SurviveContext * ctx ) { <S2SV_StartBug> install_recording ( ctx ) ; <S2SV_EndBug> <S2SV_StartBug> const char * playback_file = survive_configs ( ctx , "playbackfile" , SC_SETCONFIG , "" ) ; <S2SV_EndBug> if ( strlen ( playback_file ) == 0 ) { return 0 ; } SurvivePlaybackData * sp = call... | <S2SV_ModStart> ctx ) { <S2SV_ModEnd> const char * <S2SV_ModStart> ( ctx , "playback" <S2SV_ModEnd> , SC_SETCONFIG , <S2SV_ModStart> ( ctx , "playback-factor" <S2SV_ModEnd> , SC_SETCONFIG , <S2SV_ModStart> } SV_INFO ( "Using<S2SV_blank>playback<S2SV_blank>file<S2SV_blank>\'%s\'<S2SV_blank>with<S2SV_blank>timefactor<S2S... |
7,706 | CWE-000 int ext4_ind_map_blocks ( handle_t * handle , struct inode * inode , struct ext4_map_blocks * map , int flags ) { struct ext4_allocation_request ar ; int err = - EIO ; ext4_lblk_t offsets [ 4 ] ; Indirect chain [ 4 ] ; Indirect * partial ; int indirect_blks ; int blocks_to_boundary = 0 ; int depth ; int count =... | <S2SV_ModStart> |= EXT4_MB_DELALLOC_RESERVED ; if ( flags & EXT4_GET_BLOCKS_METADATA_NOFAIL ) ar . flags |= EXT4_MB_USE_RESERVED ; |
7,707 | CWE-000 static void init ( void ) { char line [ 256 ] = { 0 } ; uint32_t flow_id = 0 ; uint32_t src_ip_segment1 = 0 , src_ip_segment2 = 0 , src_ip_segment3 = 0 , src_ip_segment4 = 0 ; uint32_t dst_ip_segment1 = 0 , dst_ip_segment2 = 0 , dst_ip_segment3 = 0 , dst_ip_segment4 = 0 ; uint16_t udp_src_port = 0 , udp_dst_por... | <S2SV_ModStart> . first_request_access_time = - 1.0 <S2SV_ModEnd> ; sender_flows [ |
7,708 | CWE-000 int exchanger_start_metadata_transfer ( exchanger_t * ex , void * * send_arrays , void * * receive_arrays , int stride , int tag , MPI_Datatype type , exchanger_metadata_dir direction ) { # if POLYMEC_HAVE_MPI START_FUNCTION_TIMER ( ) ; mpi_message_t * msg = mpi_message_new ( type , stride , tag ) ; int num_sen... | <S2SV_ModStart> pos = 0 ; <S2SV_ModEnd> i = 0 |
7,709 | CWE-000 static UCS_CLASS_CLEANUP_FUNC ( uct_rc_ep_t ) { uct_rc_iface_t * iface = ucs_derived_of ( self -> super . super . iface , uct_rc_iface_t ) ; ucs_debug ( "destroy<S2SV_blank>rc<S2SV_blank>ep<S2SV_blank>%p" , self ) ; ucs_list_del ( & self -> list ) ; uct_rc_iface_remove_qp ( iface , self -> txqp . qp -> qp_num )... | <S2SV_ModStart> ; uct_rc_txqp_cleanup ( iface , |
7,710 | CWE-000 static void ubus_msg_dequeue ( struct ubus_client * cl ) { struct ubus_msg_buf * ub = ubus_msg_head ( cl ) ; if ( ! ub ) return ; <S2SV_StartBug> ubus_msg_free ( ub ) ; <S2SV_EndBug> cl -> txq_ofs = 0 ; <S2SV_StartBug> cl -> tx_queue [ cl -> txq_cur ] = NULL ; <S2SV_EndBug> cl -> txq_cur = ( cl -> txq_cur + 1 )... | <S2SV_ModStart> ) return ; list_del ( & ub -> list ) ; <S2SV_ModStart> = 0 ; <S2SV_ModEnd> } <S2SV_null> <S2SV_null> |
7,711 | CWE-000 STATIC int connection_ap_process_http_connect ( entry_connection_t * conn ) { if ( BUG ( ENTRY_TO_CONN ( conn ) -> state != AP_CONN_STATE_HTTP_CONNECT_WAIT ) ) return - 1 ; char * headers = NULL , * body = NULL ; char * command = NULL , * addrport = NULL ; char * addr = NULL ; size_t bodylen = 0 ; const char * ... | <S2SV_ModStart> = "HTTP/1.0<S2SV_blank>400<S2SV_blank>Bad<S2SV_blank>Request\\r\\n\\r\\n" ; log_info <S2SV_ModEnd> ( LD_EDGE , <S2SV_ModStart> ( LD_EDGE , "HTTP<S2SV_blank>tunnel<S2SV_blank>error:<S2SV_blank>saying<S2SV_blank>%s" <S2SV_ModEnd> , escaped ( <S2SV_ModStart> conn ) ) ; conn -> socks_request -> has_finished... |
7,712 | CWE-000 int SendArg ( int id , unsigned char idx , char dtype , unsigned char nargs , unsigned short length , char ndims , int * dims , char * bytes ) { <S2SV_StartBug> int status ; <S2SV_EndBug> int msglen ; int i ; int nbytes = length ; Message * m ; int msgid = ( idx == 0 || nargs == 0 ) ? IncrementConnectionMessage... | <S2SV_ModStart> bytes ) { INIT_STATUS_AS MDSplusERROR <S2SV_ModEnd> ; int msglen <S2SV_ModStart> 1 ) return status <S2SV_ModEnd> ; if ( |
7,713 | CWE-000 static PHP_METHOD ( Phalcon_Escaper , escapeHtmlAttr ) { zend_long ZEPHIR_LAST_CALL_STATUS ; <S2SV_StartBug> zval * attribute_param = NULL , _0 , _1 , _2 ; <S2SV_EndBug> <S2SV_StartBug> zval attribute ; <S2SV_EndBug> zval * this_ptr = getThis ( ) ; ZVAL_UNDEF ( & attribute ) ; ZVAL_UNDEF ( & _0 ) ; ZVAL_UNDEF (... | <S2SV_ModStart> = NULL , * _0 , * <S2SV_ModEnd> _1 , _2 <S2SV_ModStart> _2 ; zval * attribute = NULL <S2SV_ModEnd> ; ZEPHIR_MM_GROW ( <S2SV_ModStart> ; zephir_get_strval ( <S2SV_ModEnd> attribute , attribute_param <S2SV_ModStart> attribute_param ) ; _0 = zephir_fetch_nproperty_this ( <S2SV_ModEnd> this_ptr , SL <S2SV_M... |
7,714 | CWE-000 static void __init_pthread_catalog ( ) { # ifdef __PTCATALOG_LOCK_MUTEX __ptcatalog_mutex = NULL ; # else __ptcatalog_sem = NULL ; # endif __ptcatalog = NULL ; <S2SV_StartBug> } <S2SV_EndBug> | <S2SV_ModStart> = NULL ; __register_thread ( ) ; |
7,715 | CWE-000 int _printf ( const char * format , ... ) { <S2SV_StartBug> int i = 0 ; <S2SV_EndBug> int count = 0 ; va_list args ; va_start ( args , format ) ; while ( * format != '\\0' ) { if ( * format != '%' ) { _putchar ( * format ) ; count ++ ; format ++ ; continue ; } format ++ ; count += ( * get_sel ( * format ) ) ( a... | <S2SV_ModStart> ... ) { <S2SV_ModEnd> int count = <S2SV_ModStart> args ) ; format <S2SV_ModEnd> ++ ; } |
7,716 | CWE-000 int init ( int p , int c , int max ) { <S2SV_StartBug> return ( p % max ) ; <S2SV_EndBug> } | <S2SV_ModStart> max ) { p = abs ( p ) ; |
7,717 | CWE-000 void start_timer_loop ( ) { <S2SV_StartBug> calculate_time ( NULL , 1 ) ; <S2SV_EndBug> uv_timer_init ( server . loop , & server . time_timer ) ; uv_timer_start ( & server . time_timer , calculate_time , 500 , 500 ) ; } | <S2SV_ModStart> calculate_time ( NULL <S2SV_ModEnd> ) ; uv_timer_init |
7,718 | CWE-000 void loop ( void ) { HAL_GPIO_TogglePin ( LED_2_GPIO_Port , LED_2_Pin ) ; <S2SV_StartBug> HAL_Delay ( 500 ) ; <S2SV_EndBug> } | <S2SV_ModStart> LED_2_Pin ) ; vl_range_once ( ) ; HAL_Delay ( 10 ) ; HAL_GPIO_TogglePin ( LED_2_GPIO_Port , LED_2_Pin ) ; HAL_Delay ( 190 <S2SV_ModEnd> ) ; } |
7,719 | CWE-000 static Datum test_factory ( ConnectionType type , int status , char * host , int port ) { Connection * conn ; HttpRequest * req ; HttpResponseState * rsp = NULL ; HttpError err ; Datum json ; conn = connection_create ( type ) ; if ( conn == NULL ) return CStringGetTextDatum ( "could<S2SV_blank>not<S2SV_blank>in... | <S2SV_ModStart> 0 ) { const char * err_msg = connection_get_and_clear_error ( conn ) ; <S2SV_ModStart> , "connection<S2SV_blank>error:<S2SV_blank>%s" , err_msg <S2SV_ModEnd> ) ; } |
7,720 | CWE-000 struct yabi_string * yabi_get_string ( struct yabi_type * element ) { <S2SV_StartBug> return element -> string ; <S2SV_EndBug> } | <S2SV_ModStart> element ) { assert ( element -> type == YABI_STRING ) ; |
7,721 | CWE-000 void zconfig_set_name ( zconfig_t * self , const char * name ) { assert ( self ) ; <S2SV_StartBug> free ( self -> name ) ; <S2SV_EndBug> self -> name = name ? strdup ( name ) : NULL ; } | <S2SV_ModStart> self ) ; FREE_AND_NULL <S2SV_ModEnd> ( self -> |
7,722 | CWE-000 static rnp_result_t encrypted_add_recipient ( pgp_write_handler_t * handler , pgp_dest_t * dst , const char * userid , const uint8_t * key , const unsigned keylen ) { pgp_key_request_ctx_t keyctx = { 0 } ; pgp_key_t * userkey ; pgp_pubkey_t * pubkey ; uint8_t enckey [ PGP_MAX_KEY_SIZE + 3 ] ; unsigned checksum ... | <S2SV_ModStart> case PGP_PKA_ELGAMAL : <S2SV_ModEnd> { int outlen |
7,723 | CWE-000 static struct boost_policy * alloc_boost_policy ( void ) { struct boost_policy * b ; b = kzalloc ( sizeof ( * b ) , GFP_KERNEL ) ; if ( ! b ) return NULL ; <S2SV_StartBug> b -> ib . boost_info = alloc_percpu ( typeof ( * b -> ib . boost_info ) ) ; <S2SV_EndBug> if ( ! b -> ib . boost_info ) { pr_err ( "Failed<S... | <S2SV_ModStart> ; b -> wq = alloc_workqueue ( "cpu_ib_wq" , WQ_HIGHPRI , 0 ) ; if ( ! b -> wq ) { pr_err ( "Failed<S2SV_blank>to<S2SV_blank>allocate<S2SV_blank>workqueue\\n" ) ; goto free_b ; } b -> <S2SV_ModStart> ) ; goto destroy_wq <S2SV_ModEnd> ; } return <S2SV_ModStart> } return b ; destroy_wq : destroy_workqueue ... |
7,724 | CWE-000 t_vec4 ft_vec4_by_mat4 ( t_vec4 * v , t_mat4 * m ) { t_vec4 victor ; victor . x = ft_vec4_scalprod ( v , & m -> x ) ; victor . y = ft_vec4_scalprod ( v , & m -> y ) ; <S2SV_StartBug> victor . z = ft_vec4_scalprod ( v , & m -> z ) ; ; <S2SV_EndBug> <S2SV_StartBug> victor . w = ft_vec4_scalprod ( v , & m -> w ) ;... | <S2SV_ModStart> z ) ; <S2SV_ModEnd> victor . w <S2SV_ModStart> w ) ; <S2SV_ModEnd> return ( victor |
7,725 | CWE-000 gboolean ev_annotation_set_color ( EvAnnotation * annot , const GdkColor * color ) { GdkColor annot_color ; GdkRGBA rgba ; g_return_val_if_fail ( EV_IS_ANNOTATION ( annot ) , FALSE ) ; ev_annotation_get_color ( annot , & annot_color ) ; if ( color == NULL || gdk_color_equal ( color , & annot_color ) ) return FA... | <S2SV_ModStart> rgba ) ; <S2SV_ModEnd> return TRUE ; |
7,726 | CWE-000 void mptcp_cleanup_rbuf ( struct sock * meta_sk , int copied ) { struct tcp_sock * meta_tp = tcp_sk ( meta_sk ) ; struct sock * sk ; <S2SV_StartBug> __u32 rcv_window_now = 0 ; <S2SV_EndBug> if ( copied > 0 && ! ( meta_sk -> sk_shutdown & RCV_SHUTDOWN ) ) { rcv_window_now = tcp_receive_window ( meta_tp ) ; <S2SV... | <S2SV_ModStart> * sk ; bool recheck_rcv_window = false ; <S2SV_ModStart> 2 * rcv_window_now <= <S2SV_ModEnd> meta_tp -> window_clamp <S2SV_ModStart> -> window_clamp ) recheck_rcv_window = true <S2SV_ModEnd> ; } mptcp_for_each_sk <S2SV_ModStart> : if ( recheck_rcv_window <S2SV_ModEnd> ) { __u32 |
7,727 | CWE-000 <S2SV_StartBug> void monitor_trap_pd ( vmi_instance_t vmi , addr_t pd , GHashTable * table , vmi_pid_t pid ) { <S2SV_EndBug> unsigned index ; addr_t entry_addr ; uint64_t entry_val ; addr_t next_addr ; <S2SV_StartBug> monitor_set_trap ( vmi , pd , VMI_MEMACCESS_W , pid , table , PAGE_CAT_PD ) ; <S2SV_EndBug> fo... | <S2SV_ModStart> , addr_t pd <S2SV_ModEnd> , vmi_pid_t pid <S2SV_ModStart> VMI_MEMACCESS_W , pid <S2SV_ModEnd> , PAGE_CAT_PD ) <S2SV_ModStart> , pid , <S2SV_ModEnd> PAGE_CAT_2MB_FRAME ) ; <S2SV_ModStart> , next_addr , <S2SV_ModEnd> pid ) ; |
7,728 | CWE-000 int output_variable_value_ ( VariableVA * variable ) { if ( variable -> value == NULL ) return 0 ; switch ( variable -> type ) { case NarrativeVariable : output_narrative_variable ( ( Registry * ) variable -> value ) ; break ; case EntityVariable : output_entity_variable ( ( listItem * ) variable -> value , NUL... | <S2SV_ModStart> ) -> ptr <S2SV_ModEnd> ) ; break |
7,729 | CWE-000 void test_AvrOperatorTable_given_brbc_5_61 ( void ) { <S2SV_StartBug> uint32_t k ; <S2SV_EndBug> uint8_t codeMemory [ ] = { 0xed , 0xf5 , } ; uint8_t * progCounter = codeMemory ; flash = codeMemory ; sreg -> H = 0 ; <S2SV_StartBug> k = simulateOneInstruction ( progCounter ) ; <S2SV_EndBug> <S2SV_StartBug> TEST_... | <S2SV_ModStart> void ) { uint8_t pc <S2SV_ModEnd> ; uint8_t codeMemory <S2SV_ModStart> = 0 ; pc <S2SV_ModEnd> = simulateOneInstruction ( <S2SV_ModStart> ( 124 , pc <S2SV_ModEnd> ) ; } |
7,730 | CWE-000 static int ptrace_traceme ( void ) { int ret = - EPERM ; write_lock_irq ( & tasklist_lock ) ; if ( ! current -> ptrace ) { ret = security_ptrace_traceme ( current -> parent ) ; if ( ! ret && ! ( current -> real_parent -> flags & PF_EXITING ) ) { current -> ptrace = PT_PTRACED ; <S2SV_StartBug> __ptrace_link ( c... | <S2SV_ModStart> = PT_PTRACED ; ptrace_link <S2SV_ModEnd> ( current , |
7,731 | CWE-000 PRIVATE void ParseExpression ( void ) { <S2SV_StartBug> printf ( "here<S2SV_blank>0!\\n" ) ; <S2SV_EndBug> ParseCompoundTerm ( ) ; <S2SV_StartBug> printf ( "here<S2SV_blank>1!\\n" ) ; <S2SV_EndBug> while ( ( CurrentToken . code == ADD ) || ( CurrentToken . code == SUBTRACT ) ) { printf ( "here<S2SV_blank>2!\\n"... | <S2SV_ModStart> { printf ( "here<S2SV_blank>ParseCompound<S2SV_blank>term<S2SV_blank><S2SV_blank>start!\\n" <S2SV_ModEnd> ) ; ParseCompoundTerm <S2SV_ModStart> ; printf ( "here<S2SV_blank>ParseCompoundTermEnd!\\n" <S2SV_ModEnd> ) ; while |
7,732 | CWE-000 int main ( int argc , char * argv [ ] ) { Bool detach = False ; int replace = 0 ; char * pstr ; ARGBEGIN { case 'c' : closelastclient = True ; fillagain = False ; break ; case 'd' : detach = True ; break ; case 'f' : fillagain = True ; break ; case 'g' : geometry = EARGF ( usage ( ) ) ; break ; case 'n' : wmnam... | <S2SV_ModStart> ( "tabbed-" VERSION ",<S2SV_blank>©<S2SV_blank>2009-2016<S2SV_blank>tabbed<S2SV_blank>engineers,<S2SV_blank>" "see<S2SV_blank>LICENSE<S2SV_blank>for<S2SV_blank>details.\\n" <S2SV_ModEnd> ) ; break |
7,733 | CWE-000 int env_init ( void ) { struct env_driver * drv = env_driver_lookup_default ( ) ; int ret = - ENOENT ; if ( ! drv ) return - ENODEV ; if ( drv -> init ) ret = drv -> init ( ) ; if ( ret == - ENOENT ) { gd -> env_addr = ( ulong ) & default_environment [ 0 ] ; <S2SV_StartBug> gd -> env_valid = 0 ; <S2SV_EndBug> r... | <S2SV_ModStart> -> env_valid = ENV_VALID <S2SV_ModEnd> ; return 0 |
7,734 | CWE-000 int __ieee80211_suspend ( struct ieee80211_hw * hw , struct cfg80211_wowlan * wowlan ) { struct ieee80211_local * local = hw_to_local ( hw ) ; struct ieee80211_sub_if_data * sdata ; struct sta_info * sta ; if ( ! local -> open_count ) goto suspend ; ieee80211_scan_cancel ( local ) ; ieee80211_dfs_cac_cancel ( l... | <S2SV_ModStart> break ; } flush_delayed_work ( & sdata -> dec_tailroom_needed_wk ) ; |
7,735 | CWE-000 static int process_aes_ccm_param ( odp_crypto_generic_session_t * session , const EVP_CIPHER * cipher ) { if ( ( uint32_t ) EVP_CIPHER_key_length ( cipher ) != <S2SV_StartBug> session -> p . cipher_key . length ) <S2SV_EndBug> return - 1 ; memcpy ( session -> cipher . key_data , session -> p . cipher_key . data... | <S2SV_ModStart> p . cipher_key . length ) return - 1 ; if ( 11 != session -> p . cipher_iv . length && 13 != session -> p . cipher_iv |
7,736 | CWE-000 bool ce_layout_split ( CeLayout_t * layout , bool vertical ) { <S2SV_StartBug> assert ( layout -> type = CE_LAYOUT_TYPE_TAB ) ; <S2SV_EndBug> CeLayout_t * parent_of_current = ce_layout_find_parent ( layout , layout -> tab . current ) ; if ( parent_of_current ) { CeBuffer_t * buffer = ce_layout_find_buffer ( lay... | <S2SV_ModStart> layout -> type == <S2SV_ModEnd> CE_LAYOUT_TYPE_TAB ) ; |
7,737 | CWE-000 void stop_file_management ( struct file_management_info * finfo ) { finfo -> is_managed = 0 ; if ( finfo -> management_thread ) { pthread_join ( * ( finfo -> management_thread ) , NULL ) ; } <S2SV_StartBug> } <S2SV_EndBug> | <S2SV_ModStart> ) ; } if ( finfo -> scrubbing_thread ) { pthread_join ( * ( finfo -> scrubbing_thread ) , NULL ) ; } |
7,738 | CWE-000 extern List as_mysql_get_assocs ( mysql_conn_t * mysql_conn , uid_t uid , slurmdb_assoc_cond_t * assoc_cond ) { char * extra = NULL ; char * tmp = NULL ; List assoc_list = NULL ; ListIterator itr = NULL ; int i = 0 , is_admin = 1 ; uint16_t private_data = 0 ; slurmdb_user_rec_t user ; char * prefix = "t1" ; Lis... | <S2SV_ModStart> 1 , NULL , false |
7,739 | CWE-000 mapper_signal mapper_database_add_or_update_signal ( mapper_database db , const char * name , const char * device_name , <S2SV_StartBug> mapper_message_t * props ) <S2SV_EndBug> { mapper_signal sig = 0 ; int sig_rc = 0 , dev_rc = 0 , updated = 0 ; mapper_device dev = mapper_database_device_by_name ( db , device... | <S2SV_ModStart> * device_name , mapper_message msg <S2SV_ModEnd> ) { mapper_signal <S2SV_ModStart> ( sig , msg <S2SV_ModEnd> ) ; if |
7,740 | CWE-000 void slide_builder_slide_reply ( struct slide_builder_context * * context , char * reply , char * scene ) { struct dialog * dialog = make_dialog ( NULL , reply ) ; if ( ( * context ) -> root == ( * context ) -> current ) { ( * context ) -> root = ( * context ) -> current = slide_add_dialog ( ( * context ) -> cu... | <S2SV_ModStart> context + ( ( * context ) -> fill_start + <S2SV_ModStart> context ) -> fills ) ; ( * context ) -> fills [ ( * context ) -> fill_start + <S2SV_ModEnd> i ] = <S2SV_ModStart> context ) -> fills [ ( * context ) -> fill_start + <S2SV_ModEnd> i + 1 |
7,741 | CWE-000 static int bpf_offload_notification ( struct notifier_block * notifier , ulong event , void * ptr ) { struct net_device * netdev = netdev_notifier_info_to_dev ( ptr ) ; struct bpf_dev_offload * offload , * tmp ; ASSERT_RTNL ( ) ; switch ( event ) { case NETDEV_UNREGISTER : <S2SV_StartBug> list_for_each_entry_sa... | <S2SV_ModStart> case NETDEV_UNREGISTER : if ( netdev -> reg_state != NETREG_UNREGISTERING ) break ; |
7,742 | CWE-000 static void wait_if_pipe ( t_sh * shell , int * ret , int * fd , t_tree * node ) { if ( shell -> fd_pipe ) close ( shell -> fd_pipe ) ; if ( ( shell -> fd_pipe = fd [ 0 ] ) == fd [ 0 ] && shell -> right_side ) { <S2SV_StartBug> waitpid ( g_father , ret , 0 ) ; <S2SV_EndBug> close ( fd [ 0 ] ) ; <S2SV_StartBug> ... | <S2SV_ModStart> right_side ) { <S2SV_ModEnd> close ( fd <S2SV_ModStart> = - 1 ; waitpid ( - 1 , ret , 0 ) ; usleep ( 3000 ) |
7,743 | CWE-000 static void _parse_logging ( xmlDocPtr doc , xmlNodePtr node , ice_config_t * configuration ) { char * tmp ; do { if ( node == NULL ) break ; if ( xmlIsBlankNode ( node ) ) continue ; if ( xmlStrcmp ( node -> name , XMLSTR ( "accesslog" ) ) == 0 ) { if ( ! ( tmp = ( char * ) xmlNodeListGetString ( doc , node ->... | <S2SV_ModStart> 0 ) { __read_int ( doc , node , & configuration -> logsize , "<logsize><S2SV_blank>must<S2SV_blank>not<S2SV_blank>be<S2SV_blank>empty." ) ; } else if ( xmlStrcmp ( node -> name , XMLSTR ( "loglevel" ) ) == 0 ) { <S2SV_ModStart> ; configuration -> loglevel = util_str_to_loglevel <S2SV_ModEnd> ( tmp ) <S2... |
7,744 | CWE-000 void free_Stmt_Func_Ptr ( Func_Ptr * a ) { if ( a -> args ) free_Arg_List ( a -> args ) ; <S2SV_StartBug> if ( a -> value && ! a -> value -> is_member ) { <S2SV_EndBug> rem_ref ( a -> value -> m_type -> obj , a -> value -> m_type ) ; rem_ref ( a -> value -> obj , a -> value ) ; } free ( a ) ; } | <S2SV_ModStart> is_member ) { if ( ! a -> func ) free_Type_Decl ( a -> type ) ; |
7,745 | CWE-000 END_TEST <S2SV_StartBug> START_TEST ( test_ns_reserved_attributes_2 ) <S2SV_EndBug> { const char * text1 = <S2SV_StartBug> "<foo:e<S2SV_blank>xmlns:foo=\'http://example.org/\'" <S2SV_EndBug> "<S2SV_blank><S2SV_blank>xmlns:xml=\'http://example.org/\'<S2SV_blank>/>" ; const char * text2 = <S2SV_StartBug> "<foo:e<... | <S2SV_ModStart> END_TEST START_TEST ( test_ns_reserved_attributes <S2SV_ModEnd> ) { const <S2SV_ModStart> * text1 = "<foo:e<S2SV_blank>xmlns:foo=\'http://example.org/\'<S2SV_blank>xmlns:xmlns=\'12\'<S2SV_blank>/>" <S2SV_ModEnd> ; const char <S2SV_ModStart> * text2 = "<foo:e<S2SV_blank>xmlns:foo=\'http://example.org/\'<... |
7,746 | CWE-000 int hostif_data_request ( struct ks_wlan_private * priv , struct sk_buff * skb ) { unsigned int skb_len = 0 ; unsigned char * buffer = NULL ; unsigned int length = 0 ; struct hostif_data_request_t * pp ; unsigned char * p ; int result = 0 ; unsigned short eth_proto ; struct ether_hdr * eth_hdr ; struct michael_... | <S2SV_ModStart> ) ; } size = <S2SV_ModEnd> sizeof ( * <S2SV_ModStart> skb_len + 8 ; pp = kmalloc ( hif_align_size ( size ) , <S2SV_ModEnd> KS_WLAN_MEM_FLAG ) ; <S2SV_ModStart> pp ) { <S2SV_ModEnd> ret = - |
7,747 | CWE-000 int FTI_Protect ( int id , void * ptr , long count , FTIT_type type ) { if ( FTI_Exec . initSCES == 0 ) { FTI_Print ( "FTI<S2SV_blank>is<S2SV_blank>not<S2SV_blank>initialized." , FTI_WARN ) ; return FTI_NSCS ; } char str [ FTI_BUFS ] ; int i ; for ( i = 0 ; i < FTI_BUFS ; i ++ ) { if ( id == FTI_Data [ i ] . id... | <S2SV_ModStart> . h5group = FTI_Exec . H5groups [ 0 ] <S2SV_ModEnd> ; sprintf ( |
7,748 | CWE-000 static void dhd_set_multicast_list ( struct net_device * dev ) { dhd_info_t * dhd = DHD_DEV_INFO ( dev ) ; int ifidx ; ifidx = dhd_net2idx ( dhd , dev ) ; if ( ifidx == DHD_BAD_IF ) return ; dhd -> iflist [ ifidx ] -> set_multicast = TRUE ; dhd_deferred_schedule_work ( dhd -> dhd_deferred_wq , ( void * ) dhd ->... | <S2SV_ModStart> , dhd_set_mcast_list_handler , DHD_WQ_WORK_PRIORITY_LOW <S2SV_ModEnd> ) ; } |
7,749 | CWE-000 static void x_platformobject_update ( X_GameObject * obj , x_fp16x16 deltaTime ) { X_PlatformObject * platform = ( X_PlatformObject * ) obj ; X_Time time = x_enginecontext_get_time ( obj -> engineContext ) ; if ( platform -> state == X_PLATFORMOBJECT_DOWN || platform -> state == X_PLATFORMOBJECT_UP ) { if ( tim... | <S2SV_ModStart> ) pos = offset ; else pos = <S2SV_ModStart> - offset ; <S2SV_ModEnd> if ( pos <S2SV_ModStart> . y = <S2SV_ModEnd> pos ; } |
7,750 | CWE-000 void ts_show_pebble ( void ) { <S2SV_StartBug> listTitle = "Pebble" ; <S2SV_EndBug> window_stack_push ( wndTasks , true ) ; if ( ts_count < 0 ) <S2SV_StartBug> comm_query_tasks ( id ) ; <S2SV_EndBug> } | <S2SV_ModStart> listTitle = "Pebble" ; LOG ( "ts<S2SV_blank>show<S2SV_blank>called" ) <S2SV_ModStart> < 0 ) comm_query_list ( ) ; LOG ( "ts<S2SV_blank>show<S2SV_blank>returned" <S2SV_ModEnd> ) ; } |
7,751 | CWE-000 static irqreturn_t tsens_irq_thread ( int irq , void * data ) { struct tsens_tm_device * tm = data ; unsigned int i , status , threshold ; void __iomem * sensor_status_addr ; void __iomem * sensor_status_ctrl_addr ; int sensor_sw_id = - EINVAL , rc = 0 ; uint32_t idx = 0 ; if ( tmdev -> tsens_type == TSENS_TYPE... | <S2SV_ModStart> unsigned long temp = 0 |
7,752 | CWE-000 void get_history ( ) { char command [ 513 ] ; <S2SV_StartBug> char * h = concat2 ( getenv ( "HOME" ) , "MyHistory" ) ; <S2SV_EndBug> FILE * history = fopen ( h , "r" ) ; if ( history == NULL ) printf ( "%s\\n" , "No<S2SV_blank>History" ) ; else { while ( fgets ( command , 513 , history ) ) printf ( "%s" , comma... | <S2SV_ModStart> = concat2 ( getcwd ( cwd , sizeof ( cwd ) <S2SV_ModEnd> ) , "MyHistory" |
7,753 | CWE-000 static void btnMinusDown ( void ) { int16_t idx ; int16_t up ; if ( btnLastState != UNDEF ) { up = ( ( int ) btnLastState & 1 ) ; idx = ( ( int ) btnLastState >> 1 ) ; if ( up ) { servo [ idx ] . minPos += SERVO_ADJUST ; if ( servo [ idx ] . minPos > servo [ idx ] . maxPos ) { servo [ idx ] . minPos = servo [ i... | <S2SV_ModStart> ] . maxPos < <S2SV_ModEnd> servo [ idx |
7,754 | CWE-000 static void run_external_diff ( const char * pgm , const char * name , const char * other , struct diff_filespec * one , struct diff_filespec * two , const char * xfrm_msg , int complete_rewrite , struct diff_options * o ) { struct argv_array argv = ARGV_ARRAY_INIT ; struct argv_array env = ARGV_ARRAY_INIT ; st... | <S2SV_ModStart> ; if ( one && one -> should_munmap ) diff_free_filespec_data ( one ) ; if ( two && two -> should_munmap ) diff_free_filespec_data ( two ) ; if ( |
7,755 | CWE-000 uint8_t i2c_read ( ) { <S2SV_StartBug> uint8_t byte = 0x00 , bit ; <S2SV_EndBug> for ( bit = 0 ; bit < 8 ; bit ++ ) { <S2SV_StartBug> i2c_set_sda ( 1 ) ; <S2SV_EndBug> i2c_set_scl ( 0 ) ; _delay_us ( 2 ) ; i2c_set_scl ( 1 ) ; _delay_us ( 2 ) ; byte <<= 1 ; <S2SV_StartBug> if ( PINA & _BV ( I2C_SDA ) ) byte |= 1... | <S2SV_ModStart> 0x00 , bit ; i2c_set_sda ( 1 ) <S2SV_ModStart> ++ ) { <S2SV_ModEnd> i2c_set_scl ( 0 <S2SV_ModStart> |= 1 ; } <S2SV_ModStart> 0 ) ; <S2SV_ModEnd> return byte ; |
7,756 | CWE-000 static void sigma_gfx200 ( sigma_t * sigma ) { int x ; unsigned char * vram = & sigma -> vram [ ( ( sigma -> ma << 1 ) & 0x1FFF ) + ( sigma -> sc & 2 ) * 0x1000 ] ; uint8_t plane [ 4 ] ; uint8_t mask , col , c ; for ( x = 0 ; x < ( sigma -> crtc [ 1 ] << 1 ) ; x ++ ) { plane [ 0 ] = vram [ x ] ; plane [ 1 ] = v... | <S2SV_ModStart> 0 ) ; col |= 16 ; |
7,757 | CWE-000 static void write_to_emlog ( struct emlog_info * einfo , char * buf , size_t length ) { int bytes_copied = 0 ; int overflow = 0 ; int n ; <S2SV_StartBug> if ( length + EMLOG_QLEN ( einfo ) >= ( einfo -> size - 1 ) ) { <S2SV_EndBug> overflow = 1 ; einfo -> offset = einfo -> offset + EMLOG_QLEN ( einfo ) + length... | <S2SV_ModStart> int n ; write_lock ( & einfo -> rwlock ) ; if ( emlog_debug ) pr_debug ( "\\nLength:<S2SV_blank>%zu\\nEMLOG_QLEN:<S2SV_blank>%zu\\neinfo->size:<S2SV_blank>%zu\\neinfo->offset:<S2SV_blank>%lld\\neinfo->read_point:<S2SV_blank>%zu\\neinfo->write_point:<S2SV_blank>%zu\\n" , length , EMLOG_QLEN ( einfo ) , e... |
7,758 | CWE-000 static PyObject * gc_unfreeze_impl ( PyObject * module ) <S2SV_StartBug> { <S2SV_EndBug> gc_list_merge ( & _PyRuntime . gc . permanent_generation . head , GEN_HEAD ( NUM_GENERATIONS - 1 ) ) ; Py_RETURN_NONE ; } | <S2SV_ModStart> module ) { RAISE_EXCEPTION_IF_LOCKDOWN_IS_ENABLED ; |
7,759 | CWE-000 int pat_ref_append ( struct pat_ref * ref , char * pattern , char * sample , int line ) { struct pat_ref_elt * elt ; elt = malloc ( sizeof ( * elt ) ) ; if ( ! elt ) return 0 ; elt -> line = line ; elt -> pattern = strdup ( pattern ) ; if ( ! elt -> pattern ) { free ( elt ) ; return 0 ; } if ( sample ) { elt ->... | <S2SV_ModStart> = NULL ; LIST_INIT ( & elt -> back_refs ) ; |
7,760 | CWE-000 bool stream_seek ( stream_t * stream , double position ) { <S2SV_StartBug> bool result ; <S2SV_EndBug> int64_t seek_pos ; seek_pos = ( position + stream -> track -> start ) / av_q2d ( stream -> src_ctx -> streams [ 0 ] -> time_base ) ; result = av_seek_frame ( stream -> src_ctx , 0 , seek_pos , 0 ) ; stream -> ... | <S2SV_ModStart> position ) { int <S2SV_ModEnd> result ; int64_t |
7,761 | CWE-000 static void message_complete ( SoupSession * sesison , SoupMessage * msg , gpointer user_data ) { MessageData * message_data = ( MessageData * ) user_data ; static gint delay = 2 ; if ( SOUP_STATUS_IS_SUCCESSFUL ( message_data -> msg -> status_code ) || SOUP_STATUS_IS_CLIENT_ERROR ( message_data -> msg -> statu... | <S2SV_ModStart> uri ) ; ( void ) |
7,762 | CWE-000 int main ( int argc , char * * argv ) { char * arstream [ ] = { "ar-stream" , NULL } ; char * tarstream [ ] = { "tar-stream" , NULL , NULL } ; char * xz [ ] = { "xz" , NULL } ; char * debdir ; if ( argc != 3 ) { fprintf ( stderr , "Usage:<S2SV_blank>%s<S2SV_blank>[directory]<S2SV_blank>[target.deb]\\n" , argv [... | <S2SV_ModStart> ( debdir , "%s/debian" <S2SV_ModEnd> , argv [ |
7,763 | CWE-000 void jwork_process_device ( jamstate_t * js ) { nvoid_t * nv = queue_deq ( js -> deviceinq ) ; if ( nv == NULL ) return ; command_t * rcmd = ( command_t * ) nv -> data ; free ( nv ) ; # ifdef DEBUG_LVL1 <S2SV_StartBug> printf ( "\\n\\nIMPORTANT<S2SV_blank>%s,<S2SV_blank>opt:<S2SV_blank>%s<S2SV_blank>actarg:<S2S... | <S2SV_ModStart> DEBUG_LVL1 printf ( "\\n\\nCommand<S2SV_blank>from<S2SV_blank>Device<S2SV_blank>cmd:<S2SV_blank>%s,<S2SV_blank>opt:<S2SV_blank>%s<S2SV_blank>actarg:<S2SV_blank>%s<S2SV_blank>actid:<S2SV_blank>%s\\n\\n\\n" <S2SV_ModEnd> , rcmd -> |
7,764 | CWE-000 dlistint_t * insert_dnodeint_at_index ( dlistint_t * * h , unsigned int idx , int n ) { dlistint_t * temp ; dlistint_t * new ; unsigned int count = 0 ; new = malloc ( sizeof ( dlistint_t ) ) ; if ( ! new ) return ( NULL ) ; new -> n = n ; temp = * h ; if ( idx == 0 ) <S2SV_StartBug> { <S2SV_EndBug> new -> next ... | <S2SV_ModStart> == 0 ) return ( add_nodeint ( h , n ) ) ; <S2SV_ModEnd> while ( count <S2SV_ModStart> count ++ ; if ( temp ) <S2SV_ModStart> next ; } if ( temp == NULL ) return ( NULL ) ; <S2SV_ModStart> = temp ; if ( temp -> next ) temp -> next -> prev = new ; |
7,765 | CWE-000 void lv_task_del ( lv_task_t * lv_task_p ) { lv_ll_rem ( & lv_task_ll , lv_task_p ) ; lv_mem_free ( lv_task_p ) ; <S2SV_StartBug> } <S2SV_EndBug> | <S2SV_ModStart> lv_task_p ) ; if ( task_act == lv_task_p ) task_deleted = true ; |
7,766 | CWE-000 static int iwl_fill_data_tbs ( struct iwl_trans * trans , struct sk_buff * skb , struct iwl_txq * txq , u8 hdr_len , struct iwl_cmd_meta * out_meta , struct iwl_device_cmd * dev_cmd , u16 tb1_len ) { struct iwl_trans_pcie * trans_pcie = IWL_TRANS_GET_PCIE_TRANS ( trans ) ; u16 tb2_len ; int i ; tb2_len = skb_he... | <S2SV_ModStart> , iwl_pcie_get_tfd ( trans <S2SV_ModEnd> , txq , |
7,767 | CWE-000 zx_status_t aml_gpio_init ( aml_bus_t * bus ) { <S2SV_StartBug> zx_status_t status = pbus_device_add ( & bus -> pbus , & gpio_dev , PDEV_ADD_PBUS_DEVHOST ) ; <S2SV_EndBug> if ( status != ZX_OK ) { <S2SV_StartBug> zxlogf ( ERROR , "aml_gpio_init:<S2SV_blank>pbus_device_add<S2SV_blank>failed:<S2SV_blank>%d\\n" , ... | <S2SV_ModStart> zx_status_t status = pbus_protocol_device_add <S2SV_ModEnd> ( & bus <S2SV_ModStart> -> pbus , ZX_PROTOCOL_GPIO , & gpio_dev <S2SV_ModEnd> ) ; if <S2SV_ModStart> ( ERROR , "aml_gpio_init:<S2SV_blank>pbus_protocol_device_add<S2SV_blank>failed:<S2SV_blank>%d\\n" <S2SV_ModEnd> , status ) |
7,768 | CWE-000 void check_for_unresolved ( Ast * ast , Type * t ) { switch ( t -> comp ) { case FUNC : for ( int i = 0 ; i < array_len ( t -> fn . args ) ; i ++ ) { check_for_unresolved ( ast , t -> fn . args [ i ] ) ; } if ( t -> fn . ret != NULL ) { check_for_unresolved ( ast , t -> fn . ret ) ; } break ; case STRUCT : { fo... | <S2SV_ModStart> : if ( ! <S2SV_ModStart> ( t ) <S2SV_ModEnd> ) { error |
7,769 | CWE-000 PetscErrorCode DMProjectFieldLocal ( DM dm , PetscReal time , Vec localU , void ( * * funcs ) ( PetscInt , PetscInt , PetscInt , const PetscInt [ ] , const PetscInt [ ] , const PetscScalar [ ] , const PetscScalar [ ] , const PetscScalar [ ] , const PetscInt [ ] , const PetscInt [ ] , const PetscScalar [ ] , con... | <S2SV_ModStart> , PETSC_ERR_SUP , "DM<S2SV_blank>type<S2SV_blank>%s<S2SV_blank>does<S2SV_blank>not<S2SV_blank>implement<S2SV_blank>DMProjectFieldLocal" <S2SV_ModEnd> , ( ( |
7,770 | CWE-000 gpio_hal_pin_cfg_t gpio_hal_arch_pin_cfg_get ( gpio_hal_pin_t pin ) { gpio_hal_pin_cfg_t cfg ; uint32_t tmp ; uint32_t config ; cfg = 0 ; <S2SV_StartBug> config = ti_lib_rom_ioc_port_configure_get ( pin ) ; <S2SV_EndBug> tmp = config & IOC_IOPULL_M ; if ( tmp == IOC_IOPULL_UP ) { cfg |= GPIO_HAL_PIN_CFG_PULL_UP... | <S2SV_ModStart> = 0 ; # ifdef ThisLibraryIsFor_CC26x0R2_HaltIfViolated config = ti_lib_ioc_port_configure_get ( pin ) ; # else <S2SV_ModStart> pin ) ; # endif |
7,771 | CWE-000 static UI_CONTROLLER_EVENT handleEventPieceDrag ( WindowController * controller ) { GameWindowControllerData * data = getGameWindowControllerData ( controller ) ; ChessPiecePosition sourcePos = gameWindowGetData ( controller -> window ) -> sourcePos ; ChessPiecePosition targetPos = gameWindowGetData ( controlle... | <S2SV_ModStart> CHESS_GAME_SUCCESS ) { setUnsavedChanges ( controller , true ) ; <S2SV_ModStart> ONE_PLAYER ) { TreeNode * root = chessGameMinimax ( data -> gameSettings ) ; if ( root == NULL ) return UI_CONTROLLER_EVENT_ERROR ; ChessMove move = root -> bestMove ; chessGameSetMove ( game , move . previousPosition , mov... |
7,772 | CWE-000 static int smb2_close_pipe ( struct cifsd_work * work ) { struct cifsd_pipe * pipe_desc ; uint64_t id ; int rc = 0 ; struct smb2_close_req * req = ( struct smb2_close_req * ) REQUEST_BUF ( work ) ; struct smb2_close_rsp * rsp = ( struct smb2_close_rsp * ) RESPONSE_BUF ( work ) ; id = le64_to_cpu ( req -> Volati... | <S2SV_ModStart> . Status = NT_STATUS_FILE_CLOSED <S2SV_ModEnd> ; smb2_set_err_rsp ( <S2SV_ModStart> . Status = NT_STATUS_FILE_CLOSED <S2SV_ModEnd> ; smb2_set_err_rsp ( |
7,773 | CWE-000 void _hash_pageinit ( Page page , Size size ) { <S2SV_StartBug> PageInit ( page , size , sizeof ( HashPageOpaqueData ) , 0 , PD_DEFAULT_INIT_TRANS ) ; <S2SV_EndBug> } | <S2SV_ModStart> HashPageOpaqueData ) , BLKTYPE_INDEX <S2SV_ModEnd> , PD_DEFAULT_INIT_TRANS ) |
7,774 | CWE-000 static int get_page_list ( uint32_t kernel , struct smq_invoke_ctx * ctx , int cid ) { struct fastrpc_apps * me = & gfa ; struct smq_phy_page * pgstart , * pages ; struct smq_invoke_buf * list ; struct fastrpc_buf * ibuf = & ctx -> dev -> buf ; struct fastrpc_buf * obuf = & ctx -> obuf ; remote_arg_t * pra = ct... | <S2SV_ModStart> buf ; int num ; ssize_t len <S2SV_ModEnd> ; list [ |
7,775 | CWE-000 static inline int64_t toFixedPoint ( const float f ) { binary32 b ; b . f = f ; int32_t e = ( ( b . ui32 << 1 ) >> 24 ) - 127 ; int64_t mantisse = ( ( b . ui32 << 9 ) >> 9 ) ; int sign = b . ui32 >> 31 ; int64_t val = ( mantisse << 32 ) + ( ( int64_t ) 0b1 << 55 ) ; if ( e > 0 ) { val = val << e ; } else { <S2S... | <S2SV_ModStart> } else { if ( e < - 63 ) e = - 63 ; |
7,776 | CWE-000 g2int g2_unpack4 ( unsigned char * cgrib , g2int cgrib_length , g2int * iofst , g2int * ipdsnum , g2int * * ipdstmpl , g2int * mappdslen , g2float * * coordlist , g2int * numcoord ) { g2int ierr , needext , i , j , nbits , isecnum ; g2int lensec , isign , newlen ; g2int * coordieee ; g2int * lipdstmpl = 0 ; g2f... | <S2SV_ModStart> * 8 ; lipdstmpl [ i ] = 0 ; |
7,777 | CWE-000 int free_token ( struct server * sv , struct user * usr ) { hashmap_remove ( sv -> tokens_map , usr -> token ) ; <S2SV_StartBug> user_put ( sv , usr ) ; <S2SV_EndBug> return 0 ; } | <S2SV_ModStart> token ) ; mlog ( "free<S2SV_blank>token:%s\\n" , usr -> username ) ; |
7,778 | CWE-000 void rw_destroy ( rwlock_t * rw ) { <S2SV_StartBug> } <S2SV_EndBug> | <S2SV_ModStart> rw ) { ( void ) rw ; |
7,779 | CWE-000 static ngx_int_t ngx_http_auth_basic_set_realm ( ngx_http_request_t * r , ngx_str_t * realm ) { size_t len ; u_char * basic , * p ; r -> headers_out . www_authenticate = ngx_list_push ( & r -> headers_out . headers ) ; if ( r -> headers_out . www_authenticate == NULL ) { return NGX_HTTP_INTERNAL_SERVER_ERROR ; ... | <S2SV_ModStart> NULL ) { r -> headers_out . www_authenticate -> hash = 0 ; r -> headers_out . www_authenticate = NULL ; |
7,780 | CWE-000 static void ixgbevf_tx_map ( struct ixgbevf_ring * tx_ring , struct ixgbevf_tx_buffer * first , const u8 hdr_len ) { struct sk_buff * skb = first -> skb ; struct ixgbevf_tx_buffer * tx_buffer ; union ixgbe_adv_tx_desc * tx_desc ; struct skb_frag_struct * frag ; dma_addr_t dma ; unsigned int data_len , size ; u3... | <S2SV_ModStart> = jiffies ; skb_tx_timestamp ( skb ) ; |
7,781 | CWE-000 static size_t ZSTD_decompressMultiFrame ( ZSTD_DCtx * dctx , void * dst , size_t dstCapacity , const void * src , size_t srcSize , const void * dict , size_t dictSize , const ZSTD_DDict * ddict ) { void * const dststart = dst ; int moreThan1Frame = 0 ; DEBUGLOG ( 5 , "ZSTD_decompressMultiFrame" ) ; assert ( dic... | <S2SV_ModStart> ) { size_t const skippableSize = readSkippableFrameSize ( src , srcSize ) ; if ( ZSTD_isError ( skippableSize ) ) return skippableSize <S2SV_ModEnd> ; if ( |
7,782 | CWE-000 int picoquic_tlsinput_stream_zero ( picoquic_cnx_t * cnx ) { int ret = 0 ; picoquic_stream_data * data = cnx -> first_stream . stream_data ; struct st_ptls_buffer_t sendbuf ; if ( data == NULL || data -> offset > cnx -> first_stream . consumed_offset ) { return 0 ; } ptls_buffer_init ( & sendbuf , "" , 0 ) ; wh... | <S2SV_ModStart> { ret = picoquic_connection_error ( cnx , PICOQUIC_TRANSPORT_INTERNAL_ERROR ) <S2SV_ModEnd> ; } ptls_buffer_dispose |
7,783 | CWE-000 static void load_icode ( struct Env * e , uint8_t * binary ) { struct Elf * elf_hdr = ( struct Elf * ) binary ; if ( ELF_MAGIC != elf_hdr -> e_magic ) { panic ( "load_icode:<S2SV_blank>elf->emagic<S2SV_blank>error\\n" ) ; } <S2SV_StartBug> struct Proghdr * ph = ( struct Proghdr * ) elf_hdr -> e_phoff ; <S2SV_En... | <S2SV_ModStart> Proghdr * ) ( binary + <S2SV_ModStart> elf_hdr -> e_phoff ) <S2SV_ModStart> -> env_pgdir , p , us_va <S2SV_ModEnd> , PTE_U | |
7,784 | CWE-000 static int hid_accel_3d_probe ( struct platform_device * pdev ) { int ret = 0 ; static const char * name ; struct iio_dev * indio_dev ; struct accel_3d_state * accel_state ; const struct iio_chan_spec * channel_spec ; int channel_size ; struct hid_sensor_hub_device * hsdev = pdev -> dev . platform_data ; indio_... | <S2SV_ModStart> accel_3d_channels ) ; indio_dev -> num_channels = ARRAY_SIZE ( accel_3d_channels ) ; <S2SV_ModStart> channel_size = sizeof ( gravity_channels ) ; indio_dev -> num_channels = ARRAY_SIZE <S2SV_ModStart> } indio_dev -> <S2SV_ModEnd> dev . parent |
7,785 | CWE-000 marpatcl_rtc_p marpatcl_rtc_cons ( marpatcl_rtc_spec * g , marpatcl_rtc_sv_cmd a ) { <S2SV_StartBug> marpatcl_rtc_p p = ALLOC ( marpatcl_rtc ) ; <S2SV_EndBug> SPEC = g ; <S2SV_StartBug> ( void ) marpa_c_init ( CONF ) ; <S2SV_EndBug> marpatcl_rtc_inbound_init ( p ) ; marpatcl_rtc_gate_init ( p ) ; marpatcl_rtc_l... | <S2SV_ModStart> { marpatcl_rtc_p p ; TRACE_ENTER ( "marpatcl_rtc_cons" ) ; p <S2SV_ModStart> = g ; ACT = a ; <S2SV_ModStart> marpa_c_init ( CONF ) ; marpatcl_rtc_fail_init ( p ) ; marpatcl_rtc_store_init ( p <S2SV_ModStart> p ) ; TRACE_RETURN ( "%p" , <S2SV_ModEnd> p ) ; <S2SV_ModStart> p ) ; <S2SV_ModEnd> } <S2SV_null... |
7,786 | CWE-000 bool iotjs_initialize ( iotjs_environment_t * env ) { <S2SV_StartBug> iotjs_debuglog_init ( ) ; <S2SV_EndBug> if ( ! jerry_initialize ( env ) ) { DLOG ( "iotjs_jerry_init<S2SV_blank>failed" ) ; return false ; } iotjs_environment_set_loop ( env , uv_default_loop ( ) ) ; const jerry_value_t global = jerry_get_glo... | <S2SV_ModStart> env ) { <S2SV_ModEnd> if ( ! |
7,787 | CWE-000 void write_setting_s ( void * handle , const char * key , const char * value ) { <S2SV_StartBug> if ( handle ) <S2SV_EndBug> <S2SV_StartBug> RegSetValueEx ( ( HKEY ) handle , key , 0 , REG_SZ , ( CONST BYTE * ) value , <S2SV_EndBug> 1 + strlen ( value ) ) ; <S2SV_StartBug> } <S2SV_EndBug> | <S2SV_ModStart> { if ( storagetype == 1 ) { file_write_setting_s ( <S2SV_ModEnd> handle , key <S2SV_ModStart> , key , value <S2SV_ModEnd> ) ; } <S2SV_ModStart> ) ; } else { reg_write_setting_s ( handle , key , value ) ; } } |
7,788 | CWE-000 void DecryptKEM_using_product ( global_broadcast_params_t gbp , priv_key_t mykey , element_t key , ct_t myct ) { if ( ! gbp ) { printf ( "ACK!<S2SV_blank><S2SV_blank>You<S2SV_blank>gave<S2SV_blank>me<S2SV_blank>no<S2SV_blank>broadcast<S2SV_blank>params!<S2SV_blank><S2SV_blank>I<S2SV_blank>die.\\n" ) ; return ; ... | <S2SV_ModStart> GT ) ; pairing_apply <S2SV_ModEnd> ( temp , <S2SV_ModStart> decr_prod ) ; pairing_apply <S2SV_ModEnd> ( temp2 , |
7,789 | CWE-000 int linkNewTsMuxUploader ( LinkTsMuxUploader * * _pTsMuxUploader , const LinkMediaArg * _pAvArg , const LinkUserUploadArg * _pUserUploadArg , int isWithPicAndSeg ) { FFTsMuxUploader * pFFTsMuxUploader = ( FFTsMuxUploader * ) malloc ( sizeof ( FFTsMuxUploader ) + _pUserUploadArg -> nConfigRequestUrlLen + 1 ) ; i... | <S2SV_ModStart> -> uploadArg . UploadSegmentIdUpdate = updateSegmentId <S2SV_ModEnd> ; } else <S2SV_ModStart> -> uploadArg . UploadSegmentIdUpdate <S2SV_ModEnd> = NULL ; |
7,790 | CWE-000 void connection_ap_expire_beginning ( void ) { edge_connection_t * conn ; entry_connection_t * entry_conn ; circuit_t * circ ; time_t now = time ( NULL ) ; const or_options_t * options = get_options ( ) ; int severity ; int cutoff ; int seconds_idle , seconds_since_born ; smartlist_t * conns = get_connection_ar... | <S2SV_ModStart> purpose != CIRCUIT_PURPOSE_C_GENERAL && circ -> purpose != CIRCUIT_PURPOSE_C_HSDIR_GET && circ -> purpose != CIRCUIT_PURPOSE_S_HSDIR_POST |
7,791 | CWE-000 static ocxl_err get_afu_by_path ( const char * path , ocxl_afu_h * afu ) { ocxl_afu_h afu_h ; ocxl_err rc = afu_alloc ( & afu_h ) ; <S2SV_StartBug> if ( rc != OCXL_OK ) { <S2SV_EndBug> * afu = OCXL_INVALID_AFU ; return rc ; } ocxl_afu * my_afu = ( ocxl_afu * ) afu_h ; struct stat dev_stats ; if ( stat ( path , ... | <S2SV_ModStart> != OCXL_OK ) goto err ; <S2SV_ModEnd> ocxl_afu * my_afu <S2SV_ModStart> ) ) ; goto err_free <S2SV_ModEnd> ; } if <S2SV_ModStart> DEVICE_PATH ) ; goto err_free <S2SV_ModEnd> ; } * <S2SV_ModStart> return OCXL_OK ; err_free : free ( my_afu ) ; err : * afu = OCXL_INVALID_AFU ; return rc ; |
7,792 | CWE-000 void ovs_numa_info_run ( void ) { ovsdb_idl_run ( idl ) ; if ( ! ovsdb_idl_has_lock ( idl ) || ovsdb_idl_is_lock_contended ( idl ) || ! ovsdb_idl_has_ever_connected ( idl ) ) { return ; } unsigned int idl_seq = ovsdb_idl_get_seqno ( idl ) ; VLOG_INFO ( "IDL<S2SV_blank>seqno<S2SV_blank>is<S2SV_blank>%d" , idl_se... | <S2SV_ModStart> "TXN<S2SV_blank>Incomplete." ) ; while ( status == TXN_INCOMPLETE ) { ovsdb_idl_run ( idl ) ; status = ovsdb_idl_txn_commit ( txn ) ; } VLOG_INFO ( "new<S2SV_blank>status<S2SV_blank>is<S2SV_blank>%d" , status ) ; |
7,793 | CWE-000 void of_node_release ( struct kobject * kobj ) { <S2SV_StartBug> struct device_node * node = kobj_to_device_node ( kobj ) ; <S2SV_EndBug> if ( ! of_node_check_flag ( node , OF_DETACHED ) ) { pr_err ( "ERROR:<S2SV_blank>Bad<S2SV_blank>of_node_put()<S2SV_blank>on<S2SV_blank>%pOF\\n" , node ) ; dump_stack ( ) ; re... | <S2SV_ModStart> kobj_to_device_node ( kobj ) ; trace_of_node_release ( node |
7,794 | CWE-000 void ParseAndCountSummaryListEntries ( void ) { # if 0 uint16 length ; <S2SV_StartBug> # endif <S2SV_EndBug> file_seek ( 0 , FS_SEEK_SET ) ; while ( ReadWithSizeFix ( g_summaryList . file , ( uint8 * ) & g_summaryList . cachedEntry , sizeof ( SUMMARY_LIST_ENTRY_STRUCT ) ) != - 1 ) { if ( g_summaryList . cachedE... | <S2SV_ModStart> ; # endif ClearEventListCache ( ) ; <S2SV_ModStart> validEntries ++ ; CacheSummaryListEntryToEventList ( ) ; |
7,795 | CWE-000 void AslInitializeGlobals ( void ) { UINT32 i ; Gbl_SyntaxError = 0 ; Gbl_CurrentColumn = 0 ; Gbl_CurrentLineNumber = 1 ; Gbl_LogicalLineNumber = 1 ; Gbl_CurrentLineOffset = 0 ; Gbl_InputFieldCount = 0 ; Gbl_InputByteCount = 0 ; Gbl_NsLookupCount = 0 ; Gbl_LineBufPtr = Gbl_CurrentLineBuffer ; Gbl_ErrorLog = NUL... | <S2SV_ModStart> } if ( AcpiGbl_CaptureComments <S2SV_ModEnd> ) { Gbl_CommentState |
7,796 | CWE-000 void neat_genome_mutate ( struct neat_genome * genome , struct neat_config config , int innovation ) { float random ; assert ( genome ) ; assert ( innovation > 0 ) ; random = ( float ) rand ( ) / ( float ) RAND_MAX ; if ( random < config . genome_add_neuron_mutation_probability ) { <S2SV_StartBug> neat_genome_a... | <S2SV_ModStart> ( genome , innovation , config . genome_default_hidden_activation , config . genome_default_output_activation <S2SV_ModEnd> ) ; return <S2SV_ModStart> < config . genome_change_activation_probability ) { neat_genome_mutate_activation ( genome , innovation ) ; } random = ( float ) rand ( ) / ( float ) RAN... |
7,797 | CWE-000 static void http_set_family_test ( void * arg ) { <S2SV_StartBug> http_connection_test_ ( arg , 0 , "127.0.0.1" , NULL , 0 , AF_UNSPEC ) ; <S2SV_EndBug> } | <S2SV_ModStart> 0 , AF_UNSPEC , 0 |
7,798 | CWE-000 static int write_to_sock ( struct fmmod_instance * fmmod , float * samples , int num_samples ) { char sock_path [ 32 ] = { 0 } ; int uid = 0 ; int ret = 0 ; if ( fmmod -> out_sock_fd == 0 ) { uid = getuid ( ) ; snprintf ( sock_path , 32 , "/run/user/%u/jmpxrds.sock" , uid ) ; fmmod -> out_sock_fd = open ( sock_... | <S2SV_ModStart> 0 ; } utils_perr ( "[FMMOD]<S2SV_blank>write()<S2SV_blank>failed<S2SV_blank>on<S2SV_blank>socket" <S2SV_ModEnd> ) ; } |
7,799 | CWE-000 int main_test_ft_lstadd ( ) { char * str1 = "this<S2SV_blank>is" , * str2 = "a<S2SV_blank>test" ; <S2SV_StartBug> t_list a = ( t_list ) { content : str1 , content_size : sizeof ( char * ) , next : NULL } ; <S2SV_EndBug> <S2SV_StartBug> t_list b = ( t_list ) { content : str2 , content_size : sizeof ( char * ) , ... | <S2SV_ModStart> t_list ) { . content = str1 , . content_size = <S2SV_ModEnd> sizeof ( char <S2SV_ModStart> * ) , . next = <S2SV_ModEnd> NULL } ; <S2SV_ModStart> t_list ) { . content = str2 , . content_size = <S2SV_ModEnd> sizeof ( char <S2SV_ModStart> * ) , . next = <S2SV_ModEnd> NULL } ; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.