Unnamed: 0
int64
0
535k
source
stringlengths
50
89.8k
target
stringlengths
23
37.7k
6,300
CWE-000 static inline void write_pixels ( unsigned int start , unsigned int end , FILE * file_attr , FILE * file_conv , char * * attr_colors , char * * conv_colors , int attr_pixel_size , int conv_pixel_size ) { for ( unsigned int i = start ; i < end ; i ++ ) { if ( i % LINE_COUNT == 0 ) { char nl = '\\n' ; fwrite ( & ...
<S2SV_ModStart> tmp ] , ( <S2SV_ModStart> MAX_CONV_CHAR_SIZE + 1 ) * 3
6,301
CWE-000 RETRACE_REPLACE ( putenv ) char * RETRACE_IMPLEMENTATION ( getenv ) ( const char * envname ) { <S2SV_StartBug> char * env ; <S2SV_EndBug> rtr_getenv_t real_getenv ; real_getenv = RETRACE_GET_REAL ( getenv ) ; <S2SV_StartBug> env = real_getenv ( envname ) ; <S2SV_EndBug> <S2SV_StartBug> trace_printf ( 1 , "geten...
<S2SV_ModStart> envname ) { rtr_getenv_t <S2SV_ModEnd> real_getenv = RETRACE_GET_REAL <S2SV_ModStart> getenv ) ; char * <S2SV_ModStart> envname ) ; if ( env != NULL ) <S2SV_ModStart> ( 1 , "getenv(\\"%s\\");<S2SV_blank>[\\"%s\\"]\\n" , envname , env ) ; else trace_printf ( 1 , "getenv(\\"%s\\");<S2SV_blank>[NULL]\\n" <...
6,302
CWE-000 void call_all_postdissectors ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree ) { <S2SV_StartBug> guint i ; <S2SV_EndBug> for ( i = 0 ; i < postdissectors -> len ; i ++ ) { call_dissector_only ( POSTDISSECTORS ( i ) . handle , tvb , pinfo , tree , NULL ) ; } }
<S2SV_ModStart> { guint i ; if ( ! postdissectors ) return
6,303
CWE-000 int hyper_getgrouplist ( const char * user , gid_t group , gid_t * groups , int * ngroups ) { int nr = 0 , ret ; FILE * file = fopen ( "/etc/group" , "r" ) ; if ( ! file ) { perror ( "faile<S2SV_blank>to<S2SV_blank>open<S2SV_blank>/etc/group" ) ; return - 1 ; } for ( ; ; ) { struct group * gr = fgetgrent ( file...
<S2SV_ModStart> ) ) { fprintf ( stdout , "hyper_getgrouplist()<S2SV_blank>found<S2SV_blank>matched<S2SV_blank>group<S2SV_blank>for<S2SV_blank>user<S2SV_blank>%s,<S2SV_blank>grname:<S2SV_blank>%s,<S2SV_blank>gid:<S2SV_blank>%d\\n" , user , gr -> gr_name , gr -> gr_gid ) ; if ( nr <S2SV_ModEnd> < * ngroups <S2SV_ModStart...
6,304
CWE-000 static int create_fixed_stream_quirk ( struct snd_usb_audio * chip , struct usb_interface * iface , struct usb_driver * driver , const struct snd_usb_audio_quirk * quirk ) { struct audioformat * fp ; struct usb_host_interface * alts ; int stream , err ; unsigned * rate_table = NULL ; fp = kmemdup ( quirk -> dat...
<S2SV_ModStart> ; error : list_del ( & fp -> list ) ;
6,305
CWE-000 FLOAT CNAME ( BLASLONG n , FLOAT * x , BLASLONG inc_x ) { # if defined ( SMP ) int nthreads ; FLOAT dummy_alpha ; # endif FLOAT nrm2 = 0.0 ; double nrm2_double = 0.0 ; if ( n <= 0 || inc_x <= 0 ) return 0.0 ; if ( n == 1 ) return fabs ( x [ 0 ] ) ; # if defined ( SMP ) nthreads = num_cpu_avail ( 1 ) ; if ( n <=...
<S2SV_ModStart> * ptr ) <S2SV_ModEnd> ; ptr =
6,306
CWE-000 static void cdcreatecanvas ( cdCanvas * canvas , void * data ) { cdCtxCanvas * ctxcanvas ; HWND hWnd = NULL ; HDC hDC = NULL , ScreenDC ; int release_dc = 0 ; if ( ! data ) { hDC = GetDC ( NULL ) ; release_dc = 1 ; canvas -> w = GetDeviceCaps ( hDC , HORZRES ) ; canvas -> h = GetDeviceCaps ( hDC , VERTRES ) ; }...
<S2SV_ModStart> = 1 ; cdactivate ( ctxcanvas ) ;
6,307
CWE-000 static int parse_report ( transport_smart * transport , git_push * push ) { git_pkt * pkt = NULL ; const char * line_end = NULL ; gitno_buffer * buf = & transport -> buffer ; int error , recvd ; git_buf data_pkt_buf = GIT_BUF_INIT ; for ( ; ; ) { if ( buf -> offset > 0 ) error = git_pkt_parse_line ( & pkt , buf...
<S2SV_ModStart> error = 0 ; if ( pkt == NULL ) continue
6,308
CWE-000 static enum clnt_stat clnt_raw_call ( struct clnt_req * cc ) { CLIENT * clnt = cc -> cc_clnt ; struct cx_data * cx = CX_DATA ( clnt ) ; struct cm_data * cm = CM_DATA ( cx ) ; XDR * xdrs = & cm -> xdr_stream ; <S2SV_StartBug> struct rpc_msg msg ; <S2SV_EndBug> struct rpc_err error ; cc -> cc_error . re_status = ...
<S2SV_ModStart> -> xdr_stream ; u_int32_t * uint32p ; <S2SV_ModStart> cl_lock ) ; uint32p = ( u_int32_t * ) & cx -> cx_mcallc [ 0 ] ; * uint32p = htonl <S2SV_ModEnd> ( cc -> <S2SV_ModStart> , cx -> <S2SV_ModEnd> cx_mcallc , cx
6,309
CWE-000 void ipfw_delete ( char * av [ ] ) { <S2SV_StartBug> int i , j ; <S2SV_EndBug> int exitval = EX_OK ; int do_set = 0 ; <S2SV_StartBug> char * sep ; <S2SV_EndBug> ipfw_range_tlv rt ; av ++ ; <S2SV_StartBug> NEED1 ( "missing<S2SV_blank>rule<S2SV_blank>specification" ) ; <S2SV_EndBug> memset ( & rt , 0 , sizeof ( r...
<S2SV_ModStart> ] ) { ipfw_range_tlv rt ; char * sep ; <S2SV_ModStart> = 0 ; <S2SV_ModEnd> av ++ ; <S2SV_ModStart> NEED1 ( "missing<S2SV_blank>rule<S2SV_blank>specification" <S2SV_ModEnd> ) ; if <S2SV_ModStart> } else { memset ( & rt , 0 , sizeof ( rt ) ) ;
6,310
CWE-000 static bcore_string_s * translate_selftest ( ) { bcore_life_s * l = bcore_life_s_create ( ) ; bcore_string_s * out = bcore_string_s_create ( ) ; <S2SV_StartBug> bcore_flect_parse_sc ( "specs<S2SV_blank>=<S2SV_blank>{<S2SV_blank>aware_t<S2SV_blank>_;<S2SV_blank>bcore_string_s*<S2SV_blank>name;<S2SV_blank>sz_t<S2...
<S2SV_ModStart> ) ; bcore_flect_parse_sc ( "specs<S2SV_blank>=<S2SV_blank>" "{" "<S2SV_blank><S2SV_blank><S2SV_blank>aware_t<S2SV_blank>_;" "<S2SV_blank><S2SV_blank><S2SV_blank>bcore_string_s*<S2SV_blank>name;" "<S2SV_blank><S2SV_blank><S2SV_blank>sz_t<S2SV_blank>size;" "<S2SV_blank><S2SV_blank><S2SV_blank>u2_t<S2SV_bl...
6,311
CWE-000 int aws_iot_mqtt_tests_multi_threading_validation ( ) { pthread_t publish_thread [ MAX_PUB_THREAD_COUNT ] , yield_thread , sub_unsub_thread ; char certDirectory [ 15 ] = "../../certs" ; char clientCRT [ PATH_MAX + 1 ] ; char clientKey [ PATH_MAX + 1 ] ; char CurrentWD [ PATH_MAX + 1 ] ; char root_CA [ PATH_MAX ...
<S2SV_ModStart> ; IoT_Client_Init_Params initParams = IoT_Client_Init_Params_initializer <S2SV_ModStart> ; struct timeval <S2SV_ModEnd> subscribeTopic ; unsigned <S2SV_ModStart> { printf ( "\\n##<S2SV_blank>Connect<S2SV_blank>Success.\\n" <S2SV_ModEnd> ) ; }
6,312
CWE-000 static void groupSetMemorySpillRatio ( const ResGroupCaps * caps ) { char value [ 64 ] ; snprintf ( value , sizeof ( value ) , "%d" , caps -> memSpillRatio ) ; set_config_option ( "memory_spill_ratio" , value , PGC_USERSET , PGC_S_RESGROUP , <S2SV_StartBug> GUC_ACTION_SET , true ) ; <S2SV_EndBug> }
<S2SV_ModStart> GUC_ACTION_SET , true , 0
6,313
CWE-000 void cmd_scratchpad_show ( I3_CMD ) { DLOG ( "should<S2SV_blank>show<S2SV_blank>scratchpad<S2SV_blank>window\\n" ) ; owindow * current ; <S2SV_StartBug> if ( match_is_empty ( current_match ) ) { <S2SV_EndBug> <S2SV_StartBug> scratchpad_show ( NULL ) ; <S2SV_EndBug> } else { TAILQ_FOREACH ( current , & owindows ...
<S2SV_ModStart> * current ; bool result = false ; <S2SV_ModStart> ) ) { result = <S2SV_ModStart> name ) ; result &= <S2SV_ModStart> ; ysuccess ( result <S2SV_ModEnd> ) ; }
6,314
CWE-000 static size_t ble_println_long ( long data , UCHAR fmt ) { <S2SV_StartBug> char tmp_c [ 33 ] ; <S2SV_EndBug> printNumber ( tmp_c , data , fmt ) ; ble_println ( tmp_c ) ; return strlen ( tmp_c ) ; }
<S2SV_ModStart> [ 33 ] ; if ( mode != 3 ) return ( mode * - 1 )
6,315
CWE-000 int connection_init_or_handshake_state ( or_connection_t * conn , int started_here ) { or_handshake_state_t * s ; if ( conn -> handshake_state ) { log_warn ( LD_BUG , "Duplicate<S2SV_blank>call<S2SV_blank>to<S2SV_blank>connection_init_or_handshake_state!" ) ; return 0 ; } s = conn -> handshake_state = tor_mallo...
<S2SV_ModStart> = 1 ; if ( ! started_here && get_current_link_cert_cert ( ) ) { s -> own_link_cert = tor_cert_dup ( get_current_link_cert_cert ( ) ) ; }
6,316
CWE-000 void * get_ssh_string ( int * datalen , const void * * data , int * stringlen ) { void * ret ; unsigned int len ; if ( * datalen < 4 ) return NULL ; len = GET_32BIT_MSB_FIRST ( ( const unsigned char * ) * data ) ; <S2SV_StartBug> if ( * datalen < len + 4 ) <S2SV_EndBug> return NULL ; ret = ( void * ) ( ( const ...
<S2SV_ModStart> ( * datalen - 4 < len <S2SV_ModEnd> ) return NULL
6,317
CWE-000 static rb_iseq_t * new_child_iseq_ifunc ( rb_iseq_t * iseq , const struct vm_ifunc * ifunc , VALUE name , const rb_iseq_t * parent , enum iseq_type type , int line_no ) { rb_iseq_t * ret_iseq ; debugs ( "[new_child_iseq_ifunc]><S2SV_blank>---------------------------------------\\n" ) ; ret_iseq = rb_iseq_new_if...
<S2SV_ModStart> "[new_child_iseq_ifunc]<<S2SV_blank>---------------------------------------\\n" ) ; iseq_add_mark_object_compile_time <S2SV_ModEnd> ( iseq ,
6,318
CWE-000 int i2c_acquire ( i2c_t bus ) { <S2SV_StartBug> assert ( bus <= I2C_NUMOF ) ; <S2SV_EndBug> mutex_lock ( & locks [ bus ] ) ; return 0 ; }
<S2SV_ModStart> bus ) { if ( ! ( bus < I2C_NUMOF ) ) { return - 1 ; } <S2SV_ModEnd> mutex_lock ( &
6,319
CWE-000 void mptcp_send_active_reset ( struct sock * meta_sk , gfp_t priority ) { struct tcp_sock * meta_tp = tcp_sk ( meta_sk ) ; struct mptcp_cb * mpcb = meta_tp -> mpcb ; struct sock * sk ; if ( ! mpcb -> cnt_subflows ) return ; WARN_ON ( meta_tp -> send_mp_fclose ) ; sk = mptcp_select_ack_sock ( meta_sk ) ; if ( ! ...
<S2SV_ModStart> = 1 ; inet_csk ( sk ) -> icsk_retransmits = 0 ; inet_csk ( sk ) -> icsk_backoff = 0 ;
6,320
CWE-000 void parseConfigFile ( char * path ) { FILE * fp ; fp = fopen ( path , "r" ) ; if ( fp == NULL ) { <S2SV_StartBug> printf ( "Error<S2SV_blank>while<S2SV_blank>opening<S2SV_blank>file:<S2SV_blank>%s\\n" , path ) ; <S2SV_EndBug> <S2SV_StartBug> exit ( 1 ) ; <S2SV_EndBug> } else { char charBuffer ; int line = 1 ; ...
<S2SV_ModStart> NULL ) { fprintf ( stderr , "Error:<S2SV_blank>Openening<S2SV_blank>file<S2SV_blank>%s:<S2SV_blank>" , path ) ; perror ( "" <S2SV_ModEnd> ) ; exit <S2SV_ModStart> ; exit ( EXIT_FAILURE <S2SV_ModEnd> ) ; } <S2SV_ModStart> } else { fprintf ( stderr , "Error:<S2SV_blank>Link<S2SV_blank>name<S2SV_blank>on<S...
6,321
CWE-000 static void ngx_http_upstream_process_request ( ngx_http_request_t * r , ngx_http_upstream_t * u ) { ngx_temp_file_t * tf ; ngx_event_pipe_t * p ; p = u -> pipe ; # if ( NGX_THREADS ) <S2SV_StartBug> if ( p -> writing ) { <S2SV_EndBug> return ; } # endif if ( u -> peer . connection ) { if ( u -> store ) { if ( ...
<S2SV_ModStart> p -> writing && ! p -> aio ) { if ( ngx_event_pipe ( p , 1 ) == NGX_ABORT ) { ngx_http_upstream_finalize_request ( r , u , NGX_ERROR ) ; return ; } } if ( p -> writing
6,322
CWE-000 static void handler_sigwinch ( int which ) { struct winsize ws ; if ( ioctl ( STDOUT_FILENO , TIOCGWINSZ , & ws ) == - 1 ) error_exit ( "Cannot<S2SV_blank>get<S2SV_blank>new<S2SV_blank>window<S2SV_blank>size." ) ; window_height = ws . ws_row ; window_width = ws . ws_col ; <S2SV_StartBug> draw ( ) ; <S2SV_EndBug...
<S2SV_ModStart> . ws_col ; resizeterm ( window_height , window_width ) ;
6,323
CWE-000 <S2SV_StartBug> DEFUN ( show_evpn_vni_vni , <S2SV_EndBug> show_evpn_vni_vni_cmd , "show<S2SV_blank>evpn<S2SV_blank>vni<S2SV_blank>" CMD_VNI_RANGE "[json]" , SHOW_STR "EVPN\\n" <S2SV_StartBug> "VxLAN<S2SV_blank>Network<S2SV_blank>Identifier\\n" <S2SV_EndBug> "VNI<S2SV_blank>number\\n" JSON_STR ) { <S2SV_StartBug...
<S2SV_ModStart> <S2SV_null> DEFUN ( show_evpn_rmac_vni , show_evpn_rmac_vni_cmd , "show<S2SV_blank>evpn<S2SV_blank>rmac<S2SV_blank>vni<S2SV_blank>" <S2SV_ModEnd> CMD_VNI_RANGE "[json]" , <S2SV_ModStart> , SHOW_STR "EVPN\\n" "RMAC\\n" "L3<S2SV_blank>VNI\\n" <S2SV_ModEnd> "VNI<S2SV_blank>number\\n" JSON_STR ) <S2SV_ModSt...
6,324
CWE-000 static void ev_view_size_request_continuous_dual_page ( EvView * view , GtkRequisition * requisition ) { gint n_pages ; n_pages = ev_document_get_n_pages ( view -> document ) + 1 ; get_page_y_offset ( view , n_pages , & requisition -> height ) ; switch ( view -> sizing_mode ) { case EV_SIZING_FIT_WIDTH : case E...
<S2SV_ModStart> ( view , <S2SV_ModEnd> & border )
6,325
CWE-000 <S2SV_StartBug> static void decrypt_buffer ( uint8_t * buf , size_t len ) { <S2SV_EndBug> * buf ++ = 0xff ; uint8_t * const end = buf + len ; uint8_t idx11 = 0 , idx13 = 0 ; while ( buf != end ) { * buf = ( ( * buf - ( 11 - idx11 ) ) ^ ( KEY11 [ idx11 ] ) ^ ( KEY13 [ idx13 ] ) ) + ( 13 - idx13 ) ; ++ buf ; <S2S...
<S2SV_ModStart> len ) { static const uint8_t KEY11 [ ] = { 0x1E , 0x1D , 0xC4 , 0x77 , 0x26 , 0x97 , 0xE0 , 0x74 , 0x59 , 0x88 , 0x7C } ; static const uint8_t KEY13 [ ] = { 0xA9 , 0x84 , 0x8D , 0xCD , 0x75 , 0x83 , 0x43 , 0x63 , 0x24 , 0x83 , 0x19 , 0xF7 , 0x9A } ; <S2SV_ModStart> 11 ) idx11 = <S2SV_ModEnd> 0 ; if <S2S...
6,326
CWE-000 int mpi_dec_test_decode ( MpiDecTestCmd * cmd ) { MPP_RET ret = MPP_OK ; size_t file_size = 0 ; MppCtx ctx = NULL ; MppApi * mpi = NULL ; MppPacket packet = NULL ; MppFrame frame = NULL ; MpiCmd mpi_cmd = MPP_CMD_BASE ; MppParam param = NULL ; RK_U32 need_split = 1 ; RK_U32 width = cmd -> width ; RK_U32 height ...
<S2SV_ModStart> } else { RK_U32 hor_stride = MPP_ALIGN ( width , 16 ) ; RK_U32 ver_stride = MPP_ALIGN ( height , 16 ) ; <S2SV_ModStart> & frm_buf , hor_stride * ver_stride <S2SV_ModEnd> * 2 ) <S2SV_ModStart> frm_buf ) ; <S2SV_ModEnd> } mpp_log (
6,327
CWE-000 unsigned long dma_alloc_from_contiguous ( struct device * dev , int count , unsigned int align ) { unsigned long mask , pfn = 0 , pageno , start = 0 ; struct cma * cma = dev_get_cma_area ( dev ) ; int ret = 0 ; int tries = 0 ; int retry_after_sleep = 0 ; if ( ! cma || ! cma -> count ) return 0 ; if ( align > CO...
<S2SV_ModStart> EBUSY ) { pfn = 0 ;
6,328
CWE-000 static int fake_tx ( struct device * dev , struct net_buf * buf ) { <S2SV_StartBug> TC_PRINT ( "Sending<S2SV_blank>buffer<S2SV_blank>%p<S2SV_blank>-<S2SV_blank>length<S2SV_blank>%u\\n" , <S2SV_EndBug> buf , net_buf_frags_len ( buf ) ) ; net_nbuf_set_ll_reserve ( current_buf , net_nbuf_ll_reserve ( buf ) ) ; ins...
<S2SV_ModStart> { TC_PRINT ( "Sending<S2SV_blank>buffer<S2SV_blank>%p<S2SV_blank>-<S2SV_blank>length<S2SV_blank>%zu\\n" <S2SV_ModEnd> , buf ,
6,329
CWE-000 void Deflate_MakeStream ( Stream * stream , DeflateState * state , Stream * underlying ) { state -> InputPosition = 0 ; state -> Source = underlying ; Stream_SetName ( stream , & underlying -> Name ) ; stream -> Meta_Inflate = state ; <S2SV_StartBug> stream -> Read = Inflate_StreamWrite ; <S2SV_EndBug> stream -...
<S2SV_ModStart> -> Read = Stream_UnsupportedIO <S2SV_ModEnd> ; stream -> <S2SV_ModStart> -> Seek = Stream_UnsupportedSeek <S2SV_ModEnd> ; stream ->
6,330
CWE-000 static struct page * __get_node_page ( struct f2fs_sb_info * sbi , pgoff_t nid , struct page * parent , int start ) { struct page * page ; int err ; if ( ! nid ) return ERR_PTR ( - ENOENT ) ; f2fs_bug_on ( sbi , check_nid_range ( sbi , nid ) ) ; repeat : page = f2fs_grab_cache_page ( NODE_MAPPING ( sbi ) , nid ...
<S2SV_ModStart> LOCKED_PAGE ) { err = 0 ; <S2SV_ModStart> ) ) ) { err = - EIO ; <S2SV_ModStart> goto out_err ; } <S2SV_ModStart> ) ) { f2fs_msg ( sbi -> sb , KERN_WARNING , "inconsistent<S2SV_blank>node<S2SV_blank>block,<S2SV_blank>" "nid:%lu,<S2SV_blank>node_footer[nid:%u,ino:%u,ofs:%u,cpver:%llu,blkaddr:%u]" , nid , ...
6,331
CWE-000 void mmc_gpiod_request_cd_irq ( struct mmc_host * host ) { struct mmc_gpio * ctx = host -> slot . handler_priv ; int irq = - EINVAL ; int ret ; if ( host -> slot . cd_irq >= 0 || ! ctx || ! ctx -> cd_gpio ) return ; if ( ! ( host -> caps & MMC_CAP_NEEDS_POLL ) ) irq = gpiod_to_irq ( ctx -> cd_gpio ) ; if ( irq ...
<S2SV_ModStart> |= MMC_CAP_NEEDS_POLL ; <S2SV_ModEnd> } <S2SV_null> <S2SV_null>
6,332
CWE-000 struct sock * tcp_check_req ( struct sock * sk , struct sk_buff * skb , struct request_sock * req , bool fastopen , bool * req_stolen ) { struct tcp_options_received tmp_opt ; struct sock * child ; const struct tcphdr * th = tcp_hdr ( skb ) ; __be32 flg = tcp_flag_word ( th ) & ( TCP_FLAG_RST | TCP_FLAG_SYN | T...
<S2SV_ModStart> . ts_recent_stamp = ktime_get_seconds <S2SV_ModEnd> ( ) -
6,333
CWE-000 static int resize_stripes ( struct r5conf * conf , int newsize ) { struct stripe_head * osh , * nsh ; LIST_HEAD ( newstripes ) ; struct disk_info * ndisks ; int err ; struct kmem_cache * sc ; int i ; int hash , cnt ; if ( newsize <= conf -> pool_size ) return 0 ; err = md_allow_write ( conf -> mddev ) ; if ( er...
<S2SV_ModStart> - ENOMEM ; mutex_lock ( & conf -> cache_size_mutex ) ; <S2SV_ModStart> kmem_cache_destroy ( sc ) ; mutex_unlock ( & conf -> cache_size_mutex <S2SV_ModStart> - ENOMEM ; mutex_unlock ( & conf -> cache_size_mutex ) ;
6,334
CWE-000 void setSignals ( ) { <S2SV_StartBug> for ( int i = 0 ; i < 9 ; i ++ ) { <S2SV_EndBug> memset ( & ( act [ i ] ) , 0 , sizeof ( act [ i ] ) ) ; memset ( & ( old [ i ] ) , 0 , sizeof ( old [ i ] ) ) ; } sigemptyset ( & set ) ; sigaddset ( & set , SIGUSR1 ) ; sigaddset ( & set , SIGALRM ) ; act [ 0 ] . sa_handler ...
<S2SV_ModStart> ( ) { int i ; for ( <S2SV_ModEnd> i = 0
6,335
CWE-000 static jit_value_t compile_callN ( jit_function_t func , const char * name , Lisp_Object ( * callee ) ( ptrdiff_t , Lisp_Object * ) , int howmany , jit_value_t scratch , jit_value_t * stack ) { jit_value_t args [ 2 ] ; args [ 0 ] = jit_value_create_nint_constant ( func , ptrdiff_t_type , howmany ) ; args [ 1 ] ...
<S2SV_ModStart> , stack [ 1 +
6,336
CWE-000 <S2SV_StartBug> static int <S2SV_EndBug> probe_table ( uint64_t address , const char * sig ) { void * va = hpa2hva ( address ) ; struct acpi_table_header * table = ( struct acpi_table_header * ) va ; <S2SV_StartBug> if ( strncmp ( table -> signature , sig , ACPI_NAME_SIZE ) != 0 ) { <S2SV_EndBug> <S2SV_StartBug...
<S2SV_ModStart> <S2SV_null> <S2SV_null> static bool <S2SV_ModEnd> probe_table ( uint64_t <S2SV_ModStart> ) va ; bool ret ; <S2SV_ModStart> 0 ) { ret = false ; } else { ret = true <S2SV_ModEnd> ; } return <S2SV_ModStart> ; } return ret <S2SV_ModEnd> ; } <S2SV_null>
6,337
CWE-000 int Perl_mg_set ( pTHX_ SV * sv ) { dVAR ; const I32 mgs_ix = SSNEW ( sizeof ( MGS ) ) ; MAGIC * mg ; MAGIC * nextmg ; PERL_ARGS_ASSERT_MG_SET ; if ( PL_localizing == 2 && sv == DEFSV ) return 0 ; if ( sv == UNDEF || sv == PLACEHOLDER || sv == SV_YES || sv == SV_NO ) return 0 ; <S2SV_StartBug> save_magic_flags ...
<S2SV_ModStart> SVs_GMG | SVs_SMG ) ; assert ( sv
6,338
CWE-000 void setup_offset ( ) { int i , k ; for ( i = 0 ; i < NUMLINK - 1 ; i ++ ) { for ( k = 0 ; k < NDIMS ; k ++ ) offset [ i ] [ k ] = 0 ; offset [ i ] [ i ] = 1 ; } for ( k = 0 ; k < NDIMS ; k ++ ) offset [ DIR_5 ] [ k ] = - 1 ; # ifdef DEBUG_CHECK node0_printf ( "There<S2SV_blank>are<S2SV_blank>%d<S2SV_blank>dist...
<S2SV_ModStart> i ) ; FORALLUPDIR ( dir <S2SV_ModEnd> ) node0_printf (
6,339
CWE-000 pid_t # if defined __arm__ && defined __thumb__ && __GNUC_PREREQ ( 4 , 6 ) attribute_optimize ( "O2" ) # endif fork ( void ) { pid_t pid ; struct used_handler { struct fork_handler * handler ; struct used_handler * next ; } * allp = NULL ; struct fork_handler * runp ; while ( ( runp = __fork_handlers ) != NULL ...
<S2SV_ModStart> 0 ) { assert ( THREAD_GETMEM ( THREAD_SELF <S2SV_ModEnd> , tid )
6,340
CWE-000 static inline int _parse_primitive_field ( _context_t * ctx , proto_type_t * type ) { const lexer_token_t * tok = _peek ( ctx , 1 ) ; if ( NULL == tok ) _RAISE ( ctx , return ERROR_CODE ( int ) , "Internal<S2SV_blank>error:<S2SV_blank>cannot<S2SV_blank>peek<S2SV_blank>token" ) ; uint32_t elem_size = tok -> data...
<S2SV_ModStart> ival &= ( elem_size < 8 ? ( <S2SV_ModStart> ) - 1 ) : - 1ll
6,341
CWE-000 value_t fcnCursorReset ( value_t * args , value_t * thisVal , environment_t * env ) { object_t * oval = js_addr ( * thisVal ) ; DbCursor * dbCursor ; Handle * idxHndl ; DbHandle * hndl ; JsMvcc * jsMvcc ; uint64_t bits ; DbAddr next ; value_t s ; s . bits = vt_status ; hndl = ( DbHandle * ) oval -> base -> hndl...
<S2SV_ModStart> -> txnBits ; <S2SV_ModEnd> getSnapshotTimestamp ( jsMvcc <S2SV_ModStart> getSnapshotTimestamp ( jsMvcc <S2SV_ModEnd> , false )
6,342
CWE-000 static void aq_nic_cfg_init_defaults ( struct aq_nic_s * self ) { struct aq_nic_cfg_s * cfg = & self -> aq_nic_cfg ; cfg -> aq_hw_caps = & self -> aq_hw_caps ; cfg -> vecs = AQ_CFG_VECS_DEF ; cfg -> tcs = AQ_CFG_TCS_DEF ; cfg -> rxds = AQ_CFG_RXDS_DEF ; cfg -> txds = AQ_CFG_TXDS_DEF ; cfg -> is_polling = AQ_CFG...
<S2SV_ModStart> ; cfg -> itr = aq_itr <S2SV_ModEnd> ; cfg -> <S2SV_ModStart> ; cfg -> tx_itr = aq_itr_tx ; cfg -> rx_itr = aq_itr_rx <S2SV_ModEnd> ; cfg ->
6,343
CWE-000 void GPU_texture_free ( const GLuint texID ) { GPUTexture * tex = & textures [ texID ] ; tex -> refcount -- ; if ( tex -> refcount < 0 ) printf ( "GPUTexture:<S2SV_blank>negative<S2SV_blank>refcount\\n" ) ; if ( tex -> refcount == 0 ) { GPU_framebuffer_texture_detach_all ( texID ) ; <S2SV_StartBug> glDeleteText...
<S2SV_ModStart> texID ) ; <S2SV_ModEnd> gpu_texture_memory_footprint_remove ( texID
6,344
CWE-000 int Itclng_CreateClassDestructorCmd ( ClientData clientData , Tcl_Interp * interp , int objc , Tcl_Obj * const * objv ) { Tcl_HashEntry * hPtr ; ItclngObjectInfo * infoPtr ; ItclngClass * iclsPtr ; ItclngMemberFunc * imPtr ; <S2SV_StartBug> ItclngShowArgs ( 0 , "Itclng_CreateClassDestructorCmd" , objc , objv ) ...
<S2SV_ModStart> ; ItclngShowArgs ( 1 <S2SV_ModEnd> , "Itclng_CreateClassDestructorCmd" ,
6,345
CWE-000 void test_cleanup_register ( test_cleanup_func func ) { <S2SV_StartBug> struct cleanup_func * cleanup , * * last ; <S2SV_EndBug> cleanup = bmalloc ( sizeof ( struct cleanup_func ) ) ; cleanup -> func = func ; cleanup -> next = NULL ; last = & cleanup_funcs ; while ( * last != NULL ) last = & ( * last ) -> next ...
<S2SV_ModStart> func ) { register_cleanup ( func , NULL , NULL ) <S2SV_ModEnd> ; } <S2SV_null>
6,346
CWE-000 static void intel_tv_pre_enable ( struct intel_encoder * encoder , struct intel_crtc_state * pipe_config , struct drm_connector_state * conn_state ) { struct drm_i915_private * dev_priv = to_i915 ( encoder -> base . dev ) ; struct intel_crtc * intel_crtc = to_intel_crtc ( encoder -> base . crtc ) ; struct intel...
<S2SV_ModStart> = intel_tv_mode_find ( conn_state <S2SV_ModEnd> ) ; u32 <S2SV_ModStart> ; xpos += conn_state -> tv . margins . left <S2SV_ModEnd> ; ypos += <S2SV_ModStart> ; ypos += conn_state -> tv . margins . top <S2SV_ModEnd> ; xsize -= <S2SV_ModStart> xsize -= ( conn_state -> tv . margins . left + conn_state -> tv ...
6,347
CWE-000 static int marvell_nfc_init ( struct marvell_nfc * nfc ) { struct device_node * np = nfc -> dev -> of_node ; if ( nfc -> caps -> need_system_controller ) { struct regmap * sysctrl_base = syscon_regmap_lookup_by_phandle ( np , "marvell,system-controller" ) ; u32 reg ; if ( IS_ERR ( sysctrl_base ) ) return PTR_ER...
<S2SV_ModStart> nfc ) ; marvell_nfc_reset ( nfc <S2SV_ModEnd> ) ; return
6,348
CWE-000 static char * sh_tilde ( Shell_t * shp , const char * string ) { char * cp ; int c ; struct passwd * pw ; Namval_t * np = 0 ; static Dt_t * logins_tree ; if ( * string ++ != '~' ) return NULL ; if ( ( c = * string ) == 0 ) { if ( ! ( cp = nv_getval ( sh_scoped ( shp , HOME ) ) ) ) cp = getlogin ( ) ; return cp ...
<S2SV_ModStart> ) ; } <S2SV_ModEnd> np = nv_search <S2SV_ModStart> , NV_ADD ) ; if ( np
6,349
CWE-000 static int component_register ( void ) { ompi_osc_pt2pt_no_locks = false ; ( void ) mca_base_component_var_register ( & mca_osc_pt2pt_component . super . osc_version , "no_locks" , "Enable<S2SV_blank>optimizations<S2SV_blank>available<S2SV_blank>only<S2SV_blank>if<S2SV_blank>MPI_LOCK<S2SV_blank>is<S2SV_blank>" ...
<S2SV_ModStart> buffer_size ) ; mca_osc_pt2pt_component . receive_count = 4 ; ( void ) mca_base_component_var_register ( & mca_osc_pt2pt_component . super . osc_version , "receive_count" , "Number<S2SV_blank>of<S2SV_blank>receives<S2SV_blank>to<S2SV_blank>post<S2SV_blank>for<S2SV_blank>each<S2SV_blank>window<S2SV_blank...
6,350
CWE-000 void parse_wps_settings ( const u_char * packet , struct pcap_pkthdr * header , char * target , int passive , int mode , int source ) { struct radio_tap_header * rt_header = NULL ; struct dot11_frame_header * frame_header = NULL ; struct libwps_data * wps = NULL ; enum encryption_type encryption = NONE ; char *...
<S2SV_ModStart> ':' ) ; set_bssid ( ( unsigned char * ) frame_header -> addr3 ) ; <S2SV_ModStart> wps ) ; set_bssid ( ( unsigned char * ) NULL_MAC ) ;
6,351
CWE-000 int main ( int argc , char * argv [ ] ) { wiringPiSetup ( ) ; Setup ( ) ; mosquitto_lib_init ( ) ; mosquitto_connect ( mosq , host , port , 60 ) ; printf ( "connessione<S2SV_blank>avvenuta" ) ; mosq = mosquitto_new ( NULL , true , NULL ) ; mosquitto_connect_callback_set ( mosq , connect_callback ) ; mosquitto_m...
<S2SV_ModStart> message_callback ) ; <S2SV_ModEnd> while ( 1 <S2SV_ModStart> != 6 ) <S2SV_ModEnd> gearUP ( sh_time <S2SV_ModStart> } } } <S2SV_ModEnd> <S2SV_null> <S2SV_null> <S2SV_null>
6,352
CWE-000 static int lfs_init ( lfs_t * lfs , const struct lfs_config * cfg ) { lfs -> cfg = cfg ; if ( lfs -> cfg -> read_buffer ) { lfs -> rcache . buffer = lfs -> cfg -> read_buffer ; } else { lfs -> rcache . buffer = lfs_malloc ( lfs -> cfg -> read_size ) ; if ( ! lfs -> rcache . buffer ) { <S2SV_StartBug> return LFS...
<S2SV_ModStart> buffer ) { goto cleanup <S2SV_ModEnd> ; } } <S2SV_ModStart> buffer ) { goto cleanup <S2SV_ModEnd> ; } } <S2SV_ModStart> buffer ) { goto cleanup <S2SV_ModEnd> ; } } <S2SV_ModStart> return 0 ; cleanup : lfs_deinit ( lfs ) ; return LFS_ERR_NOMEM ;
6,353
CWE-000 void renderPoly ( polygon_t * poly , colour_t * colour , frame_t * frame ) { co_ord_t coords [ poly -> no_verts ] ; <S2SV_StartBug> for ( int i = 0 ; i < poly -> no_verts ; i ++ ) { <S2SV_EndBug> <S2SV_StartBug> coords [ i ] . x = F * poly -> verts [ 0 ] [ i ] / poly -> verts [ 2 ] [ i ] ; <S2SV_EndBug> <S2SV_S...
<S2SV_ModStart> no_verts ] ; int midx = frame -> width / 2 ; int midy = frame -> height / 2 ; <S2SV_ModStart> . x = midx + ( <S2SV_ModStart> [ i ] ) <S2SV_ModStart> . y = midy + ( <S2SV_ModStart> [ i ] )
6,354
CWE-000 static void saveopDirect ( cstrCtx h , int op ) { if ( h -> numBlends > 0 ) flushBlends ( h ) ; else if ( h -> stack . cnt != 0 ) { int i ; for ( i = 0 ; i < h -> stack . cnt ; i ++ ) { cstr_savenum ( h , h -> stack . array [ i ] ) ; } h -> stack . cnt = 0 ; } <S2SV_StartBug> cstr_saveop ( h , op ) ; <S2SV_EndB...
<S2SV_ModStart> 0 ; } h -> flushed_cnt = 0 ;
6,355
CWE-000 int f ( unsigned short usVlanID ) { <S2SV_StartBug> unsigned int uiVlanID = 0xffffffff ; <S2SV_EndBug> int i ; if ( ( unsigned short ) 0xffff != usVlanID ) uiVlanID = ( unsigned int ) usVlanID ; return uiVlanID ; }
<S2SV_ModStart> uiVlanID = 0xffffffff <S2SV_ModEnd> ; if (
6,356
CWE-000 static M_CODE lm_worker_perform ( worker_t * w ) { M_CODE r ; int x ; filetype_t * ft = w -> m -> filetypes [ w -> ue_h -> current -> bind - 1 ] ; if ( lm_crawler_flag_isset ( w -> crawler , LM_CRFLAG_JAIL ) ) { url_t * url = w -> ue_h -> current ; url_t * jail_url = & w -> crawler -> jail_url ; if ( url -> fil...
<S2SV_ModStart> == 0 ) { <S2SV_ModStart> sz ) ; } else { <S2SV_ModEnd> ue_move_to_secondary ( w <S2SV_ModStart> tmp ) ; }
6,357
CWE-000 bool process_record_keymap ( uint16_t keycode , keyrecord_t * record ) { switch ( keycode ) { case MO ( _LOWER ) : if ( game ) { if ( record -> event . pressed ) { register_code ( KC_SPC ) ; } else { unregister_code ( KC_SPC ) ; } return false ; } else { return true ; } <S2SV_StartBug> default : <S2SV_EndBug> r...
<S2SV_ModStart> true ; } case KC_LALT : if ( game ) { if ( record -> event . pressed ) { layer_on ( _RAISE ) ; } else { layer_off ( _RAISE ) ; } return false ; } else { return true ; }
6,358
CWE-000 static IUDEVICE * udev_init ( UDEVICE * pdev , UINT16 bus_number , UINT16 dev_number ) { int status , num ; LIBUSB_DEVICE_DESCRIPTOR * devDescriptor ; LIBUSB_CONFIG_DESCRIPTOR * config_temp ; LIBUSB_INTERFACE_DESCRIPTOR interface_temp ; status = udev_get_hub_handle ( pdev , bus_number , dev_number ) ; if ( stat...
<S2SV_ModStart> ( TAG , "Registered<S2SV_blank>Device:<S2SV_blank>Vid:<S2SV_blank>0x%04" <S2SV_ModEnd> PRIX16 "<S2SV_blank>Pid:<S2SV_blank>0x%04" PRIX16
6,359
CWE-000 static LLVMValueRef cgen_resolution_wrapper ( ident_t name , vcode_type_t type ) { char * buf LOCAL = xasprintf ( "%s_resolution" , istr ( name ) ) ; LLVMValueRef fn = LLVMGetNamedFunction ( module , safe_symbol ( buf ) ) ; if ( fn != NULL ) return llvm_void_cast ( fn ) ; <S2SV_StartBug> LLVMTypeRef elem_type =...
<S2SV_ModStart> fn ) ; const bool is_record = vtype_kind ( type ) == VCODE_TYPE_RECORD ; <S2SV_ModStart> ) ; LLVMTypeRef pointer_type = LLVMPointerType ( elem_type , 0 ) ; LLVMTypeRef <S2SV_ModStart> elem_type , 1 ) ; LLVMTypeRef result_type = is_record ? pointer_type : LLVMInt64Type ( <S2SV_ModStart> ] = { pointer_typ...
6,360
CWE-000 void wish_clear ( wish_term * term ) { wish_frame * frame ; <S2SV_StartBug> frame = & term -> frame ; <S2SV_EndBug> <S2SV_StartBug> memset ( frame -> ch , '<S2SV_blank>' , term -> size . x * term -> size . y * sizeof ( * frame -> ch ) ) ; <S2SV_EndBug> <S2SV_StartBug> memset ( frame -> attr , 0 , term -> size ....
<S2SV_ModStart> * frame ; wish_attr attr ; wish_attr_init ( & attr ) ; <S2SV_ModStart> -> frame ; for ( size_t i = 0 ; i < <S2SV_ModEnd> term -> size <S2SV_ModStart> size . y ; ++ i ) { <S2SV_ModEnd> frame -> ch <S2SV_ModStart> frame -> ch [ i ] = '<S2SV_blank>' ; <S2SV_ModEnd> frame -> attr <S2SV_ModStart> frame -> at...
6,361
CWE-000 void Acknowledge ( struct proto_tcp_conn_context * context , uint32_t number ) { struct TCPPacket * packet ; for ( packet = context -> fFirstSentPacket ; packet != NULL ; packet = context -> fFirstSentPacket ) { if ( packet -> fSequenceNumber >= number ) <S2SV_StartBug> return ; <S2SV_EndBug> context -> fFirstS...
<S2SV_ModStart> >= number ) { TRACE ( "packet->fSequenceNumber<S2SV_blank>%d<S2SV_blank>>=<S2SV_blank>number<S2SV_blank>%d" , packet -> fSequenceNumber , number ) ; return ; } <S2SV_ModEnd> context -> fFirstSentPacket
6,362
CWE-000 char * ft_itoa ( int n ) { unsigned int len ; int tmp ; int neg ; char * res ; tmp = n ; len = 1 ; neg = 0 ; n >= 0 ? 0 : ( neg = 1 ) ; if ( n == - 2147483648 ) return ( "-2147483648" ) ; while ( tmp /= 10 ) len ++ ; <S2SV_StartBug> res = ft_strnew ( len + 1 + neg ) ; <S2SV_EndBug> if ( neg ) res [ 0 ] = '-' ; ...
<S2SV_ModStart> len ++ ; if ( ! ( <S2SV_ModStart> 1 + neg ) ) ) return ( NULL
6,363
CWE-000 rc_t cmn_read_uint8_array ( struct cmn_iter * self , uint32_t col_id , uint8_t * * values , uint32_t * values_read ) { uint32_t elem_bits , boff , row_len ; rc_t rc = VCursorCellDataDirect ( self -> cursor , self -> row_id , col_id , & elem_bits , ( const void * * ) values , & boff , & row_len ) ; if ( rc != 0 ...
<S2SV_ModStart> ) ErrMsg ( "cmn_iter.c<S2SV_blank>cmn_read_uint8_array(<S2SV_blank>#%ld<S2SV_blank>).VCursorCellDataDirect()<S2SV_blank>-><S2SV_blank>%R\\n" <S2SV_ModEnd> , self -> <S2SV_ModStart> boff != 0 <S2SV_ModEnd> ) { ErrMsg <S2SV_ModStart> { ErrMsg ( "cmn_iter.c<S2SV_blank>cmn_read_uint8_array(<S2SV_blank>#%ld<...
6,364
CWE-000 static void complete_one ( gpointer key , gpointer value , gpointer user_data ) { <S2SV_StartBug> const char * prefix = user_data ; <S2SV_EndBug> const char * name = key ; const char * last ; last = strrchr ( prefix , ',' ) ; if ( last ) last ++ ; else last = prefix ; if ( ( ! * last && ! strchr ( name , '.' ) ...
<S2SV_ModStart> const char * * option_with_value = user_data ; const char * option = option_with_value [ 0 ] ; const char * prefix = option_with_value [ 1 ] <S2SV_ModEnd> ; const char <S2SV_ModStart> ) ) { if ( option != prefix ) { g_print ( "%s=" , option ) ; }
6,365
CWE-000 static enum req_fsm_nxt cnt_fetch ( struct worker * wrk , struct req * req ) { CHECK_OBJ_NOTNULL ( wrk , WORKER_MAGIC ) ; CHECK_OBJ_NOTNULL ( req , REQ_MAGIC ) ; <S2SV_StartBug> CHECK_OBJ_NOTNULL ( req -> objcore , OBJCORE_MAGIC ) ; <S2SV_EndBug> wrk -> stats -> s_fetch ++ ; ( void ) VRB_Ignore ( req ) ; if ( r...
<S2SV_ModStart> objcore , OBJCORE_MAGIC ) ; AZ ( req -> stale_oc
6,366
CWE-000 int scenario_is_tutorial_3 ( ) { <S2SV_StartBug> return Data_Settings . isCustomScenario && Data_Settings . currentMissionId == 2 ; <S2SV_EndBug> }
<S2SV_ModStart> ) { return !
6,367
CWE-000 void display_wrong_move ( ) { if ( wrong_move ) { printf ( "You<S2SV_blank>entered<S2SV_blank>an<S2SV_blank>invalid<S2SV_blank>move!\\n" ) ; <S2SV_StartBug> wrong_move = 0 ; <S2SV_EndBug> } }
<S2SV_ModStart> ; wrong_move = FALSE <S2SV_ModEnd> ; } }
6,368
CWE-000 struct lsdn_vr * lsdn_vr_new ( struct lsdn_virt * virt , uint16_t prio_num , enum lsdn_direction dir , struct lsdn_vr_action * a ) { assert ( ( prio_num >= LSDN_VR_PRIO_MIN && prio_num < LSDN_VR_PRIO_MAX ) || prio_num == LSDN_PRIO_FORWARD_DST_MAC ) ; struct vr_prio * * ht = ( dir == LSDN_IN ) ? & virt -> ht_in_...
<S2SV_ModStart> -> ctx , NULL <S2SV_ModEnd> ) ; struct <S2SV_ModStart> -> ctx , NULL <S2SV_ModEnd> ) ; }
6,369
CWE-000 int main ( int argc , char * argv [ ] ) { CLIENT * remote_client ; char * line = NULL ; char * transactionType ; char * accountNum1 ; char * accountNum2 ; int amount = 0 ; size_t len = 0 ; FILE * file ; if ( argc < 1 ) { printf ( "Missing<S2SV_blank>filename" ) ; } else { if ( ! doesFileExist ( argv [ 1 ] ) ) {...
<S2SV_ModStart> "<S2SV_blank>" ) ; amount = atoi ( strtok ( NULL , "<S2SV_blank>" ) ) ; <S2SV_ModStart> "<S2SV_blank>" ) ; amount = atoi ( strtok ( NULL , "<S2SV_blank>" ) ) ; <S2SV_ModStart> "<S2SV_blank>" ) ; amount = atoi ( strtok ( NULL , "<S2SV_blank>" ) ) ;
6,370
CWE-000 static int bpf_mkmap ( struct dentry * dentry , umode_t mode , void * arg ) { struct bpf_map * map = arg ; return bpf_mkobj_ops ( dentry , mode , arg , & bpf_map_iops , <S2SV_StartBug> map -> btf ? & bpffs_map_fops : NULL ) ; <S2SV_EndBug> }
<S2SV_ModStart> & bpffs_map_fops : & bpffs_obj_fops <S2SV_ModEnd> ) ; }
6,371
CWE-000 static void scavenge_interrupt_context ( os_context_t * context ) { unsigned int i ; INTERIOR_POINTER_VARS ( pc ) ; # ifdef reg_LIP INTERIOR_POINTER_VARS ( lip ) ; # endif # ifdef ARCH_HAS_LINK_REGISTER INTERIOR_POINTER_VARS ( lr ) ; # endif # ifdef ARCH_HAS_NPC_REGISTER INTERIOR_POINTER_VARS ( npc ) ; # endif ...
<S2SV_ModStart> ++ ) { os_context_register_t * boxed_reg ; lispobj datum ; boxed_reg = os_context_register_addr ( context , <S2SV_ModEnd> boxed_registers [ i <S2SV_ModStart> [ i ] ) ; datum = * boxed_reg <S2SV_ModEnd> ; scavenge ( <S2SV_ModStart> scavenge ( & datum <S2SV_ModEnd> , 1 ) <S2SV_ModStart> ) ; * boxed_reg = ...
6,372
CWE-000 static void update_per_cpu_stat ( void ) { unsigned int cpu ; struct ip_cpu_info * l_ip_info ; for_each_online_cpu ( cpu ) { l_ip_info = & per_cpu ( ip_info , cpu ) ; l_ip_info -> cpu_nr_running = avg_cpu_nr_running ( cpu ) ; <S2SV_StartBug> } <S2SV_EndBug> }
<S2SV_ModStart> cpu ) ; # ifdef DEBUG_INTELLI_PLUG pr_info ( "cpu<S2SV_blank>%u<S2SV_blank>nr_running<S2SV_blank>=><S2SV_blank>%lu\\n" , cpu , l_ip_info -> cpu_nr_running ) ; # endif
6,373
CWE-000 <S2SV_StartBug> void getSnapshotData_float_1D ( float * * data , int dataSeriesLength , TightDataPointStorageF * tdps ) <S2SV_EndBug> { SZ_Reset ( ) ; int i ; if ( tdps -> allSameData ) { float value = bytesToFloat ( tdps -> exactMidBytes ) ; * data = ( float * ) malloc ( sizeof ( float ) * dataSeriesLength ) ;...
<S2SV_ModStart> TightDataPointStorageF * tdps , int errBoundMode <S2SV_ModStart> { if ( errBoundMode <S2SV_ModEnd> != PW_REL ) <S2SV_ModStart> ; if ( errBoundMode <S2SV_ModEnd> != PW_REL )
6,374
CWE-000 uint8_t MCP2515_read_status ( ) { <S2SV_StartBug> } <S2SV_EndBug>
<S2SV_ModStart> ( ) { uint8_t read_data [ 2 ] ; uint8_t cmd [ ] = { MCP_READ_STATUS , 0xFF } ; spi_transmit_recieve ( cmd , read_data , 2 ) ; return read_data [ 1 ] ;
6,375
CWE-000 void hammer2_chain_modify ( hammer2_chain_t * chain , hammer2_tid_t mtid , hammer2_off_t dedup_off , int flags ) { hammer2_blockref_t obref ; hammer2_dev_t * hmp ; hammer2_io_t * dio ; int error ; int wasinitial ; int newmod ; char * bdata ; hmp = chain -> hmp ; obref = chain -> bref ; KKASSERT ( ( chain -> fla...
<S2SV_ModStart> HAMMER2_OFF_MASK_RADIX ) ; atomic_clear_int ( & chain -> flags , HAMMER2_CHAIN_MODIFIED ) ; atomic_add_long ( & hammer2_count_modified_chains , - 1 ) ; if ( chain -> pmp ) hammer2_pfs_memory_wakeup ( chain -> pmp <S2SV_ModEnd> ) ; hammer2_freemap_adjust <S2SV_ModStart> chain -> bytes <S2SV_ModEnd> ) ; }
6,376
CWE-000 <S2SV_StartBug> int initializeObjects ( void ) <S2SV_EndBug> { for ( int i = 0 ; i < MAX_OBJECT ; i ++ ) gameObject [ i ] . type = NOTHING ; return ; }
<S2SV_ModStart> <S2SV_null> <S2SV_null> <S2SV_null> void <S2SV_ModEnd> initializeObjects ( void
6,377
CWE-000 int elan_read_fw_from_sdcard ( char * file_path ) { mm_segment_t oldfs ; struct file * firmware_fp ; int ret = 0 ; int retry = 0 ; int file_len ; if ( file_fw_data_out != NULL ) kfree ( file_fw_data_out ) ; oldfs = get_fs ( ) ; set_fs ( KERNEL_DS ) ; for ( retry = 0 ; retry < 5 ; retry ++ ) { firmware_fp = filp...
<S2SV_ModStart> ; if ( file_fw_data_out <S2SV_ModEnd> == NULL ) <S2SV_ModStart> -> dev , "[elan<S2SV_blank>error]<S2SV_blank>mallco<S2SV_blank>file_fw_data_out<S2SV_blank>error\\n" <S2SV_ModEnd> ) ; ret
6,378
CWE-000 int ncdwio_bufferedfile_write ( NC_dw_bufferedfile * f , void * buf , size_t count ) { int i , err ; size_t midstart , midend ; size_t sblock , soff , eblock , eoff ; size_t off , len ; <S2SV_StartBug> size_t ioret ; <S2SV_EndBug> if ( f -> buffer != NULL ) { <S2SV_StartBug> midstart = ( f -> bsize - f -> pos %...
<S2SV_ModStart> , len ; ssize_t <S2SV_ModEnd> ioret ; if <S2SV_ModStart> { midstart = f -> pos + <S2SV_ModStart> midend = 0 ; } else { midstart -= f -> pos ; midend -= f -> pos
6,379
CWE-000 static int rtnl_fdb_dump ( struct sk_buff * skb , struct netlink_callback * cb ) { struct net_device * dev ; struct nlattr * tb [ IFLA_MAX + 1 ] ; struct net_device * br_dev = NULL ; const struct net_device_ops * ops = NULL ; const struct net_device_ops * cops = NULL ; struct ifinfomsg * ifm = nlmsg_data ( cb -...
<S2SV_ModStart> = 0 ; if ( nlmsg_len ( cb -> nlh ) != sizeof ( struct ndmsg ) && ( nlmsg_len ( cb -> nlh ) != sizeof ( struct ndmsg ) + nla_attr_size ( sizeof ( u32 ) ) ) ) { <S2SV_ModStart> -> ifi_index ; }
6,380
CWE-000 static int llc_ui_recvmsg ( struct kiocb * iocb , struct socket * sock , struct msghdr * msg , size_t len , int flags ) { struct sockaddr_llc * uaddr = ( struct sockaddr_llc * ) msg -> msg_name ; const int nonblock = flags & MSG_DONTWAIT ; struct sk_buff * skb = NULL ; struct sock * sk = sock -> sk ; struct llc...
<S2SV_ModStart> , & timeo , NULL
6,381
CWE-000 void getSample ( uint32_t phase ) { uint32_t LnSample ; uint32_t LnFamily ; uint32_t phaseFrac ; uint32_t morphFrac ; uint32_t Lnvalue1 ; uint32_t Rnvalue1 ; uint32_t Lnvalue2 ; uint32_t Rnvalue2 ; uint32_t interp1 ; uint32_t interp2 ; if ( phase == 0 ) { LnSample = ( position >> 16 ) ; LnFamily = fixMorph >> m...
<S2SV_ModStart> RGB_ON ) { LEDD_ON } } if ( DELTAA ) { ALOGIC_LOW if ( RGB_ON ) { LEDC_OFF } } } else if ( interp2 < interp1 ) { EXPAND_GATE_LOW REV2_GATE_LOW if ( DELTAB ) { BLOGIC_LOW if ( RGB_ON ) { LEDD_OFF } } if ( DELTAA ) { ALOGIC_HIGH if ( RGB_ON ) { LEDC_ON <S2SV_ModEnd> } } }
6,382
CWE-000 static void virQEMUCapsSetHostModel ( virQEMUCapsPtr qemuCaps , virDomainVirtType type , virCPUDefPtr reported , <S2SV_StartBug> virCPUDefPtr migratable ) <S2SV_EndBug> { virQEMUCapsHostCPUDataPtr cpuData = virQEMUCapsGetHostCPUData ( qemuCaps , type ) ; cpuData -> reported = reported ; cpuData -> migratable = ...
<S2SV_ModStart> , virCPUDefPtr migratable , virCPUDefPtr full <S2SV_ModStart> = migratable ; cpuData -> full = full ;
6,383
CWE-000 static void mlx4_rxmode_toggle ( struct rte_eth_dev * dev , enum rxmode_toggle toggle ) { struct priv * priv = dev -> data -> dev_private ; const char * mode ; struct rte_flow_error error ; switch ( toggle ) { case RXMODE_TOGGLE_PROMISC_OFF : case RXMODE_TOGGLE_PROMISC_ON : mode = "promiscuous" ; dev -> data ->...
<S2SV_ModStart> ; break ; default : mode = "undefined" ;
6,384
CWE-000 static int vdbePmaReadBlob ( PmaReader * p , int nByte , u8 * * ppOut ) { int iBuf ; int nAvail ; if ( p -> aMap ) { * ppOut = & p -> aMap [ p -> iReadOff ] ; p -> iReadOff += nByte ; return SQLITE_OK ; } assert ( p -> aBuffer ) ; iBuf = p -> iReadOff % p -> nBuffer ; if ( iBuf == 0 ) { int nRead ; int rc ; if ...
<S2SV_ModStart> aNew ) return SQLITE_NOMEM_BKPT <S2SV_ModEnd> ; p ->
6,385
CWE-000 void dmac_init ( void ) { uint64_t tmp ; dmac_commonreg_intclear_u_t intclear ; dmac_cfg_u_t dmac_cfg ; dmac_reset_u_t dmac_reset ; sysctl_clock_enable ( SYSCTL_CLOCK_DMA ) ; dmac_reset . data = readq ( & dmac -> reset ) ; dmac_reset . reset . rst = 1 ; writeq ( dmac_reset . data , & dmac -> reset ) ; while ( d...
<S2SV_ModStart> chen ) ; dmac_enable ( ) ;
6,386
CWE-000 tSirRetStatus convert_wsc_opaque ( tpAniSirGlobal pMac , tSirAddie * pOld , tDot11fIEWscIEOpaque * pNew ) { <S2SV_StartBug> uint8_t curAddIELen = pOld -> length ; <S2SV_EndBug> pOld -> length = curAddIELen + pNew -> num_data + 6 ; pOld -> addIEdata [ curAddIELen ++ ] = 0xdd ; pOld -> addIEdata [ curAddIELen ++ ...
<S2SV_ModStart> pNew ) { uint16_t <S2SV_ModEnd> curAddIELen = pOld
6,387
CWE-000 static void gthread_segv_trap ( int signum , siginfo_t * info , void * uctx ) { # ifdef __APPLE__ assert ( signum == SIGSEGV || signum == SIGBUS ) ; # else assert ( signum == SIGSEGV ) ; # endif gthread_task_t * current = gthread_task_current ( ) ; Node * page = whichPage ( info -> si_addr ) ; if ( branch_unexp...
<S2SV_ModStart> 0 ) ; page -> protected = FALSE ;
6,388
CWE-000 static lily_container_val * build_traceback_raw ( lily_vm_state * vm ) { lily_call_frame * frame_iter = vm -> call_chain ; int depth = vm -> call_depth ; int i ; if ( vm -> include_last_frame_in_trace == 0 ) { depth -- ; frame_iter = frame_iter -> prev ; vm -> include_last_frame_in_trace = 1 ; } <S2SV_StartBug>...
<S2SV_ModStart> * msgbuf = lily_get_clean_msgbuf <S2SV_ModEnd> ( vm )
6,389
CWE-000 static void _check_node_status ( void ) { json_object * j_obj ; json_object_iter iter ; json_object * j_array = NULL ; json_object * j_value ; char * resp_msg , * * script_argv ; int i , nid , num_ent , retry , status = 0 ; struct node_record * node_ptr ; DEF_TIMERS ; script_argv = xmalloc ( sizeof ( char * ) *...
<S2SV_ModStart> return ; } xfree ( resp_msg ) ;
6,390
CWE-000 int afs_fetch_data ( struct afs_vnode * vnode , struct key * key , struct afs_read * desc ) { struct afs_fs_cursor fc ; int ret ; _enter ( "%s{%x:%u.%u},%x,,," , vnode -> volume -> name , vnode -> fid . vid , vnode -> fid . vnode , vnode -> fid . unique , key_serial ( key ) ) ; ret = - ERESTARTSYS ; if ( afs_be...
<S2SV_ModStart> . cb_break = afs_calc_vnode_cb_break ( vnode ) <S2SV_ModEnd> ; afs_fs_fetch_data (
6,391
CWE-000 static void kvm_setup_pvclock_page ( struct kvm_vcpu * v ) { struct kvm_vcpu_arch * vcpu = & v -> arch ; struct pvclock_vcpu_time_info guest_hv_clock ; if ( unlikely ( kvm_read_guest_cached ( v -> kvm , & vcpu -> pv_time , & guest_hv_clock , sizeof ( guest_hv_clock ) ) ) ) return ; BUILD_BUG_ON ( offsetof ( str...
<S2SV_ModStart> 0 ) ; if ( guest_hv_clock . version & 1 ) ++ guest_hv_clock . version ;
6,392
CWE-000 static int ext4_valid_extent ( struct inode * inode , struct ext4_extent * ext ) { ext4_fsblk_t block = ext4_ext_pblock ( ext ) ; int len = ext4_ext_get_actual_len ( ext ) ; ext4_lblk_t lblock = le32_to_cpu ( ext -> ee_block ) ; <S2SV_StartBug> ext4_lblk_t last = lblock + len - 1 ; <S2SV_EndBug> if ( lblock > l...
<S2SV_ModStart> ee_block ) ; if ( <S2SV_ModEnd> lblock + len <S2SV_ModStart> lblock + len <= lblock <S2SV_ModEnd> ) return 0
6,393
CWE-000 static inline int vnc_wait_connect ( int display ) { int errcode ; <S2SV_StartBug> int result ; <S2SV_EndBug> while ( g_vnc_sessions [ display ] == NULL || g_vnc_sessions [ display ] -> state != VNCSERVER_RUNNING ) { do { ret = nxsem_wait ( & g_fbstartup [ display ] . fbconnect ) ; if ( ret < 0 && ret != - EINT...
<S2SV_ModStart> errcode ; int ret <S2SV_ModEnd> ; while ( <S2SV_ModStart> EINTR ) ; ret <S2SV_ModEnd> = g_fbstartup [ <S2SV_ModStart> ; if ( ret <S2SV_ModEnd> != - EBUSY <S2SV_ModStart> CONFIG_DEBUG_FEATURES if ( ret <S2SV_ModEnd> < 0 ) <S2SV_ModStart> ( "ERROR:<S2SV_blank>VNC<S2SV_blank>server<S2SV_blank>startup<S2SV_...
6,394
CWE-000 void WebBrowserTest ( void ) { Ihandle * txt , * dlg , * web ; Ihandle * btLoad , * btReload , * btBack , * btForward , * btStop ; # ifndef WIN32 Ihandle * history ; # endif IupWebBrowserOpen ( ) ; web = IupWebBrowser ( ) ; dlg = IupDialog ( IupVbox ( IupHbox ( btBack = IupButton ( "Back" , NULL ) , btForward =...
<S2SV_ModStart> , "VALUE" , "https://www.google.com" <S2SV_ModEnd> ) ; IupSetAttribute <S2SV_ModStart> history_cb ) ; IupSetAttribute ( history , "MY_WEB" , ( char * ) web ) ;
6,395
CWE-000 static sqInt NoDbgRegParms blockDispatchTargetsForperformarg ( CogMethod * cogMethod , usqInt ( * binaryFunction ) ( sqInt mcpc , sqInt arg ) , sqInt arg ) { sqInt blockEntry ; <S2SV_StartBug> sqInt end ; <S2SV_EndBug> sqInt pc ; sqInt result ; usqInt targetpc ; if ( ( ( cogMethod -> blockEntryOffset ) ) == 0 )...
<S2SV_ModStart> sqInt blockEntry ; usqInt <S2SV_ModEnd> end ; sqInt
6,396
CWE-000 EFI_STATUS PxeBcCacheDhcp4Offer ( IN PXEBC_PRIVATE_DATA * Private , IN EFI_DHCP4_PACKET * RcvdOffer ) { PXEBC_DHCP4_PACKET_CACHE * Cache4 ; EFI_DHCP4_PACKET * Offer ; PXEBC_OFFER_TYPE OfferType ; EFI_STATUS Status ; ASSERT ( Private -> OfferNum < PXEBC_OFFER_MAX_NUM ) ; Cache4 = & Private -> OfferBuffer [ Priva...
<S2SV_ModStart> else if ( ( OfferType == PxeOfferTypeProxyPxe10 || OfferType == PxeOfferTypeProxyWfm11a ) && Private -> OfferCount [ OfferType ] < 1 ) { Private -> OfferIndex [ OfferType ] [ 0 ] = Private -> OfferNum ; Private -> OfferCount [ OfferType ] = 1 ; } else { return EFI_ABORTED ; } } else <S2SV_ModEnd> { Priv...
6,397
CWE-000 <S2SV_StartBug> static int __cpufreq_remove_dev_prepare ( struct device * dev , <S2SV_EndBug> struct subsys_interface * sif ) { unsigned int cpu = dev -> id ; int ret = 0 ; struct cpufreq_policy * policy ; pr_debug ( "%s:<S2SV_blank>unregistering<S2SV_blank>CPU<S2SV_blank>%u\\n" , __func__ , cpu ) ; policy = cp...
<S2SV_ModStart> device * dev <S2SV_ModEnd> ) { unsigned <S2SV_ModStart> ( ret ) <S2SV_ModEnd> pr_err ( "%s:<S2SV_blank>Failed<S2SV_blank>to<S2SV_blank>stop<S2SV_blank>governor\\n" <S2SV_ModStart> __func__ ) ; <S2SV_ModEnd> } down_write (
6,398
CWE-000 static int refresh_one ( const char * controller , const char * path , Hashmap * a , Hashmap * b , unsigned iteration , unsigned depth , Group * * ret ) { _cleanup_closedir_ DIR * d = NULL ; Group * ours = NULL ; int r ; assert ( controller ) ; assert ( path ) ; assert ( a ) ; if ( depth > arg_depth ) return 0 ...
<S2SV_ModStart> "/" , fn <S2SV_ModEnd> ) ; if
6,399
CWE-000 static void hub_activate ( struct usb_hub * hub , enum hub_activation_type type ) { struct usb_device * hdev = hub -> hdev ; struct usb_hcd * hcd ; int ret ; int port1 ; int status ; bool need_debounce_delay = false ; unsigned delay ; if ( type == HUB_INIT2 ) goto init2 ; if ( type == HUB_INIT3 ) goto init3 ; i...
<S2SV_ModStart> } if ( ( portchange & USB_PORT_STAT_C_BH_RESET ) && hub_is_superspeed ( hub -> hdev ) ) { need_debounce_delay = true ; clear_port_feature ( hub -> hdev , port1 , USB_PORT_FEAT_C_BH_PORT_RESET ) ; } if (