Unnamed: 0 int64 0 535k | source stringlengths 50 89.8k | target stringlengths 23 37.7k |
|---|---|---|
100 | CWE-000 int pci_write_config_dword ( const struct pci_dev * dev , int where , u32 val ) { if ( pci_dev_is_disconnected ( dev ) ) <S2SV_StartBug> return - ENODEV ; <S2SV_EndBug> return pci_bus_write_config_dword ( dev -> bus , dev -> devfn , where , val ) ; } | <S2SV_ModStart> ) ) return PCIBIOS_DEVICE_NOT_FOUND <S2SV_ModEnd> ; return pci_bus_write_config_dword |
101 | CWE-000 <S2SV_StartBug> u8 * peer_accept_channel ( struct lightningd * ld UNNEEDED , <S2SV_EndBug> const struct pubkey * peer_id UNNEEDED , const struct wireaddr * addr UNNEEDED , const struct crypto_state * cs UNNEEDED , u64 gossip_index UNNEEDED , const u8 * gfeatures UNNEEDED , const u8 * lfeatures UNNEEDED , int pe... | <S2SV_ModStart> * peer_accept_channel ( const tal_t * ctx UNNEEDED , |
102 | CWE-000 u16_t pbuf_copy_partial ( struct pbuf * buf , void * dataptr , u16_t len , u16_t offset ) { struct pbuf * p ; u16_t left ; u16_t buf_copy_len ; u16_t copied_total = 0 ; LWIP_ERROR ( "pbuf_copy_partial:<S2SV_blank>invalid<S2SV_blank>buf" , ( buf != NULL ) , return 0 ; ) ; LWIP_ERROR ( "pbuf_copy_partial:<S2SV_bl... | <S2SV_ModStart> = 0 ; <S2SV_ModEnd> for ( p |
103 | CWE-000 static enum hrtimer_restart smsc95xx_recv ( struct hrtimer * timer ) { static unsigned char recv_buf [ AX_RX_URB_SIZE ] ; unsigned char * buf_ptr ; int err ; int actual_len ; u32 packet_len ; int cur_buf_align ; struct tasklet_hrtimer * thr = container_of ( timer , struct tasklet_hrtimer , timer ) ; tEdrvInstan... | <S2SV_ModStart> & actual_len , 500 ) ; if ( err == - ETIMEDOUT ) goto Exit <S2SV_ModEnd> ; printk ( |
104 | CWE-000 int mlx4_ib_multiplex_cm_handler ( struct ib_device * ibdev , int port , int slave_id , struct ib_mad * mad ) { struct id_map_entry * id ; u32 sl_cm_id ; int pv_cm_id = - 1 ; if ( mad -> mad_hdr . attr_id == CM_REQ_ATTR_ID || mad -> mad_hdr . attr_id == CM_REP_ATTR_ID || mad -> mad_hdr . attr_id == CM_SIDR_REQ_... | <S2SV_ModStart> ; id = id_map_get ( ibdev , & pv_cm_id , slave_id , sl_cm_id ) ; if ( id ) goto cont ; id = <S2SV_ModStart> EINVAL ; } cont : |
105 | CWE-000 QDF_STATUS csr_roam_process_command ( tpAniSirGlobal pMac , tSmeCmd * pCommand ) { QDF_STATUS lock_status , status = QDF_STATUS_SUCCESS ; tCsrRoamInfo roamInfo ; uint32_t sessionId = pCommand -> sessionId ; tCsrRoamSession * pSession = CSR_GET_SESSION ( pMac , sessionId ) ; if ( ! pSession ) { sme_err ( "sessio... | <S2SV_ModStart> case eCsrForcedDisassoc : if ( eCSR_ROAMING_STATE_IDLE == sme_get_current_roam_state ( pMac , sessionId ) ) { sme_err ( "Ignore<S2SV_blank>eCsrForcedDisassoc<S2SV_blank>cmd<S2SV_blank>on<S2SV_blank>roam<S2SV_blank>state<S2SV_blank>%d" , eCSR_ROAMING_STATE_IDLE ) ; return QDF_STATUS_E_FAILURE ; } |
106 | CWE-000 static int32_t rtcwrite ( Chan * c , void * buf , int32_t n , int64_t off ) { <S2SV_StartBug> Mach * m = machp ( ) ; <S2SV_EndBug> int t ; char * a , * start ; Rtc rtc ; uint32_t secs ; uint8_t bcdclock [ Nbcd ] ; char * cp , * ep ; uint32_t offset = off ; if ( offset != 0 ) error ( Ebadarg ) ; switch ( ( uint3... | <S2SV_ModStart> off ) { Proc * up <S2SV_ModEnd> = machp ( <S2SV_ModStart> machp ( ) -> externup |
107 | CWE-000 static int luci_unlink ( struct inode * dir , struct dentry * dentry ) { <S2SV_StartBug> # if LINUX_VERSION_CODE < KERNEL_VERSION ( 4 , 0 , 0 ) <S2SV_EndBug> struct inode * inode = dentry -> d_inode ; # else struct inode * inode = d_inode ( dentry ) ; # endif struct luci_dir_entry_2 * de ; struct page * page ; ... | <S2SV_ModStart> dentry ) { struct inode * inode = DENTRY_INODE ( dentry ) ; <S2SV_ModEnd> struct luci_dir_entry_2 * |
108 | CWE-000 int main ( void ) { <S2SV_StartBug> write ( 2 , <S2SV_EndBug> "and<S2SV_blank>that<S2SV_blank>piece<S2SV_blank>of<S2SV_blank>art<S2SV_blank>is<S2SV_blank>useful\\"<S2SV_blank>-<S2SV_blank>Dora<S2SV_blank>Korpar,<S2SV_blank>2015-10-19\\n" , 59 ) ; return ( 1 ) ; } | <S2SV_ModStart> ( 2 , "and<S2SV_blank>that<S2SV_blank>piece<S2SV_blank>of<S2SV_blank>art<S2SV_blank>is<S2SV_blank>useful\\"<S2SV_blank>-<S2SV_blank>Dora<S2SV_blank>Korpar,<S2SV_blank>2015-10-19\\n" <S2SV_ModEnd> , 59 ) |
109 | CWE-000 static void test_QueueSubsOnReconnect ( void ) { natsStatus s ; natsConnection * nc = NULL ; natsSubscription * sub1 = NULL ; natsSubscription * sub2 = NULL ; natsOptions * opts = NULL ; natsPid serverPid = NATS_INVALID_PID ; struct threadArg arg ; s = _createDefaultThreadArgsForCbTests ( & arg ) ; if ( s == NA... | <S2SV_ModStart> char seq [ 20 <S2SV_ModEnd> ] ; snprintf <S2SV_ModStart> char seq [ 20 <S2SV_ModEnd> ] ; snprintf |
110 | CWE-000 int tls_sw_sendpage ( struct sock * sk , struct page * page , int offset , size_t size , int flags ) { long timeo = sock_sndtimeo ( sk , flags & MSG_DONTWAIT ) ; struct tls_context * tls_ctx = tls_get_ctx ( sk ) ; struct tls_sw_context_tx * ctx = tls_sw_ctx_tx ( tls_ctx ) ; unsigned char record_type = TLS_RECOR... | <S2SV_ModStart> int record_room ; int ret = 0 ; bool eor <S2SV_ModEnd> ; if ( |
111 | CWE-000 <S2SV_StartBug> void parse_packet ( const char * pbuffer , const int buff_size ) { <S2SV_EndBug> char c_op [ 2 ] ; memcpy ( c_op , pbuffer , sizeof ( twobyte ) ) ; p . op = atoi ( c_op ) ; if ( IS_RRQ ( p . op ) || IS_WRQ ( p . op ) ) { int filenamel = 0 ; int model = 0 ; memset ( p . filename , 0 , sizeof ( p ... | <S2SV_ModStart> buff_size ) { for ( int i = 0 ; i < buff_size ; ++ i ) { printf ( "%c\\n" , pbuffer [ i ] ) ; } <S2SV_ModStart> } else { printf ( "OP:<S2SV_blank>%d\\n" , p . op ) ; |
112 | CWE-000 static int do_sysctl ( mib_t * mp , size_t xpect ) <S2SV_StartBug> { <S2SV_EndBug> for ( ; mp -> m_fetched == 0 ; ) { int sts ; sts = sysctl ( mp -> m_mib , ( u_int ) mp -> m_miblen , mp -> m_data , & mp -> m_datalen , NULL , 0 ) ; if ( pmDebugOptions . appl0 ) { fprintf ( stderr , "sysctl(%s%s)<S2SV_blank>-><S... | <S2SV_ModStart> xpect ) { if ( pmDebugOptions . appl0 && pmDebugOptions . desperate ) { fprintf ( stderr , "do_sysctl(%s,<S2SV_blank>%d)<S2SV_blank>m_data=%p<S2SV_blank>m_datalen=%d<S2SV_blank>m_fetched=%d\\n" , mp -> m_name , ( int ) xpect , mp -> m_data , mp -> m_datalen , mp -> m_fetched ) ; } <S2SV_ModStart> ) ; re... |
113 | CWE-000 static int mod_thread_instantiate ( UNUSED CONF_SECTION const * conf , void * instance , fr_event_list_t * el , void * thread ) { logtee_instance_t * inst = instance ; logtee_thread_instance_t * t = thread ; MEM ( t -> fring = fr_fring_alloc ( t , inst -> buffer_depth , false ) ) ; t -> inst = inst ; t -> el = ... | <S2SV_ModStart> , t ) == NULL <S2SV_ModEnd> ) return - |
114 | CWE-000 static uint32_t rpmb_data_req ( int fd , struct rpmb_data_frame * req_frm , size_t req_nfrm , struct rpmb_data_frame * rsp_frm , size_t rsp_nfrm ) { int st ; size_t i ; uint16_t msg_type = ntohs ( req_frm -> msg_type ) ; struct mmc_ioc_cmd cmd ; memset ( & cmd , 0 , sizeof ( cmd ) ) ; cmd . blksz = 512 ; cmd . ... | <S2SV_ModStart> TEEC_ERROR_BAD_PARAMETERS ; } # if __GNUC__ > 6 __attribute__ ( ( fallthrough ) ) ; # endif |
115 | CWE-000 void timer ( ) { <S2SV_StartBug> BOOL isempty ; <S2SV_EndBug> pthread_mutex_lock ( & lock ) ; <S2SV_StartBug> count += 1 ; <S2SV_EndBug> pthread_cond_broadcast ( & cv ) ; pthread_mutex_unlock ( & lock ) ; if ( inqueue . length > max_num_in_line ) { max_num_in_line = inqueue . length ; } } | <S2SV_ModStart> ( ) { static unsigned int val = 0 <S2SV_ModEnd> ; pthread_mutex_lock ( <S2SV_ModStart> count += 1 ; val ^= 1 ; out8 ( port_a , val ) |
116 | CWE-000 static int ntfs_readpage ( struct file * file , struct page * page ) { loff_t i_size ; struct inode * vi ; ntfs_inode * ni , * base_ni ; u8 * addr ; ntfs_attr_search_ctx * ctx ; MFT_RECORD * mrec ; unsigned long flags ; u32 attr_len ; <S2SV_StartBug> int err = 0 ; <S2SV_EndBug> retry_readpage : BUG_ON ( ! PageL... | <S2SV_ModStart> err = 0 ; ntfs_debug ( "[%s]<S2SV_blank>Enter<S2SV_blank>ntfs_readpage<S2SV_blank>" , current -> comm ) <S2SV_ModStart> . base_ntfs_ino ; ntfs_debug ( "[%s]<S2SV_blank>Before<S2SV_blank>map_mft_record<S2SV_blank>base_ni<S2SV_blank>" , current -> comm ) ; |
117 | CWE-000 gboolean ifnet_update_parsers_by_connection ( NMConnection * connection , const char * conn_name , const char * config_file , const char * wpa_file , gchar * * out_new_name , gchar * * out_backup , GError * * error ) { NMSettingConnection * s_con ; NMSettingIPConfig * s_ip6 ; gboolean success = FALSE ; const ch... | <S2SV_ModStart> wired = FALSE <S2SV_ModEnd> ; const char <S2SV_ModStart> ) goto out <S2SV_ModEnd> ; wired = |
118 | CWE-000 int seek_linklist_rawfile ( linklist_rawfile_t * ll_rawfile , unsigned int framenum ) { if ( ! ll_rawfile ) { linklist_err ( "Null<S2SV_blank>linklist_rawfile\\n" ) ; return - 1 ; } <S2SV_StartBug> unsigned int fileindex = framenum / ll_rawfile -> fpf ; <S2SV_EndBug> if ( fileindex != ll_rawfile -> fileindex ||... | <S2SV_ModStart> ll_rawfile -> fpf ; printf ( "Framenum<S2SV_blank>%d,<S2SV_blank>fileindex<S2SV_blank>%d,<S2SV_blank>other<S2SV_blank>fileindex<S2SV_blank>%d\\n" , framenum , fileindex , ll_rawfile -> fileindex ) |
119 | CWE-000 static void ibus_levena_engine_update ( IBusLevenaEngine * klass ) { <S2SV_StartBug> g_printf ( "levena-engine<S2SV_blank>init!<S2SV_blank>in<S2SV_blank>classzzzz" ) ; <S2SV_EndBug> } | <S2SV_ModStart> klass ) { g_print ( "signal_update" <S2SV_ModEnd> ) ; } |
120 | CWE-000 SPVM_OP * SPVM_OP_build_enumeration_value ( SPVM_COMPILER * compiler , SPVM_OP * op_name , SPVM_OP * op_constant ) { if ( op_constant ) { SPVM_CONSTANT * constant = op_constant -> uv . constant ; if ( constant -> type -> dimension == 0 && constant -> type -> basic_type -> id == SPVM_BASIC_TYPE_C_ID_INT ) { comp... | <S2SV_ModStart> = SPVM_SUB_C_CALL_TYPE_ID_CLASS_METHOD ; SPVM_LIST_push ( compiler -> current_sub_names , ( void * ) op_name -> uv . name ) ; |
121 | CWE-000 static int com20020pci_probe ( struct pci_dev * pdev , const struct pci_device_id * id ) { struct com20020_pci_card_info * ci ; struct com20020_pci_channel_map * mm ; struct net_device * dev ; struct arcnet_local * lp ; struct com20020_priv * priv ; int i , ioaddr , ret ; struct resource * r ; if ( pci_enable_d... | <S2SV_ModStart> ! card ) { ret = <S2SV_ModEnd> - ENOMEM ; <S2SV_ModStart> - ENOMEM ; goto out_port ; } |
122 | CWE-000 int pj_apply_vgridshift ( PJ * defn , const char * listname , PJ_GRIDINFO * * * gridlist_p , int * gridlist_count_p , int inverse , long point_count , int point_offset , double * x , double * y , double * z ) { int i ; static int debug_count = 0 ; PJ_GRIDINFO * * tables ; if ( * gridlist_p == NULL ) { * gridlis... | <S2SV_ModStart> ; int itable = 0 <S2SV_ModStart> io ] ; if ( input . phi != input . phi || input . lam != input . lam ) itable = * gridlist_count_p ; for ( <S2SV_ModEnd> ; itable < |
123 | CWE-000 int main ( void ) { printf ( "hello<S2SV_blank>world!\\n" ) ; <S2SV_StartBug> } <S2SV_EndBug> | <S2SV_ModStart> "hello<S2SV_blank>world!\\n" ) ; return 0 ; |
124 | CWE-000 static int set_search ( ares_channel channel , const char * str ) { <S2SV_StartBug> int n ; <S2SV_EndBug> const char * p , * q ; if ( channel -> ndomains != - 1 ) { for ( n = 0 ; n < channel -> ndomains ; n ++ ) ares_free ( channel -> domains [ n ] ) ; ares_free ( channel -> domains ) ; channel -> domains = NUL... | <S2SV_ModStart> { int n ; size_t cnt <S2SV_ModStart> 1 ; } channel -> domains = ares_strsplit ( str , ",<S2SV_blank>" , 1 , & cnt ) ; <S2SV_ModEnd> channel -> ndomains <S2SV_ModStart> -> ndomains = ( size_t ) cnt <S2SV_ModEnd> ; if ( <S2SV_ModStart> ; if ( <S2SV_ModEnd> channel -> domains <S2SV_ModStart> channel -> dom... |
125 | CWE-000 int swTable_create ( swTable * table ) { uint32_t row_num = table -> size * ( 1 + SW_TABLE_CONFLICT_PROPORTION ) ; uint32_t row_memory_size = sizeof ( swTableRow ) + table -> item_size ; size_t memory_size = row_num * row_memory_size ; memory_size += sizeof ( swMemoryPool ) + sizeof ( swFixedPool ) + ( ( row_nu... | <S2SV_ModStart> PTHREAD_PROCESS_SHARED ) ; pthread_mutexattr_setprotocol ( & attr , PTHREAD_PRIO_INHERIT ) ; |
126 | CWE-000 char * command_output ( const char * command ) { int idxc = 0 , bufsize_step = 256 , bufsize = bufsize_step ; char * buffer = ( char * ) malloc ( bufsize ) ; FILE * found = popen ( command , "r" ) ; if ( ! found ) { <S2SV_StartBug> fprintf ( stderr , "Cannot<S2SV_blank>into<S2SV_blank>popen.\\n" ) ; <S2SV_EndBu... | <S2SV_ModStart> ( stderr , "command_output():<S2SV_blank>Cannot<S2SV_blank>into<S2SV_blank>popen.\\n" <S2SV_ModEnd> ) ; return <S2SV_ModStart> ( stderr , "command_output():<S2SV_blank>Cannot<S2SV_blank>into<S2SV_blank>pclose.\\n" <S2SV_ModEnd> ) ; return |
127 | CWE-000 int _gnix_vc_nic_progress ( struct gnix_nic * nic ) { struct gnix_vc * vc ; <S2SV_StartBug> int ret ; <S2SV_EndBug> while ( ( vc = __gnix_nic_next_pending_vc ( nic ) ) ) { COND_ACQUIRE ( vc -> ep -> requires_lock , & vc -> ep -> vc_lock ) ; if ( vc -> conn_state != GNIX_VC_CONNECTED ) { COND_RELEASE ( vc -> ep ... | <S2SV_ModStart> ; int ret , ret_tx <S2SV_ModStart> ret ) ; ret_tx <S2SV_ModEnd> = __gnix_vc_push_tx_reqs ( <S2SV_ModStart> __gnix_vc_push_tx_reqs ( vc <S2SV_ModEnd> ) ; COND_RELEASE <S2SV_ModStart> vc_lock ) ; if ( ret_tx != FI_SUCCESS ) { GNIX_DEBUG ( FI_LOG_EP_CTRL , "__gnix_vc_push_tx_reqs<S2SV_blank>failed:<S2SV_bl... |
128 | CWE-000 void op_swap ( stack_t * * stack , unsigned int line_number ) { stack_t * head , * tmp_node ; head = * stack ; if ( ! head || head -> next == NULL ) { printf ( "L%d:<S2SV_blank>can\'t<S2SV_blank>swap,<S2SV_blank>stack<S2SV_blank>too<S2SV_blank>short\\n" , line_number ) ; exit ( EXIT_FAILURE ) ; } tmp_node = hea... | <S2SV_ModStart> -> next ; free ( head ) ; head <S2SV_ModEnd> = tmp_node -> <S2SV_ModStart> prev = tmp_node ; head -> next = tmp_node -> next -> next |
129 | CWE-000 static void usage ( const char * cmd ) { printf ( "Usage:<S2SV_blank>%s<S2SV_blank>[options]<S2SV_blank>host<S2SV_blank>port\\n" "\\n" "Options:\\n" "<S2SV_blank><S2SV_blank>-a<S2SV_blank><alpn<S2SV_blank>list><S2SV_blank><S2SV_blank><S2SV_blank><S2SV_blank><S2SV_blank><S2SV_blank><S2SV_blank>a<S2SV_blank>coma<... | <S2SV_ModStart> "<S2SV_blank><S2SV_blank>-l<S2SV_blank>log-file<S2SV_blank><S2SV_blank><S2SV_blank><S2SV_blank><S2SV_blank><S2SV_blank><S2SV_blank><S2SV_blank><S2SV_blank><S2SV_blank>file<S2SV_blank>to<S2SV_blank>log<S2SV_blank>traffic<S2SV_blank>secrets\\n" "<S2SV_blank><S2SV_blank>-p<S2SV_blank>path<S2SV_blank><S2SV_... |
130 | CWE-000 <S2SV_StartBug> void grpc_jwt_verifier_destroy ( grpc_jwt_verifier * v ) { <S2SV_EndBug> size_t i ; if ( v == NULL ) return ; <S2SV_StartBug> grpc_httpcli_context_destroy ( & v -> http_ctx ) ; <S2SV_EndBug> if ( v -> mappings != NULL ) { for ( i = 0 ; i < v -> num_mappings ; i ++ ) { gpr_free ( v -> mappings [ ... | <S2SV_ModStart> void grpc_jwt_verifier_destroy ( grpc_exec_ctx * exec_ctx , <S2SV_ModStart> ; grpc_httpcli_context_destroy ( exec_ctx , |
131 | CWE-000 static void warn_if_shadowing ( tree new_decl ) { struct c_binding * b ; if ( ! ( warn_shadow || warn_shadow_local || warn_shadow_compatible_local ) || DECL_IS_BUILTIN ( new_decl ) || DECL_FROM_INLINE ( new_decl ) ) return ; for ( b = I_SYMBOL_BINDING ( DECL_NAME ( new_decl ) ) ; b ; b = b -> shadowed ) if ( b ... | <S2SV_ModStart> else if ( decl_built_in_p <S2SV_ModEnd> ( old_decl ) |
132 | CWE-000 static int16_t menu_get_cell_height_callback ( MenuLayer * menu_layer , MenuIndex * cell_index , void * callback_context ) { if ( debug_timeline ) { APP_LOG ( APP_LOG_LEVEL_DEBUG , "--><S2SV_blank>cell<S2SV_blank>height<S2SV_blank>section:<S2SV_blank>%d<S2SV_blank>row:<S2SV_blank>%d" , cell_index -> section , c... | <S2SV_ModStart> : if ( debug <S2SV_ModEnd> ) { APP_LOG <S2SV_ModStart> ( APP_LOG_LEVEL_DEBUG , "--><S2SV_blank>antw<S2SV_blank>id<S2SV_blank>%d;<S2SV_blank>height<S2SV_blank>%d" <S2SV_ModEnd> , antw [ <S2SV_ModStart> ] . id , antw [ cell_index -> row ] . hight <S2SV_ModStart> ) { return antw <S2SV_ModEnd> [ cell_index ... |
133 | CWE-000 <S2SV_StartBug> char * * setup_n_receive ( ) { <S2SV_EndBug> char cwd [ 256 ] ; char inlin [ 256 ] ; getcwd ( cwd , 256 ) ; printf ( "\\n%s>><S2SV_blank>" , cwd ) ; fgets ( inlin , 256 , stdin ) ; inlin [ strlen ( inlin ) - 1 ] = 0 ; <S2SV_StartBug> return parse_args ( inlin ) ; <S2SV_EndBug> } | <S2SV_ModStart> <S2SV_null> <S2SV_null> <S2SV_null> void setup_n_receive ( <S2SV_ModStart> char * * buff , char * cwd , char * inlin ) { <S2SV_ModEnd> getcwd ( cwd <S2SV_ModStart> = 0 ; <S2SV_ModEnd> parse_args ( inlin <S2SV_ModStart> parse_args ( inlin , buff |
134 | CWE-000 static void harp_idl_fill_error_struct ( harp_IDLError * fill , const short err ) { const char * message ; message = harp_errno_to_string ( err ) ; if ( message [ 0 ] == '\\0' ) { switch ( err ) { case HARP_IDL_ERR_EXPECTED_STRUCT : message = "structure<S2SV_blank>argument<S2SV_blank>expected" ; break ; case HA... | <S2SV_ModStart> : message = "unknown<S2SV_blank>error" <S2SV_ModEnd> ; break ; |
135 | CWE-000 void machFunctionEpilogue ( Machine * m ) { instructionPrintf ( ".func_end:" ) ; while ( bufCount ( m -> stack ) > 0 ) { <S2SV_StartBug> stackPop ( m , Reg_RBX ) ; <S2SV_EndBug> } instructionPrintf ( "pop<S2SV_blank>rbp" ) ; instructionPrintf ( "ret" ) ; } | <S2SV_ModStart> 0 ) { machStackPop <S2SV_ModEnd> ( m , <S2SV_ModStart> ( m , machHelperInt64 ( ) <S2SV_ModEnd> ) ; } |
136 | CWE-000 int main ( ) { int qtdProgramas ; scanf ( "%d" , & qtdProgramas ) ; FilaProgramas * filaPreOrdem = criaFila ( qtdProgramas ) ; FilaProgramas * filaInOrdem = criaFila ( qtdProgramas ) ; for ( int i = 0 ; i < qtdProgramas ; i ++ ) { char * nomePrograma = malloc ( TAM_NOME * sizeof ( char ) ) ; scanf ( "%s" , nome... | <S2SV_ModStart> , nomeProgramaPesquisa , & |
137 | CWE-000 static struct radv_shader_variant * shader_variant_create ( struct radv_device * device , struct radv_shader_module * module , struct nir_shader * const * shaders , int shader_count , gl_shader_stage stage , struct radv_nir_compiler_options * options , bool gs_copy_shader , void * * code_out , unsigned * code_s... | <S2SV_ModStart> * code_size_out = binary . <S2SV_ModEnd> code_size ; } |
138 | CWE-000 static void mlxsw_sp_neigh_rif_gone_sync ( struct mlxsw_sp * mlxsw_sp , struct mlxsw_sp_rif * rif ) { struct mlxsw_sp_neigh_entry * neigh_entry , * tmp ; <S2SV_StartBug> mlxsw_sp_neigh_rif_flush ( mlxsw_sp , rif ) ; <S2SV_EndBug> list_for_each_entry_safe ( neigh_entry , tmp , & rif -> neigh_list , <S2SV_StartBu... | <S2SV_ModStart> * tmp ; <S2SV_ModEnd> list_for_each_entry_safe ( neigh_entry <S2SV_ModStart> , rif_list_node ) { mlxsw_sp_neigh_entry_update ( mlxsw_sp , neigh_entry , false ) ; <S2SV_ModStart> ) ; } } |
139 | CWE-000 Context_t * _ThreadingSwitch ( _In_ Context_t * Context , _In_ int PreEmptive , _Out_ size_t * TimeSlice , _Out_ int * TaskQueue ) { MCoreThread_t * Thread = NULL ; UUId_t Cpu = CpuGetCurrentId ( ) ; if ( ThreadingGetCurrentThread ( Cpu ) == NULL ) { * TimeSlice = 20 ; * TaskQueue = 0 ; return Context ; } Threa... | <S2SV_ModStart> NULL ) ; assert ( ! <S2SV_ModEnd> ( Thread -> <S2SV_ModStart> & THREADING_IMPERSONATION ) ) ; <S2SV_ModEnd> if ( Thread |
140 | CWE-000 static void xhci_pci_quirks ( struct device * dev , struct xhci_hcd * xhci ) { struct pci_dev * pdev = to_pci_dev ( dev ) ; if ( pdev -> vendor == PCI_VENDOR_ID_FRESCO_LOGIC && ( pdev -> device == PCI_DEVICE_ID_FRESCO_LOGIC_PDK || pdev -> device == PCI_DEVICE_ID_FRESCO_LOGIC_FL1400 ) ) { if ( pdev -> device == ... | <S2SV_ModStart> -> vendor == PCI_VENDOR_ID_RENESAS && pdev -> device == 0x0015 && pdev -> subsystem_vendor == PCI_VENDOR_ID_SAMSUNG && pdev -> subsystem_device == 0xc0cd ) xhci -> quirks |= XHCI_RESET_ON_RESUME ; if ( pdev -> vendor == |
141 | CWE-000 static int set_format ( struct snd_usb_substream * subs , struct audioformat * fmt ) { struct usb_device * dev = subs -> dev ; struct usb_host_interface * alts ; struct usb_interface_descriptor * altsd ; struct usb_interface * iface ; int err ; iface = usb_ifnum_to_if ( dev , fmt -> iface ) ; if ( WARN_ON ( ! i... | <S2SV_ModStart> err ) ; # ifdef VENDOR_EDIT if ( ( 0x2717 == USB_ID_VENDOR ( subs -> stream -> chip -> usb_id ) ) && ( 0x3801 == USB_ID_PRODUCT ( subs -> stream -> chip -> usb_id ) ) ) kick_usbpd_vbus_sm ( ) ; # endif |
142 | CWE-000 int CirqBuffDynDestroy ( CirqBufferType * cPtr ) { <S2SV_StartBug> free ( cPtr -> bufStart ) ; <S2SV_EndBug> <S2SV_StartBug> free ( cPtr ) ; <S2SV_EndBug> return 0 ; } | <S2SV_ModStart> cPtr ) { asfree <S2SV_ModEnd> ( cPtr -> <S2SV_ModStart> bufStart ) ; asfree <S2SV_ModEnd> ( cPtr ) |
143 | CWE-000 static void callee_filter_on_inactive ( zRPC_filter * filter , zRPC_channel * channel , void * tag ) { <S2SV_StartBug> zRPC_channel_set_custom_data ( channel , NULL ) ; <S2SV_EndBug> } | <S2SV_ModStart> tag ) { <S2SV_ModEnd> } <S2SV_null> <S2SV_null> |
144 | CWE-000 static gboolean _flatpak_dir_ensure_repo ( FlatpakDir * self , gboolean allow_empty , GCancellable * cancellable , GError * * error ) { g_autoptr ( GFile ) repodir = NULL ; g_autoptr ( OstreeRepo ) repo = NULL ; g_autoptr ( GError ) my_error = NULL ; gboolean use_helper = FALSE ; if ( self -> repo == NULL ) { i... | <S2SV_ModStart> = OSTREE_REPO_MODE_BARE_USER_ONLY ; <S2SV_ModEnd> if ( ! |
145 | CWE-000 static int completion_status ( struct cblk_dev * c , int timeout __attribute__ ( ( unused ) ) ) { int rc = ETIME ; uint32_t status = 0x0 ; uint32_t errbits = 0x0 ; int slot = - 1 ; struct cblk_req * req ; time_t usecs ; static int count = 0 ; # ifdef CONFIG_WAIT_FOR_IRQ rc = snap_action_completed ( c -> act , N... | <S2SV_ModStart> errbits ) ; block_trace ( <S2SV_ModEnd> "[%s]<S2SV_blank>warn:<S2SV_blank>ACTION_STATUS=%08x<S2SV_blank>ERROR_MASK<S2SV_blank>not<S2SV_blank>0<S2SV_blank>" "ACTION_ERROR_BITS=%08x\\n" , |
146 | CWE-000 void * ft_memchr ( const void * src , int src_c , size_t len ) { <S2SV_StartBug> const char * csrc ; <S2SV_EndBug> <S2SV_StartBug> csrc = ( const char * ) src ; <S2SV_EndBug> while ( len -- > 0 ) { <S2SV_StartBug> if ( * csrc ++ == ( unsigned char ) src_c ) <S2SV_EndBug> return ( ( void * ) csrc - 1 ) ; } retur... | <S2SV_ModStart> ) { const unsigned <S2SV_ModStart> char * csrc ; unsigned char to_find ; to_find = ( unsigned char ) src_c <S2SV_ModStart> = ( const unsigned <S2SV_ModStart> csrc ++ == to_find <S2SV_ModEnd> ) return ( |
147 | CWE-000 int main ( int argc , char * * argv ) { int time , oldtime , newtime ; int verLen , i ; const char * versionString ; # ifndef BUSY_WAIT struct timespec t ; # endif registerHandler ( ) ; <S2SV_StartBug> if ( getuid ( ) == 0 ) <S2SV_EndBug> { printf ( "Quake<S2SV_blank>II<S2SV_blank>shouldn\'t<S2SV_blank>be<S2SV_... | <S2SV_ModStart> ( ) ; for ( i = 0 ; i < argc ; i ++ ) { if ( strcmp ( argv [ i ] , "-portable" ) == 0 ) { is_portable = true ; } } |
148 | CWE-000 void <S2SV_StartBug> press_closer_floor ( struct pos * p ) <S2SV_EndBug> { struct closer_floor * c = closer_floor_at_pos ( p ) ; if ( ! c ) return ; if ( c -> broken ) return ; c -> pressed = true ; if ( ! c -> prev_pressed ) { <S2SV_StartBug> register_changed_pos ( & c -> p ) ; <S2SV_EndBug> c -> prev_pressed ... | <S2SV_ModStart> pos * p , struct anim * a <S2SV_ModStart> prev_pressed ) { kid_haptic ( a , KID_HAPTIC_COLLISION ) ; |
149 | CWE-000 static struct key * construct_key_and_link ( struct key_type * type , const char * description , const char * callout_info , size_t callout_len , void * aux , struct key * dest_keyring , unsigned long flags ) { struct key_user * user ; struct key * key ; int ret ; kenter ( "" ) ; <S2SV_StartBug> user = key_user... | <S2SV_ModStart> "" ) ; if ( type == & key_type_keyring <S2SV_ModEnd> ) return ERR_PTR <S2SV_ModStart> ERR_PTR ( - EPERM ) ; ret = construct_get_dest_keyring ( & dest_keyring ) ; if ( ret ) goto error ; user = key_user_lookup ( current_fsuid ( ) ) ; if ( ! user ) { ret = - ENOMEM ; goto error_put_dest_keyring ; } <S2SV_... |
150 | CWE-000 struct cnxctx * fd_cnx_cli_connect_tcp ( sSA * sa , socklen_t addrlen ) { int sock = 0 ; struct cnxctx * cnx = NULL ; char sa_buf [ sSA_DUMP_STRLEN ] ; TRACE_ENTRY ( "%p<S2SV_blank>%d" , sa , addrlen ) ; CHECK_PARAMS_DO ( sa && addrlen , return NULL ) ; fd_sa_sdump_numeric ( sa_buf , sa ) ; LOG_D ( "Connecting<... | <S2SV_ModStart> ; rc = fd_addr_to_string ( sa <S2SV_ModEnd> , cnx -> <S2SV_ModStart> cnx -> cc_remid ) ; if ( rc ) snprintf ( cnx -> cc_remid <S2SV_ModStart> cc_remid ) , <S2SV_ModEnd> "[err:%s]" , gai_strerror |
151 | CWE-000 static int get_device_address ( struct smem_client * smem_client , struct ion_handle * hndl , unsigned long align , ion_phys_addr_t * iova , unsigned long * buffer_size , unsigned long flags , enum hal_buffer buffer_type ) { int rc = 0 ; int domain , partition ; struct ion_client * clnt = NULL ; if ( ! iova || ... | <S2SV_ModStart> ( VIDC_ERR , "Invalid<S2SV_blank>params:<S2SV_blank>%pK,<S2SV_blank>%pK,<S2SV_blank>%pK,<S2SV_blank>%pK\\n" <S2SV_ModEnd> , smem_client , <S2SV_ModStart> mem_map_failed ; } dprintk ( VIDC_DBG , "mapped<S2SV_blank>ion<S2SV_blank>handle<S2SV_blank>%pK<S2SV_blank>to<S2SV_blank>%pa\\n" , hndl , iova ) ; |
152 | CWE-000 static inline char * copy_strptr ( char * dptr , int dsize ) { char * pretval = NULL ; TSRMLS_FETCH ( ) ; <S2SV_StartBug> pretval = ( char * ) ecalloc ( sizeof ( char ) , dsize + 2 ) ; <S2SV_EndBug> if ( pretval == NULL ) { php_error_docref ( NULL TSRMLS_CC , E_ERROR , "Out<S2SV_blank>of<S2SV_blank>memory<S2SV_... | <S2SV_ModStart> ) ecalloc ( dsize + 1 , <S2SV_ModStart> ( char ) <S2SV_ModEnd> ) ; if |
153 | CWE-000 static void ucp_wireup_process_request ( ucp_worker_h worker , const ucp_wireup_msg_t * msg , uint64_t uuid , const char * peer_name , unsigned address_count , const ucp_address_entry_t * address_list ) { ucp_rsc_index_t rsc_tli [ UCP_MAX_LANES ] ; uint8_t addr_indices [ UCP_MAX_LANES ] ; ucp_lane_index_t lane ... | <S2SV_ModStart> ucp_ep_h ep ; unsigned ep_init_flags = 0 ; <S2SV_ModStart> ep ) ; ep_init_flags = UCP_EP_CREATE_AM_LANE ; <S2SV_ModStart> & params , ep_init_flags <S2SV_ModEnd> , address_count , |
154 | CWE-000 void printstuff ( char * * str , t_flags flags , char * * complex ) { int i ; <S2SV_StartBug> i = 0 ; <S2SV_EndBug> if ( flags . l ) complexprint ( complex , str ) ; else { while ( str [ i ] ) { ft_printf ( "%s\\n" , str [ i ] ) ; i ++ ; } } } | <S2SV_ModStart> i = 0 ; printf ( "" ) |
155 | CWE-000 static void ApplyLogicalMappingFile ( HTAB * tuplecid_data , Oid relid , const char * fname ) { char path [ MAXPGPATH ] ; int fd ; int readBytes ; LogicalRewriteMappingData map ; sprintf ( path , "pg_llog/mappings/%s" , fname ) ; fd = OpenTransientFile ( path , O_RDONLY | PG_BINARY , 0 ) ; if ( fd < 0 ) ereport... | <S2SV_ModStart> , errmsg ( "could<S2SV_blank>not<S2SV_blank>read<S2SV_blank>from<S2SV_blank>file<S2SV_blank>\\"%s\\":<S2SV_blank>read<S2SV_blank>%d<S2SV_blank>instead<S2SV_blank>of<S2SV_blank>%d<S2SV_blank>bytes" <S2SV_ModEnd> , path , |
156 | CWE-000 ERR_error FIL_get_all_files ( UTI_str p , MEM_heap * heap_of_paths ) { # ifdef UNIX ERR_ASSERT ( FIL_file_is_dir ( p ) , "file<S2SV_blank>%s<S2SV_blank>is<S2SV_blank>not<S2SV_blank>a<S2SV_blank>directory" , p ) ; DIR * directory ; struct dirent * entry ; if ( ( directory = opendir ( p ) ) != NULL ) { while ( ( ... | <S2SV_ModStart> index ) ; <S2SV_ModEnd> UTI_concat ( MEM_get_item_m |
157 | CWE-000 PetscErrorCode Update_Solution ( Vec current_state , PetscReal t , struct AppCtx * user ) { PetscErrorCode ierr = 0 ; PetscInt x , y , ion , comp ; PetscInt Nx = user -> Nx ; PetscInt Ny = user -> Ny ; PetscInt nx = 2 * width_size + 1 ; PetscInt ny = 2 * width_size + 1 ; PetscReal vm_new ; PetscReal threshhold ... | <S2SV_ModStart> ) > threshhold || user -> dt_space [ xy_index ( x , y , Nx ) ] < user -> dt |
158 | CWE-000 static void execute_until ( const gchar * file , int line ) { gchar command [ 1000 ] ; <S2SV_StartBug> sprintf ( command , "-exec-until<S2SV_blank>%s:%i" , file , line ) ; <S2SV_EndBug> exec_async_command ( command ) ; } | <S2SV_ModStart> 1000 ] ; g_snprintf ( command , sizeof <S2SV_ModEnd> command , "-exec-until<S2SV_blank>%s:%i" |
159 | CWE-000 static void avbox_player_doplay ( struct avbox_player * const inst , const char * const path ) { ASSERT ( inst != NULL ) ; if ( inst -> play_state != AVBOX_PLAYER_PLAYSTATE_READY && inst -> play_state != AVBOX_PLAYER_PLAYSTATE_PLAYING ) { avbox_player_throwexception ( inst , "Ignoring<S2SV_blank>play<S2SV_blank... | <S2SV_ModStart> MB_PLAYER_STATUS_BUFFERING ) ; struct avbox_player_openstream_args open_stream ; struct avbox_delegate * del ; open_stream . inst = inst ; open_stream . path = path ; if ( ( del = avbox_application_delegate ( avbox_player_openstream , & open_stream ) ) == NULL ) { avbox_player_throwexception ( inst , "C... |
160 | CWE-000 bool KeyMan_VerifyKey ( const Key_t * key ) { <S2SV_StartBug> if ( key -> key_index >= KEY_TABLE_SIZE / sizeof ( KeyEntry ) ) <S2SV_EndBug> return false ; for ( int i = 0 ; i < KEY_LENGTH ; i ++ ) { <S2SV_StartBug> if ( key -> key [ i ] != keyTable [ key -> key_index ] . key . key [ i ] ) <S2SV_EndBug> return f... | <S2SV_ModStart> key -> key_index == 0 ) return false ; if ( key -> key_index - 1 <S2SV_ModStart> key -> key_index - 1 |
161 | CWE-000 GdkPixbuf * gdk_pixbuf_new_from_stream_finish ( GAsyncResult * async_result , GError * * error ) { GTask * task ; <S2SV_StartBug> GdkPixbuf * result ; <S2SV_EndBug> g_return_val_if_fail ( g_task_is_valid ( async_result , NULL ) , NULL ) ; g_return_val_if_fail ( ! error || ( error && ! * error ) , NULL ) ; task ... | <S2SV_ModStart> * task ; g_return_val_if_fail ( G_IS_TASK ( async_result <S2SV_ModEnd> ) , NULL <S2SV_ModStart> gdk_pixbuf_new_from_stream_at_scale_async ) ; return <S2SV_ModEnd> g_task_propagate_pointer ( task <S2SV_ModStart> error ) ; <S2SV_ModEnd> } <S2SV_null> <S2SV_null> |
162 | CWE-000 void print_optim ( t_filler * moves ) { int rating ; int w ; int h ; rating = 10000000 ; h = moves -> h ; w = moves -> w ; while ( moves ) { <S2SV_StartBug> dprintf ( 2 , ">>>>>>>>>>>>>>>>>>>:rating:%d<S2SV_blank><S2SV_blank>coords(%d,<S2SV_blank>%d)\\n" , moves -> rating , moves -> w , moves -> h ) ; <S2SV_End... | <S2SV_ModStart> moves ) { <S2SV_ModEnd> if ( rating |
163 | CWE-000 static void gen_onoff_set_unack ( struct bt_mesh_model * model , struct bt_mesh_msg_ctx * ctx , struct net_buf_simple * buf ) { <S2SV_StartBug> onoff_set_unack ( model , ctx , buf ) ; <S2SV_EndBug> } | <S2SV_ModStart> buf ) { gen_onoff_setunack <S2SV_ModEnd> ( model , |
164 | CWE-000 int nfc_llcp_register_device ( struct nfc_dev * ndev ) { struct nfc_llcp_local * local ; local = kzalloc ( sizeof ( struct nfc_llcp_local ) , GFP_KERNEL ) ; if ( local == NULL ) return - ENOMEM ; local -> dev = ndev ; INIT_LIST_HEAD ( & local -> list ) ; kref_init ( & local -> ref ) ; mutex_init ( & local -> sd... | <S2SV_ModStart> sdp_lock ) ; timer_setup <S2SV_ModEnd> ( & local <S2SV_ModStart> , nfc_llcp_symm_timer , 0 <S2SV_ModEnd> ) ; skb_queue_head_init <S2SV_ModStart> pending_sdreqs ) ; timer_setup <S2SV_ModEnd> ( & local <S2SV_ModStart> , nfc_llcp_sdreq_timer , 0 <S2SV_ModEnd> ) ; INIT_WORK |
165 | CWE-000 static void mlp_mask_privacy ( struct context * cnt ) { if ( cnt -> imgs . mask_privacy == NULL ) return ; int pixels = cnt -> imgs . height * cnt -> imgs . width ; unsigned char * image = cnt -> current_image -> image ; const unsigned char * mask = cnt -> imgs . mask_privacy ; int index = pixels ; <S2SV_StartB... | <S2SV_ModStart> = pixels ; int increment = <S2SV_ModEnd> sizeof ( unsigned <S2SV_ModStart> unsigned long ) ; while ( index >= increment <S2SV_ModStart> ; image += increment ; mask += increment <S2SV_ModEnd> ; index -= <S2SV_ModStart> ; index -= increment <S2SV_ModEnd> ; } while <S2SV_ModStart> ( index >= increment <S2S... |
166 | CWE-000 void main_while ( t_all * all ) { int x ; int y ; t_vertex vec1 ; int inter ; t_rgb color ; y = all -> dsp . rend_hs ; while ( y < all -> dsp . rend_he ) { x = all -> dsp . rend_ws ; while ( x < all -> dsp . rend_we ) { all -> rt . rgb = ( t_rgb ) { 0 , 0 , 0 , 0 } ; inter = ft_primary_ray ( all , x , y ) ; col... | <S2SV_ModStart> ( x == 360 <S2SV_ModEnd> && y == <S2SV_ModStart> && y == 190 <S2SV_ModEnd> ) printf ( <S2SV_ModStart> ( x == <S2SV_ModEnd> 300 && y <S2SV_ModStart> && y == 190 <S2SV_ModEnd> ) printf ( <S2SV_ModStart> ( x == 240 <S2SV_ModEnd> && y == <S2SV_ModStart> && y == 190 <S2SV_ModEnd> ) printf ( |
167 | CWE-000 static int lz4_uncompress ( const char * source , char * dest , int osize ) { const BYTE * ip = ( const BYTE * ) source ; const BYTE * ref ; BYTE * op = ( BYTE * ) dest ; BYTE * const oend = op + osize ; BYTE * cpy ; unsigned token ; size_t length ; size_t dec32table [ ] = { 0 , 3 , 2 , 3 , 0 , 0 , 0 , 0 } ; # ... | <S2SV_ModStart> goto _output_error ; # if LZ4_ARCH64 if ( ( ref + COPYLENGTH ) > oend ) # else if ( ( ref + COPYLENGTH ) > oend || ( op + COPYLENGTH ) > oend ) # endif <S2SV_ModEnd> goto _output_error ; <S2SV_ModStart> goto _output_error ; LZ4_SECURECOPY ( ref , op , ( oend - COPYLENGTH ) ) ; while ( op < cpy ) * op ++... |
168 | CWE-000 static svn_error_t * configure_option_incoming_dir_merge ( svn_client_conflict_t * conflict , svn_client_ctx_t * ctx , apr_array_header_t * options , apr_pool_t * scratch_pool ) { svn_node_kind_t victim_node_kind ; svn_wc_conflict_action_t incoming_change ; const char * incoming_old_repos_relpath ; svn_revnum_t... | <S2SV_ModStart> * victim_abspath ; <S2SV_ModEnd> victim_abspath = svn_client_conflict_get_local_abspath <S2SV_ModStart> ) ; } details -> move_target_repos_relpath = select_default_move_target_abspath ( details , scratch_pool ) ; details -> wc_move_target_idx = 0 ; } <S2SV_ModStart> -> wc_move_targets ) == 0 ) <S2SV_Mod... |
169 | CWE-000 int get_node_info ( ) { nodecount = 0 ; <S2SV_StartBug> command_status ++ ; <S2SV_EndBug> <S2SV_StartBug> outbuf [ 0 ] = COMMAND_GETNODEINFO ; <S2SV_EndBug> outbuf [ 1 ] = COMMAND_ACTION_EXESTART ; * ( short * ) ( outbuf + 2 ) = 4 ; send ( ser , outbuf , 4 , 0 ) ; sprintf ( outbuf + 4 , "ID" ) ; outbuf [ 0 ] = ... | <S2SV_ModStart> = 0 ; pthread_mutex_lock ( & mutex ) ; <S2SV_ModStart> command_status ++ ; pthread_mutex_unlock ( & mutex ) ; |
170 | CWE-000 void GPIO_Configuration ( void ) { <S2SV_StartBug> } <S2SV_EndBug> | <S2SV_ModStart> void ) { GPIO_PinRemapConfig ( GPIO_Remap_SWJ_Disable , ENABLE ) ; |
171 | CWE-000 int posix_create_link_if_gfid_exists ( xlator_t * this , uuid_t gfid , char * real_path , inode_table_t * itable ) { int ret = - 1 ; char * newpath = NULL ; char * unlink_path = NULL ; uint64_t ctx_int = 0 ; inode_t * inode = NULL ; struct stat stbuf = { 0 , } ; struct posix_private * priv = NULL ; priv = this ... | <S2SV_ModStart> lock ) ; inode_unref ( inode ) ; |
172 | CWE-000 static sample_t * rs_loop ( MidiSong * song , Voice * vp , Sint32 count ) { sample_t v1 , v2 ; Sint32 ofs = vp -> sample_offset , incr = vp -> sample_increment , le = vp -> sample -> loop_end , ll = le - vp -> sample -> loop_start ; sample_t * dest = song -> resample_buffer , * src = vp -> sample -> data ; Sint... | <S2SV_ModStart> count ) { while <S2SV_ModEnd> ( ofs >= |
173 | CWE-000 int main ( ) { int s = socket ( AF_INET , SOCK_DGRAM , 0 ) ; if ( s < 0 ) { return 0 ; } struct sockaddr_in myaddr ; myaddr . sin_family = AF_INET ; myaddr . sin_addr . s_addr = htonl ( INADDR_ANY ) ; myaddr . sin_port = htons ( PORT ) ; int bindStatus = bind ( s , ( struct sockaddr * ) & myaddr , sizeof ( myad... | <S2SV_ModStart> blue ; } ws2811_return_t |
174 | CWE-000 List * transformCreateStmt ( CreateStmt * stmt , const char * queryString ) { ParseState * pstate ; CreateStmtContext cxt ; List * result ; List * save_alist ; ListCell * elements ; Oid namespaceid ; Oid existing_relid ; ParseCallbackState pcbstate ; bool like_found = false ; stmt = ( CreateStmt * ) copyObject ... | <S2SV_ModStart> break ; case T_Constraint : transformTableConstraint ( & cxt , ( Constraint * ) element ) ; break ; case T_TableLikeClause : like_found <S2SV_ModEnd> = true ; <S2SV_ModStart> = true ; <S2SV_ModEnd> transformTableLikeClause ( & <S2SV_ModStart> element ) ; <S2SV_ModEnd> break ; default <S2SV_ModStart> if ... |
175 | CWE-000 void printk ( char * text ) { <S2SV_StartBug> int i ; <S2SV_EndBug> for ( i = 0 ; i < strlen ( text ) ; i ++ ) { putch ( text [ i ] ) ; } } | <S2SV_ModStart> text ) { unsigned |
176 | CWE-000 int main ( ) { srand ( 0 ) ; spec = true ; beginspec ( ) ; for ( int i = 0 ; i < NUM_CHILDREN ; i ++ ) { pid_t pid = fork ( ) ; if ( pid == 0 ) { child ( i ) ; } else if ( pid == - 1 ) { perror ( "Unable<S2SV_blank>to<S2SV_blank>fork<S2SV_blank>process" ) ; exit ( - 1 ) ; } } int status ; while ( wait ( & statu... | <S2SV_ModStart> ECHILD ) { noomr_perror ( "Unexpected<S2SV_blank>error" ) ; |
177 | CWE-000 static int hi8435_probe ( struct spi_device * spi ) { struct iio_dev * idev ; struct hi8435_priv * priv ; struct gpio_desc * reset_gpio ; int ret ; idev = devm_iio_device_alloc ( & spi -> dev , sizeof ( * priv ) ) ; if ( ! idev ) return - ENOMEM ; priv = iio_priv ( idev ) ; priv -> spi = spi ; reset_gpio = devm... | <S2SV_ModStart> ; if ( ! <S2SV_ModStart> ) ) { gpiod_set_raw_value_cansleep ( reset_gpio , 0 ) ; udelay ( 1 ) ; gpiod_set_raw_value_cansleep ( reset_gpio , 1 <S2SV_ModEnd> ) ; } <S2SV_ModStart> } else { hi8435_writeb ( priv , HI8435_CTRL_REG , HI8435_CTRL_SRST ) ; hi8435_writeb ( priv , HI8435_CTRL_REG , 0 <S2SV_ModEnd... |
178 | CWE-000 rstatus_t dnode_peer_req_forward ( struct context * ctx , struct conn * c_conn , struct conn * p_conn , struct msg * req , struct rack * rack , uint8_t * key , uint32_t keylen , dyn_error_t * dyn_error_code ) { struct node * server = p_conn -> owner ; log_info ( "%M<S2SV_blank>FORWARD<S2SV_blank>%M<S2SV_blank>t... | <S2SV_ModStart> ; msg_dump ( LOG_VVERB , |
179 | CWE-000 static char * sprintf_speed ( char * buf , ulong sz , uint ms ) { <S2SV_StartBug> uint64_t kbytes_per_sec = ( ( sz >> 10 ) * 1000 ) / ms ; <S2SV_EndBug> <S2SV_StartBug> uint64_t mb_per_sec = kbytes_per_sec >> 10 ; <S2SV_EndBug> <S2SV_StartBug> uint32_t remain = ( ( kbytes_per_sec - ( mb_per_sec << 10 ) ) * 100 ... | <S2SV_ModStart> { uint64_t kbytes_per_sec ; uint64_t mb_per_sec ; uint32_t remain ; if ( ! ms ) goto out ; kbytes_per_sec <S2SV_ModStart> / ms ; <S2SV_ModEnd> mb_per_sec = kbytes_per_sec <S2SV_ModStart> >> 10 ; <S2SV_ModEnd> remain = ( <S2SV_ModStart> ; if ( <S2SV_ModEnd> mb_per_sec ) sprintf <S2SV_ModStart> else if ( ... |
180 | CWE-000 <S2SV_StartBug> int fflush_j ( FILE_J * fp ) { return _flushbuff ( fp ) && _fillbuff ( fp ) ; } <S2SV_EndBug> | <S2SV_ModStart> fp ) { int flush , fill ; flush = <S2SV_ModEnd> _flushbuff ( fp <S2SV_ModStart> ( fp ) ; fill = <S2SV_ModEnd> _fillbuff ( fp <S2SV_ModStart> fp ) ; return flush && fill ; |
181 | CWE-000 int pool_write ( struct pool_data * pool , const void * buff , size_t nbytes , uint64_t off ) { if ( off + nbytes > pool -> set_file -> size ) return - 1 ; <S2SV_StartBug> if ( pool -> params . type != POOL_TYPE_BTT ) <S2SV_EndBug> <S2SV_StartBug> memcpy ( ( char * ) pool -> set_file -> addr + off , buff , nbyt... | <S2SV_ModStart> != POOL_TYPE_BTT ) { <S2SV_ModStart> nbytes ) ; pmem_persist_generic_auto ( ( char * ) pool -> set_file -> addr + off , nbytes ) ; } |
182 | CWE-000 client_disconnect_data * client_disconnect_data_new ( api_data * data , dbus_client * client ) <S2SV_StartBug> { <S2SV_EndBug> client_disconnect_data * disconnect_data = g_new0 ( client_disconnect_data , 1 ) ; disconnect_data -> main_data = data ; <S2SV_StartBug> disconnect_data -> client_name = g_strdup ( clie... | <S2SV_ModStart> client ) { if ( ! data || ! client || ! client -> peer || ! client -> peer -> name ) return NULL ; <S2SV_ModStart> = data ; if ( client -> peer ) <S2SV_ModStart> name ) ; else disconnect_data -> client_name = NULL ; |
183 | CWE-000 <S2SV_StartBug> void EnqueuePCB ( PCBQueueNode * queueHead , PCB * pcb , ConfigFile * config ) <S2SV_EndBug> { if ( strcmp ( config -> schedulingCode , "SJF-N" ) == 0 || strcmp ( config -> schedulingCode , "SRTF-P" ) == 0 ) { <S2SV_StartBug> Enqueue ( & queueHead , pcb , pcb -> remainingTime ) ; <S2SV_EndBug> }... | <S2SV_ModStart> EnqueuePCB ( PCBQueueNode * <S2SV_ModStart> { Enqueue ( <S2SV_ModEnd> queueHead , pcb <S2SV_ModStart> { Enqueue ( <S2SV_ModEnd> queueHead , pcb <S2SV_ModStart> { Enqueue ( <S2SV_ModEnd> queueHead , pcb |
184 | CWE-000 void md_super_write ( mddev_t * mddev , mdk_rdev_t * rdev , sector_t sector , int size , struct page * page ) { struct bio * bio = bio_alloc_mddev ( GFP_NOIO , 1 , mddev ) ; bio -> bi_bdev = rdev -> meta_bdev ? rdev -> meta_bdev : rdev -> bdev ; bio -> bi_sector = sector ; bio_add_page ( bio , page , size , 0 )... | <S2SV_ModStart> ; submit_bio ( WRITE_FLUSH_FUA <S2SV_ModEnd> , bio ) |
185 | CWE-000 static int scan ( struct wiphy * wiphy , struct cfg80211_scan_request * request ) { struct wilc_priv * priv ; u32 i ; s32 ret = 0 ; <S2SV_StartBug> u8 au8ScanChanList [ MAX_NUM_SCANNED_NETWORKS ] ; <S2SV_EndBug> struct hidden_network hidden_ntwk ; struct wilc_vif * vif ; priv = wiphy_priv ( wiphy ) ; vif = netd... | <S2SV_ModStart> 0 ; u8 scan_ch_list <S2SV_ModEnd> [ MAX_NUM_SCANNED_NETWORKS ] <S2SV_ModStart> i ++ ) scan_ch_list <S2SV_ModEnd> [ i ] <S2SV_ModStart> , ACTIVE_SCAN , scan_ch_list <S2SV_ModEnd> , request -> <S2SV_ModStart> , ACTIVE_SCAN , scan_ch_list <S2SV_ModEnd> , request -> |
186 | CWE-000 int plugin_dispatch_notification ( const notification_t * notif ) { <S2SV_StartBug> long long unsigned int before = ( long long unsigned int ) CDTIME_T_TO_US ( cdtime ( ) ) / 1000 ; <S2SV_EndBug> llentry_t * le ; DEBUG ( "plugin_dispatch_notification:<S2SV_blank>severity<S2SV_blank>=<S2SV_blank>%i;<S2SV_blank>m... | <S2SV_ModStart> ( ) ) <S2SV_ModEnd> ; llentry_t * <S2SV_ModStart> ( ) ) <S2SV_ModEnd> ; WARNING ( |
187 | CWE-000 static void activity_window_load ( Window * window ) { <S2SV_StartBug> APP_LOG ( APP_LOG_LEVEL_DEBUG , "Loading<S2SV_blank>activity<S2SV_blank>window" ) ; <S2SV_EndBug> currentStepIndex = 0 ; timeSpentInCurrentStep = 0 ; isPaused = false ; activity_load_bitmaps ( ) ; activity_load_status_bar ( window ) ; activi... | <S2SV_ModStart> window ) { <S2SV_ModEnd> currentStepIndex = 0 |
188 | CWE-000 void jabber_chat_free_settings ( account_t * acc , set_t * * head ) { <S2SV_StartBug> set_del ( head , "password" ) ; <S2SV_EndBug> } | <S2SV_ModStart> ( head , "always_use_nicks" ) ; set_del ( head , |
189 | CWE-000 int ft_error ( char * util , char * msg , char * what ) { if ( what ) <S2SV_StartBug> ft_printfd ( 2 , "%s:<S2SV_blank>%s<S2SV_blank>%s\\n" , util , msg , what ) ; <S2SV_EndBug> else if ( util ) <S2SV_StartBug> ft_printfd ( 2 , "%s:<S2SV_blank>%s\\n" , util , msg ) ; <S2SV_EndBug> else <S2SV_StartBug> ft_printf... | <S2SV_ModStart> ( 2 , "%s:<S2SV_blank>%s<S2SV_blank>%s" <S2SV_ModEnd> , util , <S2SV_ModStart> ( 2 , "%s:<S2SV_blank>%s" <S2SV_ModEnd> , util , <S2SV_ModStart> ( 2 , "%s" <S2SV_ModEnd> , msg ) |
190 | CWE-000 void NDRX_INTEGRA ( tpsvrdone ) ( void ) { int i ; NDRX_LOG ( log_debug , "tpsvrdone<S2SV_blank>called" ) ; <S2SV_StartBug> if ( NULL != G_bridge_cfg . con ) <S2SV_EndBug> { exnet_close_shut ( G_bridge_cfg . con ) ; } if ( G_bridge_cfg . net . is_server ) { exnet_close_shut ( & G_bridge_cfg . net ) ; } if ( M_i... | <S2SV_ModStart> "tpsvrdone<S2SV_blank>called" ) ; <S2SV_ModEnd> if ( M_init_ok <S2SV_ModStart> ) ; } if ( NULL != G_bridge_cfg . con ) { exnet_close_shut ( G_bridge_cfg . con ) ; } if ( G_bridge_cfg . net . is_server ) { exnet_close_shut ( & G_bridge_cfg . net ) ; } |
191 | CWE-000 void set_working_cpu ( int thread ) { int i ; if ( ! cpuset_size ) return ; for ( i = 0 ; ; ) { <S2SV_StartBug> if ( CPU_ISSET_S ( i , cpuset_size + 1 , cpuset ) && ! thread -- ) { <S2SV_EndBug> <S2SV_StartBug> CPU_ZERO_S ( cpuset_size + 1 , cpuset ) ; <S2SV_EndBug> <S2SV_StartBug> CPU_SET_S ( i , cpuset_size +... | <S2SV_ModStart> i , cpuset_size <S2SV_ModEnd> , cpuset ) <S2SV_ModStart> CPU_ZERO_S ( cpuset_size <S2SV_ModEnd> , cpuset ) <S2SV_ModStart> i , cpuset_size <S2SV_ModEnd> , cpuset ) <S2SV_ModStart> 0 , cpuset_size <S2SV_ModEnd> , cpuset ) <S2SV_ModStart> ++ i >= cpuset_ncpu <S2SV_ModEnd> ) i = |
192 | CWE-000 static int sanity_check_raw_super ( struct super_block * sb , <S2SV_StartBug> struct f2fs_super_block * raw_super ) <S2SV_EndBug> { unsigned int blocksize ; if ( F2FS_SUPER_MAGIC != le32_to_cpu ( raw_super -> magic ) ) { f2fs_msg ( sb , KERN_INFO , "Magic<S2SV_blank>Mismatch,<S2SV_blank>valid(0x%x)<S2SV_blank>-... | <S2SV_ModStart> sb , struct buffer_head * bh ) { struct <S2SV_ModStart> f2fs_super_block * raw_super = ( struct f2fs_super_block * ) ( bh -> b_data + F2FS_SUPER_OFFSET ) ; <S2SV_ModEnd> unsigned int blocksize <S2SV_ModStart> ( sb , bh <S2SV_ModEnd> ) ) return |
193 | CWE-000 static int ehci_usb_probe ( struct udevice * dev ) { struct usb_platdata * plat = dev_get_platdata ( dev ) ; struct ehci_sunxi_priv * priv = dev_get_priv ( dev ) ; struct ehci_hccr * hccr = ( struct ehci_hccr * ) devfdt_get_addr ( dev ) ; struct ehci_hcor * hcor ; int extra_ahb_gate_mask = 0 ; int phys , ret ; ... | <S2SV_ModStart> ccm ) ; priv -> reset0_cfg = ( void * ) priv -> ccm + priv -> cfg -> reset0_cfg_offset ; <S2SV_ModStart> ) setbits_le32 ( priv -> reset0_cfg <S2SV_ModEnd> , priv -> |
194 | CWE-000 int main ( int argc , char * * argv ) { int ncid , dimid , varid , temp_typeid , sounding_typeid ; struct sea_sounding { int sounding_no ; nc_vlen_t temp_vl ; } data [ DIM_LEN ] ; int i , j ; for ( i = 0 ; i < DIM_LEN ; i ++ ) { if ( ! ( data [ i ] . temp_vl . p = malloc ( sizeof ( float ) * ( i + 1 ) ) ) ) ret... | <S2SV_ModStart> p ) ; FINAL_RESULTS <S2SV_ModEnd> ; } <S2SV_null> |
195 | CWE-000 MonoObject * mono_object_new_checked ( MonoDomain * domain , MonoClass * klass , MonoError * error ) { MONO_REQ_GC_UNSAFE_MODE ; MonoVTable * vtable ; <S2SV_StartBug> vtable = mono_class_vtable ( domain , klass ) ; <S2SV_EndBug> g_assert ( vtable ) ; MonoObject * o = mono_object_new_specific_checked ( vtable , ... | <S2SV_ModStart> ; vtable = mono_class_vtable_full <S2SV_ModEnd> ( domain , <S2SV_ModStart> domain , klass , error ) ; if ( ! vtable ) return NULL <S2SV_ModEnd> ; MonoObject * |
196 | CWE-000 int VCP_write ( const void * pBuffer , int size ) { if ( size > kMaxOutPacketSize ) { int offset ; <S2SV_StartBug> for ( offset = 0 ; offset < size ; offset ++ ) <S2SV_EndBug> { int todo = MIN ( kMaxOutPacketSize , size - offset ) ; <S2SV_StartBug> int done = VCP_write ( ( ( char * ) pBuffer ) + offset , todo )... | <S2SV_ModStart> int offset ; int done = 0 ; <S2SV_ModStart> size ; offset += done <S2SV_ModEnd> ) { int <S2SV_ModStart> offset ) ; <S2SV_ModEnd> done = VCP_write |
197 | CWE-000 unsigned char CircularBufferGetByte ( CircularBuffer * circBuffer ) { assert ( circBuffer != NULL ) ; assert ( ! CircularBufferIsEmpty ( circBuffer ) ) ; unsigned char byte = circBuffer -> buffer [ circBuffer -> tail ] ; circBuffer -> tail = ( circBuffer -> tail + 1 ) % CIRCULAR_BUFFER_CAPACITY_BYTES ; <S2SV_St... | <S2SV_ModStart> % CIRCULAR_BUFFER_CAPACITY_BYTES ; if ( circBuffer -> tail == circBuffer -> head && ! circBuffer -> isEmpty ) { circBuffer -> isEmpty = true ; } <S2SV_ModEnd> return byte ; |
198 | CWE-000 void servo_control_thread ( void const * argument ) { while ( 1 ) { <S2SV_StartBug> set_servo ( ) ; <S2SV_EndBug> osDelay ( 10 ) ; } <S2SV_StartBug> terminate_thread ( ) ; <S2SV_EndBug> } | <S2SV_ModStart> 1 ) { osDelay ( 10 ) ; if ( BSP_PB_GetState ( BUTTON_USER ) == 0 ) { calibrate ( ) ; osDelay ( 100 ) ; } else { <S2SV_ModStart> ) ; } } |
199 | CWE-000 static void aac_process_events ( struct aac_dev * dev ) { struct hw_fib * hw_fib ; struct fib * fib ; unsigned long flags ; <S2SV_StartBug> spinlock_t * t_lock ; <S2SV_EndBug> unsigned int rcode ; t_lock = dev -> queues -> queue [ HostNormCmdQueue ] . lock ; spin_lock_irqsave ( t_lock , flags ) ; while ( ! list... | <S2SV_ModStart> spinlock_t * t_lock <S2SV_ModEnd> ; t_lock = <S2SV_ModStart> goto free_hw_fib_pool ; num <S2SV_ModEnd> = fillup_pools ( <S2SV_ModStart> if ( ! num <S2SV_ModEnd> ) goto free_mem |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.