Unnamed: 0 int64 0 535k | source stringlengths 50 89.8k | target stringlengths 23 37.7k |
|---|---|---|
3,500 | CWE-000 static void fs_open ( char * device ) { unsigned long long int state , extended ; if ( libreiser4_init ( ) ) { log_mesg ( 0 , 1 , 1 , fs_opt . debug , "%s:<S2SV_blank>Can\'t<S2SV_blank>initialize<S2SV_blank>libreiser4.\\n" , __FILE__ ) ; } if ( ! ( fs_device = aal_device_open ( & file_ops , device , 512 , O_RDO... | <S2SV_ModStart> ) log_mesg ( 1 , 0 , 0 , fs_opt . debug , "%s:<S2SV_blank>REISER4:<S2SV_blank>FS<S2SV_blank>marked<S2SV_blank>consistent\\n" <S2SV_ModEnd> , __FILE__ ) <S2SV_ModStart> . debug , "%s:<S2SV_blank>REISER4:<S2SV_blank>stat<S2SV_blank>:<S2SV_blank>%i\\n" <S2SV_ModEnd> , __FILE__ , |
3,501 | CWE-000 int main ( int argc , char * argv [ ] ) { int n_updates = ( argc >= 2 ) ? atoi ( argv [ 1 ] ) : 100000 ; int n_dims = ( argc >= 3 ) ? atoi ( argv [ 2 ] ) : 3 ; int n_Ts = ( argc >= 4 ) ? atoi ( argv [ 3 ] ) : 3 ; if ( n_Ts < 1 ) { n_Ts = 1 ; } double Thot = ( argc >= 5 ) ? atof ( argv [ 4 ] ) : 2.0 ; double Tra... | <S2SV_ModStart> , 2.0 ) ; two_body_interpolation_type = ( argc >= 16 ) ? atoi ( argv [ 15 ] ) : 0 <S2SV_ModStart> output_order ) ; printf ( "#<S2SV_blank>interpolation<S2SV_blank>type:<S2SV_blank>%s<S2SV_blank>\\n" , ( two_body_interpolation_type == 0 ) ? "geometric" : "linear" ) ; <S2SV_ModStart> ) ; } T_swap_2b_A <S2... |
3,502 | CWE-000 void writeNID ( void ) { uint32_t value ; <S2SV_StartBug> if ( nid_port_out == LPUART1 ) { <S2SV_EndBug> if ( ( USART_ISR ( LPUART1 ) & USART_ISR_TCF ) != 0 ) { value = write_buffer . nid [ 0 ] . message & ( 0xFF << 24 ) ; value >>= 24 ; write_buffer . nid [ 0 ] . message <<= 8 ; write_buffer . write_count += 8... | <S2SV_ModStart> nid_port_out == LPUART1 <S2SV_ModEnd> ) { value <S2SV_ModStart> value ) ; <S2SV_ModEnd> } else { |
3,503 | CWE-000 void execute_JSR ( size_t operand ) { <S2SV_StartBug> PUSH ( ( uint8_t ) ( ( NES -> PC ) >> 8 ) ) ; <S2SV_EndBug> <S2SV_StartBug> PUSH ( ( uint8_t ) NES -> PC ) ; <S2SV_EndBug> } | <S2SV_ModStart> NES -> PC - 1 <S2SV_ModStart> NES -> PC - 1 |
3,504 | CWE-000 static void print_help ( void ) { puts ( "Usage:<S2SV_blank>gem_wsim<S2SV_blank>[OPTIONS]\\n" "\\n" "Runs<S2SV_blank>a<S2SV_blank>simulated<S2SV_blank>workload<S2SV_blank>on<S2SV_blank>the<S2SV_blank>GPU.\\n" <S2SV_StartBug> "When<S2SV_blank>ran<S2SV_blank>without<S2SV_blank>arguments<S2SV_blank>performs<S2SV_b... | <S2SV_ModStart> "Usage:<S2SV_blank>gem_wsim<S2SV_blank>[OPTIONS]\\n" "\\n" "Runs<S2SV_blank>a<S2SV_blank>simulated<S2SV_blank>workload<S2SV_blank>on<S2SV_blank>the<S2SV_blank>GPU.\\n" "When<S2SV_blank>ran<S2SV_blank>without<S2SV_blank>arguments<S2SV_blank>performs<S2SV_blank>a<S2SV_blank>GPU<S2SV_blank>calibration<S2SV... |
3,505 | CWE-000 void detector_free ( detector_t * d ) <S2SV_StartBug> { <S2SV_EndBug> free ( d -> name ) ; free ( d -> author ) ; free ( d -> version ) ; array_free ( d -> rules , detector_rule_finalize ) ; free ( d -> buf ) ; <S2SV_StartBug> } <S2SV_EndBug> | <S2SV_ModStart> d ) { if ( d == NULL ) { return ; } <S2SV_ModStart> buf ) ; free ( d ) ; |
3,506 | CWE-000 int main ( ) { player * emma ; <S2SV_StartBug> int i ; <S2SV_EndBug> for ( i = 0 ; i < 5 ; i ++ ) { <S2SV_StartBug> strcpy ( emma -> hand [ i ] -> type , "heart" ) ; <S2SV_EndBug> <S2SV_StartBug> emma -> hand [ i ] -> value = i ; <S2SV_EndBug> } <S2SV_StartBug> for ( i = 5 ; i ++ ; i < 17 ) { <S2SV_EndBug> emma... | <S2SV_ModStart> ; int i ; printf ( "GETTING<S2SV_blank>THIS<S2SV_blank>FAR\\n" ) <S2SV_ModStart> ++ ) { printf ( "GETTING<S2SV_blank>THIS<S2SV_blank>FAR\\n" ) ; printf ( "What<S2SV_blank>type?:<S2SV_blank>%s\\n" , emma -> hand [ i ] . type ) ; <S2SV_ModStart> [ i ] . <S2SV_ModEnd> type , "heart" <S2SV_ModStart> type , ... |
3,507 | CWE-000 static void _releaseWindow ( WndInfo * wi ) { if ( wi == NULL ) return ; if ( wi -> menuPath == NULL ) { _error ( "try<S2SV_blank>to<S2SV_blank>release<S2SV_blank>empty<S2SV_blank>WndInfo" ) ; return ; } free ( wi -> menuPath ) ; wi -> menuPath = NULL ; if ( wi -> menuroot != NULL ) { _releaseMenuItem ( wi -> m... | <S2SV_ModStart> NULL ) { _unregisterWindow ( wi -> xid , wi -> registrar ) ; if ( wi -> linkedXids != NULL ) { for ( GList * l = wi -> linkedXids ; l != NULL ; l = l -> next ) _unregisterWindow ( l -> data , wi -> registrar ) ; } <S2SV_ModStart> NULL ; } if ( wi -> linkedXids != NULL ) { g_list_free ( wi -> linkedXids ... |
3,508 | CWE-000 int main ( ) { int act , vertex1 , vertex2 , paths ; Graph * g ; <S2SV_StartBug> int num = check_vertex ( ) ; <S2SV_EndBug> if ( num == - 1 ) { return 0 ; } <S2SV_StartBug> g = graph_create ( num ) ; <S2SV_EndBug> if ( g == NULL ) { graph_free ( g ) ; return 0 ; } if ( input_validation ( g ) == - 1 ) { free ( g... | <S2SV_ModStart> * g ; if ( ( g = input_validation ( ) ) == NULL <S2SV_ModEnd> ) { return <S2SV_ModStart> 0 ; } for ( int i = 0 ; i < g -> sity ; i ++ ) { printf ( "%d<S2SV_blank>" , g -> vertex [ i ] ) ; } printf ( "\\n" ) ; <S2SV_ModEnd> Results * res |
3,509 | CWE-000 static void multi_ctrl_scroll_work_fn ( struct work_struct * ws ) { struct multi_ctrl_data * ctrl_data ; int bit = 0 ; static u64 update_bits = ~ 0 ; <S2SV_StartBug> if ( ! multi_ctrl_scroll_info -> data_valid ) { <S2SV_EndBug> <S2SV_StartBug> pr_err ( "%s,<S2SV_blank>scroll<S2SV_blank>data<S2SV_blank>is<S2SV_b... | <S2SV_ModStart> ~ 0 ; down_read ( & multi_leds_list_lock ) ; <S2SV_ModStart> data_valid ) { update_bits = bits ( led_num ) - 1 ; multi_ctrl_scroll_info -> data_valid = true ; pr_info ( "%s,<S2SV_blank>new<S2SV_blank>scroll<S2SV_blank>work<S2SV_blank>is<S2SV_blank>queued\\n" <S2SV_ModEnd> , __func__ ) <S2SV_ModStart> __... |
3,510 | CWE-000 void sched_halt ( void ) { int i ; for ( i = 0 ; i < NENV ; i ++ ) { if ( ( envs [ i ] . env_status == ENV_RUNNABLE || envs [ i ] . env_status == ENV_RUNNING || envs [ i ] . env_status == ENV_DYING ) ) break ; } if ( i == NENV ) { cprintf ( "No<S2SV_blank>runnable<S2SV_blank>environments<S2SV_blank>in<S2SV_blan... | <S2SV_ModStart> "pushl<S2SV_blank>$0\\n" "pushl<S2SV_blank>$0\\n" "sti\\n" "1:\\n" "hlt\\n" "jmp<S2SV_blank>1b\\n" <S2SV_ModEnd> : : "a" |
3,511 | CWE-000 void hbridge2stop ( ) { <S2SV_StartBug> gpio_toogle_off ( HBRIDGE2_EN_PORT , HBRIDGE2_EN_PIN ) ; <S2SV_EndBug> <S2SV_StartBug> gpio_toogle_off ( HBRIDGE2_DIR_PORT , HBRIDGE2_DIR_PIN ) ; <S2SV_EndBug> stop_pwm_channel ( & timer , HBRIDGE2_PWM_CHANNEL ) ; } | <S2SV_ModStart> ( ) { gpio_toggle_off <S2SV_ModEnd> ( HBRIDGE2_EN_PORT , <S2SV_ModStart> HBRIDGE2_EN_PIN ) ; gpio_toggle_off <S2SV_ModEnd> ( HBRIDGE2_DIR_PORT , |
3,512 | CWE-000 int main ( void ) { <S2SV_StartBug> cpl_test_init ( PACKAGE_BUGREPORT , CPL_MSG_WARNING ) ; <S2SV_EndBug> test_cr2res_image_insert_rect ( ) ; return cpl_test_end ( 0 ) ; } | <S2SV_ModStart> ( PACKAGE_BUGREPORT , CPL_MSG_DEBUG <S2SV_ModEnd> ) ; test_cr2res_image_insert_rect |
3,513 | CWE-000 unsigned int __kfifo_dma_out_prepare_r ( struct __kfifo * fifo , struct scatterlist * sgl , int nents , unsigned int len , size_t recsize ) { <S2SV_StartBug> if ( ! nents ) <S2SV_EndBug> BUG ( ) ; len = __kfifo_max_r ( len , recsize ) ; if ( len + recsize > fifo -> in - fifo -> out ) return 0 ; return setup_sgl... | <S2SV_ModStart> recsize ) { BUG_ON <S2SV_ModEnd> ( ! nents <S2SV_ModStart> ( ! nents <S2SV_ModEnd> ) ; len |
3,514 | CWE-000 <S2SV_StartBug> int UNIFYCR_WRAP ( munmap ) ( void * addr , size_t length ) <S2SV_EndBug> { fprintf ( stderr , "Function<S2SV_blank>not<S2SV_blank>yet<S2SV_blank>supported<S2SV_blank>@<S2SV_blank>%s:%d\\n" , __FILE__ , __LINE__ ) ; errno = ENOSYS ; return ENODEV ; } | <S2SV_ModStart> int UNIFYCR_WRAP ( flock ) ( int fd , int operation ) { int ret ; if ( unifycr_intercept_fd ( & fd ) ) { return 0 ; } else { MAP_OR_FAIL ( flock ) ; ret = UNIFYCR_REAL ( flock ) ( fd , operation ) ; return ret ; } } <S2SV_ModEnd> <S2SV_null> <S2SV_null> <S2SV_null> |
3,515 | CWE-000 static pixman_image_t * _pixman_image_for_surface ( cairo_image_surface_t * dst , const cairo_surface_pattern_t * pattern , cairo_bool_t is_mask , const cairo_rectangle_int_t * extents , const cairo_rectangle_int_t * sample , int * ix , int * iy ) { cairo_extend_t extend = pattern -> base . extend ; pixman_imag... | <S2SV_ModStart> cairo_surface_type_t type ; <S2SV_ModEnd> type = source |
3,516 | CWE-000 void at_input ( register uint8_t c ) { switch ( c ) { case '\\r' : <S2SV_StartBug> putchar ( '\\n' ) ; <S2SV_EndBug> at_cmd [ at_cmd_len ] = 0 ; at_cmd_ready = true ; break ; case '\\b' : case '\\x7f' : if ( at_cmd_len > 0 ) { <S2SV_StartBug> putchar ( '\\b' ) ; <S2SV_EndBug> <S2SV_StartBug> putchar ( '<S2SV_bl... | <S2SV_ModStart> case '\\r' : putchar_r <S2SV_ModEnd> ( '\\n' ) <S2SV_ModStart> 0 ) { putchar_r <S2SV_ModEnd> ( '\\b' ) <S2SV_ModStart> '\\b' ) ; putchar_r <S2SV_ModEnd> ( '<S2SV_blank>' ) <S2SV_ModStart> '<S2SV_blank>' ) ; putchar_r <S2SV_ModEnd> ( '\\b' ) <S2SV_ModStart> = c ; putchar_r <S2SV_ModEnd> ( c ) |
3,517 | CWE-000 void pkey_mm_init ( struct mm_struct * mm ) { if ( static_branch_likely ( & pkey_disabled ) ) return ; mm_pkey_allocation_map ( mm ) = initial_allocation_mask ; <S2SV_StartBug> mm -> context . execute_only_pkey = - 1 ; <S2SV_EndBug> } | <S2SV_ModStart> . execute_only_pkey = EXECUTE_ONLY_KEY <S2SV_ModEnd> ; } <S2SV_null> |
3,518 | CWE-000 struct timeval thread_timer_remain ( struct thread * thread ) { <S2SV_StartBug> quagga_get_relative ( NULL ) ; <S2SV_EndBug> return timeval_subtract ( thread -> u . sands , relative_time ) ; } | <S2SV_ModStart> thread ) { relative_time = frr_monotonic <S2SV_ModEnd> ( NULL ) |
3,519 | CWE-000 int vlc_threadvar_set ( vlc_threadvar_t key , void * value ) { int saved = GetLastError ( ) ; <S2SV_StartBug> int val = TlsSetValue ( key -> id , value ) ? ENOMEM : 0 ; <S2SV_EndBug> if ( val == 0 ) SetLastError ( saved ) ; <S2SV_StartBug> return val ; <S2SV_EndBug> } | <S2SV_ModStart> ( ) ; if ( ! <S2SV_ModEnd> TlsSetValue ( key <S2SV_ModStart> , value ) ) return ENOMEM ; <S2SV_ModEnd> SetLastError ( saved <S2SV_ModStart> ) ; return 0 <S2SV_ModEnd> ; } <S2SV_null> |
3,520 | CWE-000 static t_roomlist * ft_select_next ( t_instlist * cont , t_roomlist * curr_room ) { t_roomlist * next_room ; int a ; <S2SV_StartBug> int i ; <S2SV_EndBug> int weight ; t_roomlist * this_road ; <S2SV_StartBug> weight = 2147483647 ; <S2SV_EndBug> i = 0 ; a = 0 ; next_room = NULL ; if ( curr_room -> index != cont ... | <S2SV_ModStart> a ; int <S2SV_ModEnd> weight ; t_roomlist <S2SV_ModStart> weight = 2147483647 <S2SV_ModEnd> ; a = |
3,521 | CWE-000 void history_push ( char * * args , pid_t pid , uid_t uid ) { # ifdef DEBUG printf ( "____________history_push____________\\n" ) ; <S2SV_StartBug> # endif <S2SV_EndBug> command_hist [ history_current_push_pointer ] . _command = command_to_string ( args ) ; command_hist [ history_current_push_pointer ] . _timein... | <S2SV_ModStart> ; # endif time_t current_time = time ( NULL ) ; |
3,522 | CWE-000 int af_alg_get_rsgl ( struct sock * sk , struct msghdr * msg , int flags , struct af_alg_async_req * areq , size_t maxsize , size_t * outlen ) { struct alg_sock * ask = alg_sk ( sk ) ; struct af_alg_ctx * ctx = ask -> private ; size_t len = 0 ; while ( maxsize > len && msg_data_left ( msg ) ) { struct af_alg_rs... | <S2SV_ModStart> ) break ; <S2SV_ModEnd> seglen = min_t |
3,523 | CWE-000 static gboolean applications_menu_plugin_menu ( GtkWidget * button , GdkEventButton * event , ApplicationsMenuPlugin * plugin ) { panel_return_val_if_fail ( XFCE_IS_APPLICATIONS_MENU_PLUGIN ( plugin ) , FALSE ) ; panel_return_val_if_fail ( button == NULL || plugin -> button == button , FALSE ) ; if ( event != N... | <S2SV_ModStart> , button , xfce_panel_plugin_get_orientation ( XFCE_PANEL_PLUGIN ( plugin ) ) == GTK_ORIENTATION_VERTICAL ? GDK_GRAVITY_WEST : GDK_GRAVITY_NORTH , xfce_panel_plugin_get_orientation ( XFCE_PANEL_PLUGIN ( plugin ) ) == GTK_ORIENTATION_VERTICAL ? GDK_GRAVITY_EAST : GDK_GRAVITY_SOUTH <S2SV_ModEnd> , ( GdkEv... |
3,524 | CWE-000 static int cpufreq_set_policy ( struct cpufreq_policy * policy , struct cpufreq_policy * new_policy ) { int ret = 0 , failed = 1 ; struct cpufreq_policy * cpu0_policy = NULL ; pr_debug ( "setting<S2SV_blank>new<S2SV_blank>policy<S2SV_blank>for<S2SV_blank>CPU<S2SV_blank>%u:<S2SV_blank>%u<S2SV_blank>-<S2SV_blank>... | <S2SV_ModStart> policy -> cpu ) ; if ( new_policy -> cpu ) cpu0_policy = cpufreq_cpu_get ( 0 |
3,525 | CWE-000 static int handle_packet ( struct nfq_q_handle * qh , struct nfgenmsg * nfmsg , struct nfq_data * nfad , void * data ) { if ( ! nfad ) return 0 ; dnspacket * p = NULL ; unsigned char * payload_data = NULL ; int id = 0 ; uint32_t payload_len = 0 ; int result = 0 , result_parsing = 0 ; payload_len = handle_getdat... | <S2SV_ModStart> ) ; return 1 <S2SV_ModEnd> ; } result_parsing <S2SV_ModStart> ( SLOGL_LVL_ERROR , "[worker<S2SV_blank>%d]<S2SV_blank>\\\nLa<S2SV_blank>trame<S2SV_blank>re\\U000000e7u<S2SV_blank>ne<S2SV_blank>sera<S2SV_blank>pas<S2SV_blank>trait\\U000000e9e." <S2SV_ModEnd> , ME -> <S2SV_ModStart> ) ; return 1 <S2SV_ModE... |
3,526 | CWE-000 static ssize_t sysfs_parse_nvme ( uint8_t * buf , ssize_t size , ssize_t * off , const char * pbuf , ssize_t psize , ssize_t * poff , struct disk_info * info ) { int rc ; int psz = 0 ; uint8_t * filebuf = NULL ; * poff = 0 ; * off = 0 ; char * newpbuf ; newpbuf = strndupa ( pbuf , psize + 1 ) ; if ( ! newpbuf )... | <S2SV_ModStart> ) filebuf , "%02hhx<S2SV_blank>%02hhx<S2SV_blank>%02hhx<S2SV_blank>%02hhx<S2SV_blank>" "%02hhx<S2SV_blank>%02hhx<S2SV_blank>%02hhx<S2SV_blank>%02hhx" <S2SV_ModEnd> , & eui |
3,527 | CWE-000 static node_t * if1 ( lexer_t * l ) { node_t * r ; assert ( l ) ; r = node_new ( SYM_IF1 , 2 ) ; r -> o [ 0 ] = statements ( l ) ; <S2SV_StartBug> if ( accept ( l , LEX_ELSE ) ) <S2SV_EndBug> r -> o [ 1 ] = statements ( l ) ; expect ( l , LEX_THEN ) ; return r ; } | <S2SV_ModStart> ; if ( accept_token <S2SV_ModEnd> ( l , |
3,528 | CWE-000 int draw ( t_env * all ) { t_env * current ; current = all ; <S2SV_StartBug> ft_sky ( current ) ; <S2SV_EndBug> draw_all ( current ) ; <S2SV_StartBug> mlx_clear_window ( current -> mlx -> mlx , current -> mlx -> window ) ; <S2SV_EndBug> mlx_put_image_to_window ( current -> mlx -> mlx , current -> mlx -> window ... | <S2SV_ModStart> = all ; mlx_clear_window ( current -> t_mlx -> mlx , current -> t_mlx -> window ) ; <S2SV_ModStart> current ) ; <S2SV_ModEnd> return ( 1 |
3,529 | CWE-000 tree_cell * nasl_pread ( lex_ctxt * lexic ) { tree_cell * retc = NULL , * a ; anon_nasl_var * v ; nasl_array * av ; int i , j , n , sz , sz2 , cd , fd = 0 ; char * * args = NULL , * cmd , * str , * str2 , buf [ 8192 ] ; FILE * fp ; char cwd [ MAXPATHLEN ] , newdir [ MAXPATHLEN ] ; if ( pid != 0 ) { nasl_perror ... | <S2SV_ModStart> ( char * <S2SV_ModEnd> ) * ( |
3,530 | CWE-000 int main ( void ) { DATA_T data ; t_list * head ; t_list * tmphead ; data = 1 ; head = ft_lstnew ( & data , sizeof ( data ) ) ; data = 2 ; ft_lstadd ( & head , ft_lstnew ( & data , sizeof ( data ) ) ) ; data = 3 ; ft_lstadd ( & head , ft_lstnew ( & data , sizeof ( data ) ) ) ; data = 3 ; tmphead = head ; head =... | <S2SV_ModStart> deldata ) ; show_alloc_mem ( ) ; <S2SV_ModStart> deldata ) ; <S2SV_ModEnd> } <S2SV_null> <S2SV_null> |
3,531 | CWE-000 static PyObject * l_ldap_abandon_ext ( LDAPObject * self , PyObject * args ) { int msgid ; PyObject * serverctrls = Py_None ; PyObject * clientctrls = Py_None ; LDAPControl * * server_ldcs = NULL ; LDAPControl * * client_ldcs = NULL ; int ldaperror ; if ( ! PyArg_ParseTuple ( args , "i|OO" , & msgid , & serverc... | <S2SV_ModStart> client_ldcs ) ) { LDAPControl_List_DEL ( server_ldcs ) ; return NULL ; } <S2SV_ModEnd> } LDAP_BEGIN_ALLOW_THREADS ( |
3,532 | CWE-000 static int do_page_crypto ( struct inode * inode , fscrypt_direction_t rw , pgoff_t index , <S2SV_StartBug> struct page * src_page , struct page * dest_page ) <S2SV_EndBug> { u8 xts_tweak [ FS_XTS_TWEAK_SIZE ] ; struct ablkcipher_request * req = NULL ; DECLARE_FS_COMPLETION_RESULT ( ecr ) ; struct scatterlist d... | <S2SV_ModStart> page * dest_page , gfp_t gfp_flags <S2SV_ModStart> ( tfm , gfp_flags <S2SV_ModEnd> ) ; if |
3,533 | CWE-000 static int pppol2tp_connect ( struct socket * sock , struct sockaddr * uservaddr , int sockaddr_len , int flags ) { struct sock * sk = sock -> sk ; struct sockaddr_pppol2tp * sp = ( struct sockaddr_pppol2tp * ) uservaddr ; struct pppox_sock * po = pppox_sk ( sk ) ; struct l2tp_session * session = NULL ; struct ... | <S2SV_ModStart> = dst_mtu ( dst <S2SV_ModEnd> ) ; if |
3,534 | CWE-000 static void handle_clear_accept ( struct ev_loop * loop , ev_io * w , int revents ) { ( void ) revents ; ( void ) loop ; struct sockaddr_storage addr ; struct frontend * fr ; sslctx * so ; proxystate * ps ; socklen_t sl = sizeof ( addr ) ; int client = accept ( w -> fd , ( struct sockaddr * ) & addr , & sl ) ; ... | <S2SV_ModStart> ( fr -> default_ctx <S2SV_ModEnd> != NULL ) <S2SV_ModStart> , fr -> default_ctx <S2SV_ModEnd> , SSLCTX_MAGIC ) |
3,535 | CWE-000 static sqInt scanMethod ( void ) { BytecodeDescriptor * descriptor ; sqInt distance ; BytecodeFixup * fixup ; sqInt framelessStackDelta ; sqInt latestContinuation ; sqInt nExts ; sqInt numBlocks ; sqInt pc ; sqInt seenInstVarStore ; sqInt targetPC ; needsFrame = ( useTwoPaths = ( seenInstVarStore = 0 ) ) ; prev... | <S2SV_ModStart> ; } } latestContinuation = latestContinuation ; |
3,536 | CWE-000 static PyObject * _ssl__SSLSocket_pending_impl ( PySSLSocket * self ) { int count = 0 ; <S2SV_StartBug> PySSL_BEGIN_ALLOW_THREADS <S2SV_EndBug> count = SSL_pending ( self -> ssl ) ; <S2SV_StartBug> _PySSL_UPDATE_ERRNO_IF ( count < 0 , self , count ) ; <S2SV_EndBug> <S2SV_StartBug> PySSL_END_ALLOW_THREADS <S2SV_... | <S2SV_ModStart> = 0 ; _PySSLError err ; <S2SV_ModStart> ssl ) ; err = _PySSL_errno <S2SV_ModEnd> ( count < <S2SV_ModStart> 0 , self -> ssl <S2SV_ModStart> ) ; PySSL_END_ALLOW_THREADS self -> err = err ; |
3,537 | CWE-000 void bitbuffer_add_row ( bitbuffer_t * bits ) { <S2SV_StartBug> if ( bits -> num_rows == 0 ) bits -> num_rows ++ ; <S2SV_EndBug> <S2SV_StartBug> if ( bits -> num_rows < BITBUF_ROWS ) { <S2SV_EndBug> bits -> num_rows ++ ; <S2SV_StartBug> } <S2SV_EndBug> else { bits -> bits_per_row [ bits -> num_rows - 1 ] = 0 ; ... | <S2SV_ModStart> num_rows == 0 || <S2SV_ModEnd> ( bits -> <S2SV_ModStart> num_rows < BITBUF_ROWS && bits -> bits_per_row [ bits -> num_rows - 1 ] > 0 ) ) <S2SV_ModEnd> bits -> num_rows <S2SV_ModStart> num_rows ++ ; <S2SV_ModEnd> bits -> bits_per_row <S2SV_ModStart> 0 ; } <S2SV_ModEnd> <S2SV_null> <S2SV_null> <S2SV_null> |
3,538 | CWE-000 struct supplemental_page_table * vm_supt_create ( void ) { struct supplemental_page_table * supt = ( struct supplemental_page_table * ) malloc ( sizeof ( struct supplemental_page_table ) ) ; hash_init ( & supt -> page_map , spte_hash_func , spte_less_func , NULL ) ; <S2SV_StartBug> } <S2SV_EndBug> | <S2SV_ModStart> NULL ) ; return supt ; |
3,539 | CWE-000 void ofi_mr_cache_cleanup ( struct ofi_mr_cache * cache ) { struct ofi_mr_entry * entry ; struct dlist_entry * tmp ; FI_INFO ( cache -> domain -> prov , FI_LOG_MR , "MR<S2SV_blank>cache<S2SV_blank>stats:<S2SV_blank>" "searches<S2SV_blank>%zu,<S2SV_blank>deletes<S2SV_blank>%zu,<S2SV_blank>hits<S2SV_blank>%zu\\n"... | <S2SV_ModStart> ) ; } cache -> mr_storage . destroy ( & cache -> mr_storage <S2SV_ModEnd> ) ; ofi_monitor_del_queue |
3,540 | CWE-000 void * get_phys_page ( void * virtaddr ) { void * off = ( void * ) ( ( u32 ) virtaddr & 0x00000FFF ) ; virtaddr = ( void * ) ( ( u32 ) virtaddr & 0xFFFFF000 ) ; u32 pdindex = ( u32 ) virtaddr >> 22 ; u32 ptindex = ( u32 ) virtaddr >> 12 & 0x03FF ; if ( pagedir [ pdindex ] & 0x01 ) { <S2SV_StartBug> if ( ( ( u32... | <S2SV_ModStart> u32 * ) ( <S2SV_ModStart> [ pdindex ] & 0xFFFFF000 ) <S2SV_ModStart> u32 * ) ( <S2SV_ModStart> [ pdindex ] & 0xFFFFF000 ) |
3,541 | CWE-000 int main ( int argc , char * * argv ) { u32 * framebuf ; u32 cnt = 0 ; gfxInitDefault ( ) ; int player = 1 ; int points [ 9 ] = { 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 } ; int win ; win = 0 ; u32 focused = 3 ; int start = 0 ; while ( appletMainLoop ( ) ) { hidScanInput ( ) ; u32 kDown = hidKeysDown ( CONTROLLER_P1_... | <S2SV_ModStart> if ( focused >= 3 <S2SV_ModEnd> ) { focused <S2SV_ModStart> } else focused = 6 + focused % 3 <S2SV_ModEnd> ; } else <S2SV_ModStart> ( kDown & <S2SV_ModEnd> KEY_JOYCON_RIGHT ) { <S2SV_ModStart> KEY_JOYCON_RIGHT ) { if ( win ) { main ( argc , argv ) ; return 0 ; } else <S2SV_ModStart> 1 ; } } if ( kDown &... |
3,542 | CWE-000 <S2SV_StartBug> static int hashmap_hash ( map_t in , char * key ) { <S2SV_EndBug> hashmap_map * m = ( hashmap_map * ) in ; if ( m -> size >= m -> table_size / 2 ) { return MAP_FULL ; } int curr = hashmap_hash_int ( m , key ) ; for ( int i = 0 ; i < MAX_CHAIN_LENGTH ; i ++ ) { if ( ! m -> data [ curr ] . in_use ... | <S2SV_ModStart> map_t in , const |
3,543 | CWE-000 static PyObject * pacifica_archiveinterface_ping_core ( PyObject * self , PyObject * args ) <S2SV_StartBug> { <S2SV_EndBug> PyObject * latency = PyTuple_New ( 4 ) ; int ret ; <S2SV_StartBug> hpss_uuid_t uuid ; <S2SV_EndBug> struct timeval tv ; unsigned32 secs , usecs ; <S2SV_StartBug> uuid . time_low = 0xe52ea3... | <S2SV_ModStart> args ) { char * sitename ; <S2SV_ModStart> int ret ; hpss_srvr_id_t <S2SV_ModEnd> uuid ; struct <S2SV_ModStart> , usecs ; if ( ! PyArg_ParseTuple ( args , "s" , & sitename ) ) { PyErr_SetString ( archiveInterfaceError , "Error<S2SV_blank>parsing<S2SV_blank>sitename<S2SV_blank>argument" ) ; return NULL ;... |
3,544 | CWE-000 static int npyiter_ass_subscript ( NewNpyArrayIterObject * self , PyObject * op , PyObject * value ) { if ( value == NULL ) { PyErr_SetString ( PyExc_TypeError , "Cannot<S2SV_blank>delete<S2SV_blank>iterator<S2SV_blank>elements" ) ; return - 1 ; } if ( self -> iter == NULL || self -> finished ) { PyErr_SetStrin... | <S2SV_ModStart> -> managed == CLOSED <S2SV_ModEnd> ) { PyErr_SetString |
3,545 | CWE-000 static uint64_t arm_ldq_ptw ( CPUState * cs , hwaddr addr , bool is_secure , ARMMMUIdx mmu_idx , ARMMMUFaultInfo * fi ) { ARMCPU * cpu = ARM_CPU ( cs ) ; CPUARMState * env = & cpu -> env ; MemTxAttrs attrs = { } ; MemTxResult result = MEMTX_OK ; AddressSpace * as ; <S2SV_StartBug> uint32_t data ; <S2SV_EndBug> ... | <S2SV_ModStart> * as ; uint64_t <S2SV_ModEnd> data ; attrs |
3,546 | CWE-000 local int unzCheckCurrentFileCoherencyHeader ( unz64_s * s , uint32_t * psize_variable , uint64_t * poffset_local_extrafield , uint16_t * psize_local_extrafield ) { uint32_t magic = 0 ; uint16_t value16 = 0 ; uint32_t value32 = 0 ; uint32_t flags = 0 ; ; uint16_t size_filename = 0 ; uint16_t size_extra_field = ... | <S2SV_ModStart> ) && ( value16 <S2SV_ModEnd> != s -> |
3,547 | CWE-000 static ServiceMetadata * GetPathogenomicsServiceMetadata ( Service * service_p ) { const char * term_url_s = CONTEXT_PREFIX_EDAM_ONTOLOGY_S "topic_0625" ; SchemaTerm * category_p = AllocateSchemaTerm ( term_url_s , "Genotype<S2SV_blank>and<S2SV_blank>phenotype" , "The<S2SV_blank>study<S2SV_blank>of<S2SV_blank>g... | <S2SV_ModStart> ) ; } FreeServiceMetadata ( metadata_p ) ; |
3,548 | CWE-000 Bool HgfsServerStatFs ( const char * pathName , size_t pathLength , uint64 * freeBytes , uint64 * totalBytes ) { WiperPartition p ; unsigned char * wiperError ; ASSERT ( pathName ) ; ASSERT ( freeBytes ) ; ASSERT ( totalBytes ) ; Wiper_Init ( NULL ) ; if ( pathLength >= sizeof p . mountPoint ) { LOG ( 4 , ( "%s... | <S2SV_ModStart> & p , NULL , |
3,549 | CWE-000 static void resume_upcall ( PAL_PTR event , PAL_NUM arg , PAL_CONTEXT * context ) { if ( IS_INTERNAL_TID ( get_cur_tid ( ) ) ) goto ret_exception ; <S2SV_StartBug> shim_tcb_t * tcb = SHIM_GET_TLS ( ) ; <S2SV_EndBug> __disable_preempt ( tcb ) ; if ( ( tcb -> context . preempt & ~ SIGNAL_DELAYED ) > 1 ) { tcb -> ... | <S2SV_ModStart> SHIM_GET_TLS ( ) ; if ( ! tcb || ! tcb -> tp ) return |
3,550 | CWE-000 static u64 opal_scom_unmangle ( u64 addr ) { <S2SV_StartBug> if ( addr & ( 0x1full << 59 ) ) <S2SV_EndBug> addr = ( addr & ~ ( 0xffull << 56 ) ) | ( 1ull << 63 ) ; return addr ; } | <S2SV_ModStart> addr ) { u64 tmp ; tmp = addr ; tmp &= 0x0f00000000000000 ; addr &= 0xf0ffffffffffffff ; addr |= tmp << 4 <S2SV_ModEnd> ; return addr |
3,551 | CWE-000 int main ( ) { RPiContext * RPi ; PC104Context * PC104 ; <S2SV_StartBug> RCErrorContext * errcont = malloc ( sizeof ( RCErrorContext ) ) ; <S2SV_EndBug> if ( rpi_init ( & RPi ) == RC_EINIT ) { rcerror ( errcont , RPi , RC_EXIT ) ; } if ( pc104_init ( & PC104 ) == RC_EINIT ) { <S2SV_StartBug> rcerror ( errcont ,... | <S2SV_ModStart> RCErrorContext * errcont ; if ( error_context_init ( & errcont ) == RC_EINIT ) { rcerror ( errcont , NULL , RC_EXIT ) ; } <S2SV_ModEnd> if ( rpi_init <S2SV_ModStart> RC_EINIT ) { rpi_destruct ( RPi ) ; <S2SV_ModStart> RC_SUCCESS ) { pc104_destruct ( PC104 ) ; <S2SV_ModStart> i2c_bus_descriptor ) ; <S2SV... |
3,552 | CWE-000 static bool dpdk_init__ ( const struct smap * ovs_other_config ) { char * * argv = NULL , * * argv_to_release = NULL ; int result ; int argc , argc_tmp ; bool auto_determine = true ; int err = 0 ; cpu_set_t cpuset ; char * sock_dir_subcomponent ; log_stream = fopencookie ( NULL , "w+" , dpdk_log_func ) ; if ( l... | <S2SV_ModStart> "disabled" ) ; per_port_memory = smap_get_bool ( ovs_other_config , "per-port-memory" , false ) ; VLOG_INFO ( "Per<S2SV_blank>port<S2SV_blank>mempool<S2SV_blank>for<S2SV_blank>DPDK<S2SV_blank>devices<S2SV_blank>%s." , per_port_memory ? "enabled" : "disabled" ) ; |
3,553 | CWE-000 char * getContentType ( char * mybuf ) { printf ( "%ld\\n" , strlen ( mybuf ) ) ; int dot_pos = strcspn ( mybuf , "." ) ; printf ( "%d\\n" , dot_pos ) ; printf ( "%s\\n" , & mybuf [ dot_pos ] ) ; <S2SV_StartBug> char content_type [ 16 ] ; <S2SV_EndBug> strcpy ( content_type , & mybuf [ dot_pos ] ) ; printf ( "G... | <S2SV_ModStart> [ 16 ] ; strcpy ( content_type , "\\0" ) <S2SV_ModStart> ; } else if ( strcmp ( content_type , ".cache" ) == 0 ) { printCache ( ) ; return "C" ; } else |
3,554 | CWE-000 static int _HandleIncomingClient ( Listener_t * listenerInstance ) { struct sockaddr_in clientInfo ; ServingData_t * sd ; pthread_t servingThread ; SOCKET s = listenerInstance -> s , c ; socklen_t addrlen ; addrlen = sizeof ( clientInfo ) ; c = accept ( s , ( struct sockaddr * ) & clientInfo , & addrlen ) ; if ... | <S2SV_ModStart> = c ; sd -> server = listenerInstance -> server ; |
3,555 | CWE-000 char * mrk_basename ( const char * a_path ) { char * basename = NULL ; int path_len = strlen ( a_path ) ; char error_message [ 1024 ] ; int is_not_found = 1 ; size_t idx = - 1 ; size_t i = - 1 ; for ( i = path_len - 1 ; i >= 0 && idx < 0 ; -- i ) { if ( a_path [ i ] == '/' || a_path [ i ] == '\\\\' ) { idx = i ... | <S2SV_ModStart> ] = '\\0' ; |
3,556 | CWE-000 <S2SV_StartBug> double fux3 ( int tA , int tB , int tC , int tD , int tE ) { <S2SV_EndBug> return 0.2 * ( ( 4 - 2 * COS144 - 2 * COS72 ) * ( tA - ( 1 - tA ) ) + ( ( - 1 + 3 * COS144 - 2 * COS72 ) * ( ( tB - ( 1 - tB ) ) + ( tE - ( 1 - tE ) ) ) ) + ( ( - 1 - 2 * COS144 + 3 * COS72 ) * ( ( tC - ( 1 - tC ) ) + ( t... | <S2SV_ModStart> <S2SV_null> <S2SV_null> <S2SV_null> inline |
3,557 | CWE-000 <S2SV_StartBug> void * _oph_sleep ( void * data ) <S2SV_EndBug> { # if defined ( _POSIX_THREADS ) || defined ( _SC_THREADS ) pthread_detach ( pthread_self ( ) ) ; # endif <S2SV_StartBug> UNUSED ( data ) ; <S2SV_EndBug> sleep ( 1 ) ; <S2SV_StartBug> pthread_mutex_lock ( & global_flag ) ; <S2SV_EndBug> pthread_co... | <S2SV_ModStart> * _oph_sleep ( char * * response <S2SV_ModEnd> ) { # <S2SV_ModStart> ; # endif if ( ! response ) return NULL <S2SV_ModEnd> ; sleep ( <S2SV_ModStart> ( & global_flag ) ; * response = strdup ( OPH_DEFAULT_REPLY ) ; if ( ! * response ) pmesg_safe ( & global_flag , LOG_ERROR , __FILE__ , __LINE__ , "Memory<... |
3,558 | CWE-000 static struct ra_param_s * <S2SV_StartBug> ra_param_from_xml ( xmlNode * param_xml , struct ra_metadata_s * md ) <S2SV_EndBug> { const char * param_name = crm_element_value ( param_xml , "name" ) ; const char * value ; struct ra_param_s * p ; p = calloc ( 1 , sizeof ( struct ra_param_s ) ) ; if ( p == NULL ) { ... | <S2SV_ModStart> xmlNode * param_xml <S2SV_ModEnd> ) { const <S2SV_ModStart> ; if ( <S2SV_ModEnd> crm_is_true ( value <S2SV_ModStart> -> rap_flags , ra_param_unique <S2SV_ModEnd> ) ; } <S2SV_ModStart> ra_param_private ) ; <S2SV_ModEnd> } return p |
3,559 | CWE-000 int common_timer_set ( struct k_itimer * timr , int flags , struct itimerspec64 * new_setting , struct itimerspec64 * old_setting ) { const struct k_clock * kc = timr -> kclock ; bool sigev_none ; ktime_t expires ; if ( old_setting ) common_timer_get ( timr , old_setting ) ; timr -> it_interval = 0 ; if ( kc ->... | <S2SV_ModStart> ; sigev_none = <S2SV_ModEnd> timr -> it_sigev_notify <S2SV_ModStart> timr -> it_sigev_notify <S2SV_ModEnd> == SIGEV_NONE ; |
3,560 | CWE-000 static int selinux_socket_sock_rcv_skb ( struct sock * sk , struct sk_buff * skb ) { int err ; struct sk_security_struct * sksec = sk -> sk_security ; u16 family = sk -> sk_family ; u32 sk_sid = sksec -> sid ; struct common_audit_data ad ; struct lsm_network_audit net = { 0 , } ; char * addrp ; u8 secmark_activ... | <S2SV_ModStart> ( err ) { <S2SV_ModStart> 0 ) ; return err ; } |
3,561 | CWE-000 Algorithm * AlgorithmLoad ( Algorithm * algorithm , FILE * stream ) { if ( ! algorithm ) { algorithm = ( Algorithm * ) malloc ( sizeof ( Algorithm ) ) ; <S2SV_StartBug> } <S2SV_EndBug> Cube * state = & algorithm -> state ; CubeLoad ( state , stream ) ; algorithm -> mask = CubeMask ( state ) ; algorithm -> corne... | <S2SV_ModStart> ) ) ; algorithm -> formula_list = NULL ; <S2SV_ModStart> i ) { algorithm -> formula_list [ i ] . move = NULL ; |
3,562 | CWE-000 void add_topic ( HashTable * ht , <S2SV_StartBug> char * topic , <S2SV_EndBug> int fd , pthread_rwlock_t * ht_lock ) { struct list_entry * entry = ( struct list_entry * ) malloc ( sizeof ( struct list_entry ) ) ; entry -> fd = fd ; entry -> topic = ( char * ) malloc ( sizeof ( strlen ( topic ) ) ) ; memcpy ( en... | <S2SV_ModStart> * ht , uint8_t <S2SV_ModEnd> * topic , |
3,563 | CWE-000 static void draw_last_health_change ( void ) { char str [ 20 ] ; static const Uint32 timeoutms = 2 * 60 * 1000 ; static const int yoff = ( int ) ( - ( SMALL_FONT_Y_LEN + 5 ) ) ; if ( my_last_health . d != 0 ) { <S2SV_StartBug> if ( abs ( SDL_GetTicks ( ) - my_last_health . dt ) > timeoutms ) <S2SV_EndBug> my_la... | <S2SV_ModStart> { if ( <S2SV_ModEnd> ( SDL_GetTicks ( <S2SV_ModStart> { if ( <S2SV_ModEnd> ( SDL_GetTicks ( |
3,564 | CWE-000 int test_exe ( struct bfd_link_info * info ) { if ( bfd_link_executable ( info ) ) result ++ ; <S2SV_StartBug> } <S2SV_EndBug> | <S2SV_ModStart> result ++ ; return 0 ; |
3,565 | CWE-000 static int menu_select ( struct cpuidle_driver * drv , struct cpuidle_device * dev ) { struct menu_device * data = this_cpu_ptr ( & menu_devices ) ; int latency_req = pm_qos_request ( PM_QOS_CPU_DMA_LATENCY ) ; int i ; unsigned int interactivity_req ; unsigned long nr_iowaiters , cpu_load ; if ( data -> needs_u... | <S2SV_ModStart> 0 ; } <S2SV_ModEnd> if ( unlikely <S2SV_ModStart> ; if ( CPUIDLE_DRIVER_STATE_START > 0 ) { data -> last_state_idx = CPUIDLE_DRIVER_STATE_START - 1 ; if ( <S2SV_ModStart> = CPUIDLE_DRIVER_STATE_START ; } else { data -> last_state_idx = CPUIDLE_DRIVER_STATE_START ; } |
3,566 | CWE-000 static void dump_inode_blk ( struct f2fs_sb_info * sbi , u32 nid , struct f2fs_node * node_blk ) { u32 i = 0 ; u64 ofs = 0 ; if ( ( node_blk -> i . i_inline & F2FS_INLINE_DATA ) ) { DBG ( 3 , "ino[0x%x]<S2SV_blank>has<S2SV_blank>inline<S2SV_blank>data!\\n" , nid ) ; dev_write_dump ( ( ( unsigned char * ) node_b... | <S2SV_ModStart> ) dump_data_blk ( sbi , |
3,567 | CWE-000 void adc_sample ( void ) { ret_code_t ret_code ; uint32_t p_is_running = 0 ; ret_code = nrf_drv_adc_buffer_convert ( adc_buffer , ADC_BUFFER_SIZE ) ; APP_ERROR_CHECK ( ret_code ) ; sd_clock_hfclk_request ( ) ; while ( ! p_is_running ) { sd_clock_hfclk_is_running ( ( & p_is_running ) ) ; } for ( uint32_t i = 0 ;... | <S2SV_ModStart> ) { } NRF_LOG_INFO <S2SV_ModEnd> ( "Start<S2SV_blank>sampling<S2SV_blank>...<S2SV_blank>\\r\\n" ) |
3,568 | CWE-000 static void parse_line ( Line * l , char * buffer ) { <S2SV_StartBug> l -> line_state = 0 ; <S2SV_EndBug> l -> arg_buf_size = 3 ; l -> argv = salloc ( sizeof ( char * ) * l -> arg_buf_size ) ; l -> argc = 0 ; register char * c ; for ( c = buffer ; * c != '\\0' ; c ++ ) { switch ( * c ) { case '\\n' : case '\\t'... | <S2SV_ModStart> buffer ) { <S2SV_ModEnd> register char * |
3,569 | CWE-000 static NTSTATUS get_trust_credentials ( struct winbindd_domain * domain , TALLOC_CTX * mem_ctx , bool netlogon , struct cli_credentials * * _creds ) { const struct winbindd_domain * creds_domain = NULL ; struct cli_credentials * creds ; NTSTATUS status ; bool force_machine_account = false ; <S2SV_StartBug> bool... | <S2SV_ModStart> = false ; <S2SV_ModEnd> if ( ! <S2SV_ModStart> ) ; } if ( creds_domain != domain <S2SV_ModEnd> ) { cli_credentials_set_secure_channel_type |
3,570 | CWE-000 int Iic_transfer ( iic_priv_s * iic_priv , const uint8_t * send , unsigned send_len , uint8_t * recv , unsigned recv_len , unsigned regaddrflag ) { XIicPs * InstancePtr = iic_priv -> iicbus ; u8 dev = iic_priv -> devaddr ; u8 reg = iic_priv -> regaddr ; u8 buf [ 32 ] ; u32 clk = iic_priv -> frequency ; u32 actc... | <S2SV_ModStart> - 1 ; if ( ( sizeof ( buf ) < send_len + 1 ) && ( regaddrflag == 1 ) ) { Print_Err ( "iic<S2SV_blank>send<S2SV_blank>buf<S2SV_blank>too<S2SV_blank>long:%d\\n" , send_len ) ; return XST_FAILURE ; } |
3,571 | CWE-000 int main ( ) { int errors = 0 ; DynaTree ctree ; <S2SV_StartBug> DynaStatus status = dtree_create ( ( DynaTree * ) & ctree , 6 , sizeof ( uint8_t ) ) ; <S2SV_EndBug> errors += status ? 1 : 0 ; DynaTree itree ; <S2SV_StartBug> status = dtree_create ( ( DynaTree * ) & itree , 16 , sizeof ( int ) ) ; <S2SV_EndBug>... | <S2SV_ModStart> = dtree_create ( & ctree , NULL , 6 , sizeof ( uint8_t ) ) ; errors += status ? 1 : 0 ; DynaTree <S2SV_ModEnd> itree ; status <S2SV_ModStart> = dtree_create ( & itree , NULL <S2SV_ModEnd> , 16 , |
3,572 | CWE-000 static InterCodes * translateCond ( TreeNode * p , Operand * labeltrue , <S2SV_StartBug> Operand * labelfalse ) { <S2SV_EndBug> Assert ( isSyntax ( p , Exp ) ) ; getChilds ( p ) ; if ( isSyntax ( childs [ 1 ] , NOT ) ) { return translateCond ( childs [ 2 ] , labelfalse , labeltrue ) ; } else if ( isSyntax ( chi... | <S2SV_ModStart> labelfalse ) { if ( ! isSyntax ( p , Exp ) ) printf ( "%s<S2SV_blank>%d\\n" , p -> name , p -> token ) ; |
3,573 | CWE-000 void getListDataInfo ( char * thePath , DYNV_VectorGenericDataType * directoryInfo ) { int i ; int fileAndFoldersCount = 0 ; ftpListDataType data ; FILE_GetDirectoryInodeList ( thePath , & data . fileList , & fileAndFoldersCount , 0 ) ; <S2SV_StartBug> for ( i = 0 ; i < fileAndFoldersCount ; i ++ ) <S2SV_EndBug... | <S2SV_ModStart> 0 ) ; printf ( "\\nNUMBER<S2SV_blank>OF<S2SV_blank>FILES:<S2SV_blank>%d" , fileAndFoldersCount ) ; fflush ( 0 ) ; <S2SV_ModStart> = 0 ; printf ( "\\nPROCESSING:<S2SV_blank>%s" , data . fileList [ i ] ) ; fflush ( 0 ) ; <S2SV_ModStart> 1 ) { printf ( "\\nis<S2SV_blank>file" ) ; fflush ( 0 ) ; <S2SV_ModSt... |
3,574 | CWE-000 static int _resize_resv ( slurmctld_resv_t * resv_ptr , uint32_t node_cnt ) { bitstr_t * tmp1_bitmap = NULL , * tmp2_bitmap = NULL ; bitstr_t * core_bitmap = NULL ; int delta_node_cnt , i ; resv_desc_msg_t resv_desc ; delta_node_cnt = resv_ptr -> node_cnt - node_cnt ; if ( delta_node_cnt == 0 ) return SLURM_SUC... | <S2SV_ModStart> - delta_node_cnt ; tmp1_bitmap = bit_copy ( resv_ptr -> part_ptr -> node_bitmap ) ; bit_and_not ( tmp1_bitmap , resv_ptr -> node_bitmap ) ; |
3,575 | CWE-000 static int wiimod_rumble_probe ( const struct wiimod_ops * ops , struct wiimote_data * wdata ) <S2SV_StartBug> { <S2SV_EndBug> set_bit ( FF_RUMBLE , wdata -> input -> ffbit ) ; if ( input_ff_create_memless ( wdata -> input , NULL , wiimod_rumble_play ) ) return - ENOMEM ; return 0 ; } | <S2SV_ModStart> wdata ) { INIT_WORK ( & wdata -> rumble_worker , wiimod_rumble_worker ) ; |
3,576 | CWE-000 uint32_t istgt_iovec_crc32c ( const struct iovec * iovp , int iovc , uint32_t offset , uint32_t len ) { const uint8_t * p ; uint32_t total ; uint32_t pos ; uint32_t n ; uint32_t crc32c ; int i ; pos = 0 ; total = 0 ; crc32c = istgt_crc32c_initial ; for ( i = 0 ; i < iovc ; i ++ ) { if ( len == 0 ) break ; if ( ... | <S2SV_ModStart> istgt_crc32c_xor ; return ( crc32c ) <S2SV_ModEnd> ; } <S2SV_null> |
3,577 | CWE-000 int configure_blocks ( struct block * blocks , int num_blocks , const char * blocks_dir ) { <S2SV_StartBug> for ( int i = 0 ; i < num_blocks ; ++ i ) <S2SV_EndBug> { <S2SV_StartBug> configure_block ( & blocks [ i ] , blocks_dir ) ; <S2SV_EndBug> } } | <S2SV_ModStart> blocks_dir ) { int num_blocks_configured = 0 ; <S2SV_ModStart> i ) { num_blocks_configured += ( <S2SV_ModStart> , blocks_dir ) == 0 ) ? 1 : 0 ; } return num_blocks_configured ; <S2SV_ModEnd> } <S2SV_null> <S2SV_null> |
3,578 | CWE-000 static void j2c_integer_info_set_property ( GObject * object , guint property_id , const GValue * value , GParamSpec * pspec ) { J2cIntegerInfo * self = J2C_INTEGER_INFO ( object ) ; switch ( property_id ) { case PROP_VALUE : <S2SV_StartBug> self -> value = ( gint32 ) g_value_get_int64 ( value ) ; <S2SV_EndBug>... | <S2SV_ModStart> ( gint32 ) g_value_get_int <S2SV_ModEnd> ( value ) |
3,579 | CWE-000 static void stackframe_to_zval ( zval * return_value , stackdriver_debugger_stackframe_t * stackframe ) { int i ; array_init ( return_value ) ; if ( stackframe -> function ) { <S2SV_StartBug> add_assoc_str ( return_value , "function" , stackframe -> function ) ; <S2SV_EndBug> } <S2SV_StartBug> add_assoc_str ( r... | <S2SV_ModStart> , "function" , zend_string_dup ( <S2SV_ModStart> stackframe -> function , 0 ) <S2SV_ModStart> , "filename" , zend_string_copy ( <S2SV_ModStart> stackframe -> filename ) |
3,580 | CWE-000 void create_plot_info_new ( struct dive * dive , struct divecomputer * dc , struct plot_info * pi , bool fast , struct deco_state * planner_ds ) { int o2 , he , o2max ; # ifndef SUBSURFACE_MOBILE struct deco_state plot_deco_state ; <S2SV_StartBug> init_decompression ( & plot_deco_state , dive ) ; <S2SV_EndBug> ... | <S2SV_ModStart> , dive ) ; # else ( void ) planner_ds |
3,581 | CWE-000 static void ForwardIndex_HandleToken ( ForwardIndex * idx , const char * tok , size_t tokLen , uint32_t pos , float fieldScore , t_fieldId fieldId , int isStem , <S2SV_StartBug> int shouldCopy ) { <S2SV_EndBug> ForwardIndexEntry * h = NULL ; int isNew = 0 ; uint32_t hash = hashKey ( tok , tokLen ) ; khIdxEntry ... | <S2SV_ModStart> , int shouldCopy , bool addToTermsTrie <S2SV_ModStart> NULL ; } h -> addToTermsTrie = addToTermsTrie ; |
3,582 | CWE-000 int MPI_Intercomm_merge ( MPI_Comm intercomm , int high , MPI_Comm * newintracomm ) { int mpi_errno = MPI_SUCCESS ; if ( intercomm == MPI_COMM_WORLD ) intercomm = CSP_COMM_USER_WORLD ; CSP_CALLMPI ( JUMP , PMPI_Intercomm_merge ( intercomm , high , newintracomm ) ) ; <S2SV_StartBug> mpi_errno = CSPU_comm_errhan_... | <S2SV_ModStart> ) ) ; if ( ( * newintracomm ) != MPI_COMM_NULL ) { <S2SV_ModStart> mpi_errno ) ; } |
3,583 | CWE-000 void gen_call ( char * sname ) { output_with_tab ( "call<S2SV_blank>" ) ; <S2SV_StartBug> output_string ( sname ) ; <S2SV_EndBug> newline ( ) ; } | <S2SV_ModStart> "call<S2SV_blank>" ) ; output_label_name <S2SV_ModEnd> ( sname ) |
3,584 | CWE-000 <S2SV_StartBug> int ce_adventurer ( struct gameState * state , int * drawntreasure , int currentPlayer , int * z , int * temphand ) { <S2SV_EndBug> int cardDrawn ; while ( * drawntreasure < 2 ) { if ( state -> deckCount [ currentPlayer ] < 1 ) { shuffle ( currentPlayer , state ) ; } drawCard ( currentPlayer , s... | <S2SV_ModStart> int * temphand , int handPos <S2SV_ModStart> 1 ; } discardCard ( handPos , currentPlayer , state , 0 ) ; |
3,585 | CWE-000 void gic_set_pri_per_cpu ( void ) { int i ; for ( i = 0 ; i < 32 ; i += 4 ) { <S2SV_StartBug> * ( ( volatile unsigned int * ) ( ( void __iomem * ) GICD_BASE + <S2SV_EndBug> GIC_DIST_PRI + ( i / 4 ) * 4 ) ) = 0x80808080 ; } <S2SV_StartBug> * ( ( volatile unsigned int * ) ( ( void __iomem * ) GICC_BASE + <S2SV_En... | <S2SV_ModStart> ) ( ( u32 ) gic_d . gicd_base <S2SV_ModEnd> + GIC_DIST_PRI + <S2SV_ModStart> ) ( ( u32 ) gic_d . gicc_base <S2SV_ModEnd> + GIC_CPU_PRIMASK ) |
3,586 | CWE-000 static int f2fs_mkdir ( struct inode * dir , struct dentry * dentry , umode_t mode ) { struct f2fs_sb_info * sbi = F2FS_I_SB ( dir ) ; struct inode * inode ; int err ; dquot_initialize ( dir ) ; inode = f2fs_new_inode ( dir , S_IFDIR | mode ) ; if ( IS_ERR ( inode ) ) return PTR_ERR ( inode ) ; inode -> i_op = ... | <S2SV_ModStart> & f2fs_dblock_aops ; inode_nohighmem ( inode <S2SV_ModEnd> ) ; set_inode_flag |
3,587 | CWE-000 void runSelfTests ( ) { debug_log ( "Running<S2SV_blank>self-tests.\\r\\n" ) ; nrf_gpio_pin_write ( GREEN_LED , LED_ON ) ; nrf_gpio_pin_write ( RED_LED , LED_ON ) ; nrf_delay_ms ( LED_BLINK_MS ) ; nrf_gpio_pin_write ( GREEN_LED , LED_OFF ) ; nrf_gpio_pin_write ( RED_LED , LED_OFF ) ; nrf_delay_ms ( LED_BLINK_MS... | <S2SV_ModStart> LED_ON ) ; debug_log ( "...<S2SV_blank>Skipping<S2SV_blank>test\\r\\n" ) ; <S2SV_ModEnd> nrf_delay_ms ( LED_BLINK_MS |
3,588 | CWE-000 void * myallocate ( size_t size , char * file , size_t line , unsigned int requester ) { if ( size == 0 || size > 4096 - sizeof ( struct MemEntry ) - sizeof ( struct Page ) ) { fprintf ( stderr , "Unable<S2SV_blank>to<S2SV_blank>allocate<S2SV_blank>this<S2SV_blank>many<S2SV_blank>bytes<S2SV_blank>in<S2SV_blank>... | <S2SV_ModStart> ; for ( <S2SV_ModEnd> i = 0 |
3,589 | CWE-000 static void R_ParticleGeometryVerts ( const r_particle_t * p , r_geometry_particle_interleave_vertex_t * verts ) { verts -> scale = p -> scale ; VectorCopy ( p -> org , verts -> start ) ; verts -> type = p -> type ; verts -> roll = p -> roll ; <S2SV_StartBug> if ( p -> type == PARTICLE_BEAM || p -> type == PART... | <S2SV_ModStart> type == PARTICLE_SPARK || p -> type == PARTICLE_WIRE |
3,590 | CWE-000 dart_ret_t dart_get_blocking ( void * dest , dart_gptr_t gptr , size_t nelem , dart_datatype_t dtype ) { MPI_Win win ; MPI_Datatype mpi_dtype = dart_mpi_datatype ( dtype ) ; dart_team_unit_t team_unit_id = DART_TEAM_UNIT_ID ( gptr . unitid ) ; uint64_t offset = gptr . addr_or_offs . offset ; int16_t seg_id = gp... | <S2SV_ModStart> DART_LOG_DEBUG ( "dart_get_blocking:<S2SV_blank><S2SV_blank>nelem:%zu<S2SV_blank>" "source<S2SV_blank>(coll.):<S2SV_blank>win:%p<S2SV_blank>unit:%d<S2SV_blank>offset:%lu<S2SV_blank>" <S2SV_ModEnd> "-><S2SV_blank>dest:<S2SV_blank>%p" , nelem <S2SV_ModStart> DART_LOG_DEBUG ( "dart_get_blocking:<S2SV_blank... |
3,591 | CWE-000 int hasPressedUpSingle ( int i ) { if ( gData . mCurrentKeyStates == NULL ) return 0 ; int state = gData . mCurrentKeyStates [ gKeys [ i ] [ 6 ] ] ; if ( gData . mControllers [ i ] . mIsUsingController ) { double axis = getSingleLeftStickNormalizedY ( i ) ; state |= ( axis < - 0.5 ) ; <S2SV_StartBug> } <S2SV_En... | <S2SV_ModStart> 0.5 ) ; state |= SDL_GameControllerGetButton ( gData . mControllers [ i ] . mController , SDL_CONTROLLER_BUTTON_DPAD_UP ) ; |
3,592 | CWE-000 static void be_check_online_done ( struct tevent_req * req ) { struct be_ctx * be_ctx ; struct dp_reply_std * reply ; errno_t ret ; <S2SV_StartBug> be_ctx = tevent_req_callback_data ( req , struct be_ctx ) ; <S2SV_EndBug> ret = dp_req_recv_ptr ( be_ctx , req , struct dp_reply_std , & reply ) ; talloc_zfree ( re... | <S2SV_ModStart> errno_t ret ; static int last_dp_state = - 1 ; <S2SV_ModStart> case DP_ERR_OK : if ( last_dp_state != DP_ERR_OK ) { last_dp_state = DP_ERR_OK ; sss_log ( SSS_LOG_INFO , "Backend<S2SV_blank>is<S2SV_blank>online\\n" ) ; } <S2SV_ModStart> case DP_ERR_OFFLINE : if ( last_dp_state != DP_ERR_OFFLINE ) { last_... |
3,593 | CWE-000 static void add_clause ( gfc_symbol * sym , gfc_omp_map_op map_op ) { gfc_omp_namelist * n ; if ( ! module_oacc_clauses ) <S2SV_StartBug> module_oacc_clauses = gfc_get_omp_clauses ( ) ; <S2SV_EndBug> for ( n = module_oacc_clauses -> lists [ OMP_LIST_MAP ] ; n != NULL ; n = n -> next ) if ( n -> sym -> backend_d... | <S2SV_ModStart> = gfc_get_omp_clauses ( ) ; if ( sym -> backend_decl == NULL ) gfc_get_symbol_decl ( sym |
3,594 | CWE-000 static void draw_switch ( switch_t * s ) <S2SV_StartBug> { <S2SV_EndBug> double msz = s -> radius * 0.6 ; double off = ( s -> radius - msz ) / 2.0 ; draw_rectangle_filled ( s -> x + off , s -> on ? ( s -> y + s -> radius ) - off : s -> y + off , msz , msz , s -> on ? GREEN : RED ) ; draw_rectangle_filled ( s ->... | <S2SV_ModStart> s ) { assert ( s ) ; |
3,595 | CWE-000 int msm_spm_drv_set_vdd ( struct msm_spm_driver_data * dev , unsigned int vlevel ) { uint32_t timeout_us , new_level ; <S2SV_StartBug> bool avs_enabled = msm_spm_drv_is_avs_enabled ( dev ) ; <S2SV_EndBug> if ( ! dev ) <S2SV_StartBug> return - EINVAL ; <S2SV_EndBug> if ( ! msm_spm_pmic_arb_present ( dev ) ) retu... | <S2SV_ModStart> ; bool avs_enabled <S2SV_ModEnd> ; if ( <S2SV_ModStart> return - EINVAL ; avs_enabled = msm_spm_drv_is_avs_enabled ( dev ) |
3,596 | CWE-000 static bool has_tostring ( lua_State * L , int index ) { bool has_tostring_mm = false ; <S2SV_StartBug> bool has_metatable = ( lua_getmetatable ( L , index ) != 0 ) ; <S2SV_EndBug> if ( has_metatable ) { lua_getfield ( L , - 1 , "__tostring" ) ; if ( lua_isfunction ( L , - 1 ) ) has_tostring_mm = true ; lua_pop... | <S2SV_ModStart> , index ) == 1 <S2SV_ModEnd> ) ; if |
3,597 | CWE-000 void UpdatePC ( DecodedInstr * d , int val ) { switch ( ( opcode ) ( d -> op ) ) { case 0 : switch ( ( funct ) ( d -> regs . r . funct ) ) { case jr : mips . pc = val ; return ; default : mips . pc += 4 ; return ; } break ; case beq : case bne : if ( val ) { mips . pc = mips . pc + 4 + ( ( short ) ( d -> regs .... | <S2SV_ModStart> return ; } else { mips . pc += 4 ; return ; } |
3,598 | CWE-000 <S2SV_StartBug> static void print_xml_comment ( FILE * xml_file , ulong len , <S2SV_EndBug> const char * comment_string ) { const char * end ; fputs ( "<!--<S2SV_blank>" , xml_file ) ; for ( end = comment_string + len ; comment_string != end ; comment_string ++ ) { switch ( * comment_string ) { case '-' : if ( ... | <S2SV_ModStart> * xml_file , size_t <S2SV_ModEnd> len , const |
3,599 | CWE-000 static hFILE * hpreload_fd ( const char * filename , const char * mode ) { <S2SV_StartBug> if ( ! strchr ( mode , 'r' ) ) <S2SV_EndBug> { return NULL ; } hFILE_fd * fp = NULL ; FILE * file = fopen ( filename , mode ) ; if ( ! file ) goto error ; if ( fseek ( file , 0 , SEEK_END ) != 0 ) goto error ; int len = f... | <S2SV_ModStart> { if ( mode == NULL || |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.