Unnamed: 0 int64 0 535k | source stringlengths 50 89.8k | target stringlengths 23 37.7k |
|---|---|---|
5,900 | CWE-000 static int gen_expr ( Node * node ) { if ( node -> ty == ND_NUM ) { int r = regno ++ ; <S2SV_StartBug> add ( IR_IMM , r , node -> val ) ; <S2SV_EndBug> return r ; } if ( node -> ty == IR_CALL ) { int args [ 6 ] ; for ( int i = 0 ; i < node -> args -> len ; i ++ ) { args [ i ] = gen_expr ( node -> args -> data [... | <S2SV_ModStart> node -> val ) ; return r ; } if ( node -> ty == ND_IDENT ) { int r = gen_lval ( node ) ; add ( IR_LOAD , r , r |
5,901 | CWE-000 static int aesbs_xts_decrypt ( struct blkcipher_desc * desc , struct scatterlist * dst , struct scatterlist * src , unsigned int nbytes ) { struct aesbs_xts_ctx * ctx = crypto_blkcipher_ctx ( desc -> tfm ) ; struct blkcipher_walk walk ; int err ; blkcipher_walk_init ( & walk , dst , src , nbytes ) ; err = blkci... | <S2SV_ModStart> & walk , walk . nbytes % AES_BLOCK_SIZE <S2SV_ModEnd> ) ; } |
5,902 | CWE-000 gpointer gcr_secure_memory_try_realloc ( gpointer memory , gsize size ) { gpointer new_memory ; if ( ! memory ) { return gcr_secure_memory_try_alloc ( size ) ; } else if ( ! size ) { gcr_secure_memory_free ( memory ) ; return NULL ; } else if ( ! egg_secure_check ( memory ) ) { return g_try_realloc ( memory , s... | <S2SV_ModStart> 0 ) ; <S2SV_ModEnd> return new_memory ; |
5,903 | CWE-000 <S2SV_StartBug> void column_init ( int i ) <S2SV_EndBug> { m [ i ] [ 0 ] . cost = i ; if ( i > 0 ) m [ i ] [ 0 ] . parent = DELETE ; else m [ 0 ] [ i ] . parent = - 1 ; } | <S2SV_ModStart> ( int i , cell m [ MAXLEN + 1 ] [ MAXLEN + 1 ] |
5,904 | CWE-000 celix_status_t pubsub_topicPublicationRemoveSerializer ( topic_publication_pt pub , pubsub_serializer_service_t * svc ) { celix_status_t status = CELIX_SUCCESS ; celixThreadMutex_lock ( & ( pub -> tp_lock ) ) ; if ( pub -> serializerSvc == svc ) { hash_map_iterator_t iter = hashMapIterator_construct ( pub -> bo... | <S2SV_ModStart> NULL ; } <S2SV_ModEnd> pub -> serializerSvc <S2SV_ModStart> = NULL ; } |
5,905 | CWE-000 static void read_string ( lexState * ls , int flag ) { next ( ls ) ; while ( ls -> current != flag ) { switch ( ls -> current ) { case '\\\\' : { int c ; next ( ls ) ; switch ( ls -> current ) { case 'a' : c = '\\a' ; goto save_flag ; case 'b' : c = '\\b' ; goto save_flag ; case 'f' : c = '\\f' ; goto save_flag... | <S2SV_ModStart> no_save_flag ; } <S2SV_ModEnd> default : c <S2SV_ModStart> ) error_msg ( "Unexpected<S2SV_blank>\'EOF\'" <S2SV_ModEnd> ) ; save_and_next |
5,906 | CWE-000 int available_freepages ( size_t num ) { <S2SV_StartBug> return nfreepages >= num ; <S2SV_EndBug> <S2SV_StartBug> } <S2SV_EndBug> | <S2SV_ModStart> num ) { lock_nfreepages ( ) ; int res = <S2SV_ModEnd> nfreepages >= num <S2SV_ModStart> >= num ; unlock_nfreepages ( ) ; return res ; |
5,907 | CWE-000 static int wlan_suspend ( hdd_context_t * pHddCtx ) { long rc = 0 ; pVosSchedContext vosSchedContext = NULL ; vosSchedContext = get_vos_sched_ctxt ( ) ; if ( ! vosSchedContext ) { VOS_TRACE ( VOS_MODULE_ID_HDD , VOS_TRACE_LEVEL_FATAL , "%s:<S2SV_blank>Global<S2SV_blank>VOS_SCHED<S2SV_blank>context<S2SV_blank>is... | <S2SV_ModStart> ; set_bit ( TX_SUSPEND_EVENT <S2SV_ModEnd> , & vosSchedContext <S2SV_ModStart> ! test_and_clear_bit ( TX_SUSPEND_EVENT <S2SV_ModEnd> , & vosSchedContext <S2SV_ModStart> ; set_bit ( RX_SUSPEND_EVENT <S2SV_ModEnd> , & vosSchedContext <S2SV_ModStart> ! test_and_clear_bit ( RX_SUSPEND_EVENT <S2SV_ModEnd> , ... |
5,908 | CWE-000 <S2SV_StartBug> void freeBoard ( Board * * boardPtrPtr ) { <S2SV_EndBug> unsigned int i , j ; unsigned int N ; <S2SV_StartBug> Board * boardPtr = * boardPtrPtr ; <S2SV_EndBug> <S2SV_StartBug> Cell * temp_cell ; <S2SV_EndBug> printf ( "freeBoard<S2SV_blank>-<S2SV_blank>Good<S2SV_blank>luck\\n" ) ; if ( boardPtr ... | <S2SV_ModStart> ( Board * boardPtr <S2SV_ModEnd> ) { unsigned <S2SV_ModStart> int N ; <S2SV_ModEnd> Cell * temp_cell <S2SV_ModStart> Cell * temp_cell <S2SV_ModEnd> ; if ( <S2SV_ModStart> return ; } <S2SV_ModEnd> N = boardPtr <S2SV_ModStart> NULL ) { <S2SV_ModEnd> temp_cell = getCell <S2SV_ModStart> ] ) ; } } <S2SV_ModE... |
5,909 | CWE-000 static int cache_ref_iterator_abort ( struct ref_iterator * ref_iterator ) { struct cache_ref_iterator * iter = ( struct cache_ref_iterator * ) ref_iterator ; <S2SV_StartBug> free ( iter -> levels ) ; <S2SV_EndBug> base_ref_iterator_free ( ref_iterator ) ; return ITER_DONE ; } | <S2SV_ModStart> ; free ( ( char * ) iter -> prefix ) ; free ( |
5,910 | CWE-000 static bool data_flow_join ( void * data , struct cling_data_flow_callback const * algorithm , <S2SV_StartBug> struct cling_basic_block const * cur_blk , <S2SV_EndBug> struct utillib_vector const * blocks ) { bool changed = false ; struct cling_basic_block const * block ; UTILLIB_VECTOR_FOREACH ( block , blocks... | <S2SV_ModStart> * algorithm , int block_id <S2SV_ModEnd> , struct utillib_vector <S2SV_ModStart> ( data , <S2SV_ModEnd> block_id , block |
5,911 | CWE-000 char * edit_exit ( t_line * line ) { move_cursor_lastline ( line ) ; move_cursor_bufflen_from_lastline ( line ) ; <S2SV_StartBug> ft_putchar_fd ( '\\n' , 2 ) ; <S2SV_EndBug> edit_insert_str ( line , line -> buff + ft_strlen ( line -> buff ) , "\\n" ) ; <S2SV_StartBug> return ( line -> buff ) ; <S2SV_EndBug> } | <S2SV_ModStart> line ) ; <S2SV_ModEnd> edit_insert_str ( line <S2SV_ModStart> "\\n" ) ; ft_putchar_fd ( '\\n' , 2 ) ; |
5,912 | CWE-000 static gchar * * simple_notes_event_create_split ( SimpleNotesEvent * object , gchar * strippedBuffer , GError * * error ) { gchar * search = NULL ; gchar * previousSearch = strippedBuffer ; <S2SV_StartBug> size_t len = strlen ( previousSearch ) ; <S2SV_EndBug> gchar * spaceBeforeQuote = previousSearch ; gchar ... | <S2SV_ModStart> previousSearch ) ; if ( ! len ) { if ( error ) { * error = g_error_new ( kSimpleNotesDomain , 22 , "Empty<S2SV_blank>command" ) ; } return NULL ; } <S2SV_ModStart> - previous ; if ( copyLen ) { <S2SV_ModStart> splitBuff ) ; } |
5,913 | CWE-000 static int set_config_int32_option ( const char * name , int32 value , GucContext context ) { char buf [ 16 ] ; if ( snprintf ( buf , 16 , "%d" , value ) < 0 ) { ereport ( pg_hint_plan_message_level , <S2SV_StartBug> ( errmsg ( "Cannot<S2SV_blank>set<S2SV_blank>integer<S2SV_blank>value:<S2SV_blank>%d:<S2SV_blan... | <S2SV_ModStart> ( errmsg ( "Failed<S2SV_blank>to<S2SV_blank>convert<S2SV_blank>integer<S2SV_blank>to<S2SV_blank>string:<S2SV_blank>%d" , value <S2SV_ModEnd> ) ) ) |
5,914 | CWE-000 int initADXL ( ) { int ans ; __delay_us ( 2000 ) ; <S2SV_StartBug> ans = readAddr ( ADXL345_DEVID ) ; <S2SV_EndBug> if ( ans == ADXL345_DEVID_VALUE ) { <S2SV_StartBug> writeAddr ( ADXL345_POWER_CTL , 0x08 ) ; <S2SV_EndBug> <S2SV_StartBug> writeAddr ( ADXL345_BW_RATE , 0x0A ) ; <S2SV_EndBug> <S2SV_StartBug> writ... | <S2SV_ModStart> ; ans = readADXLAddr <S2SV_ModEnd> ( ADXL345_DEVID ) <S2SV_ModStart> ADXL345_DEVID_VALUE ) { writeADXLAddr <S2SV_ModEnd> ( ADXL345_POWER_CTL , <S2SV_ModStart> 0x08 ) ; writeADXLAddr <S2SV_ModEnd> ( ADXL345_BW_RATE , <S2SV_ModStart> 0x0A ) ; writeADXLAddr <S2SV_ModEnd> ( ADXL345_DATA_FORMAT , <S2SV_ModSt... |
5,915 | CWE-000 static void set_counter ( CUDAState * s , CUDATimer * ti , unsigned int val ) { CUDA_DPRINTF ( "T%d.counter=%d\\n" , 1 + ti -> index , val ) ; <S2SV_StartBug> ti -> load_time = get_tb ( qemu_clock_get_ns ( QEMU_CLOCK_VIRTUAL ) , <S2SV_EndBug> s -> frequency ) ; ti -> counter_value = val ; cuda_timer_update ( s ... | <S2SV_ModStart> -> load_time = get_counter_load_time ( s , ti <S2SV_ModEnd> ) ; ti |
5,916 | CWE-000 void gpio_interrupt_callback ( void * data , uint8_t port_pin ) { wiced_result_t result ; wiced_hal_gpio_clear_pin_interrupt_status ( WICED_GPIO_PIN_BUTTON_1 ) ; manuf_data ++ ; <S2SV_StartBug> e01_ble_adv_set_advertisement_data ( ) ; <S2SV_EndBug> result = wiced_bt_start_advertisements ( BTM_BLE_ADVERT_NONCONN... | <S2SV_ModStart> manuf_data ++ ; ex01_ble_adv_set_advertisement_data <S2SV_ModEnd> ( ) ; |
5,917 | CWE-000 static int zpa2326_wait_oneshot_completion ( const struct iio_dev * indio_dev , struct zpa2326_private * private ) { <S2SV_StartBug> int ret ; <S2SV_EndBug> unsigned int val ; long timeout ; zpa2326_dbg ( indio_dev , "waiting<S2SV_blank>for<S2SV_blank>one<S2SV_blank>shot<S2SV_blank>completion<S2SV_blank>interru... | <S2SV_ModStart> private ) { <S2SV_ModEnd> unsigned int val <S2SV_ModStart> timeout ) ; return <S2SV_ModEnd> - ETIME ; <S2SV_ModStart> ETIME ; } <S2SV_ModEnd> zpa2326_warn ( indio_dev <S2SV_ModStart> "wait<S2SV_blank>for<S2SV_blank>one<S2SV_blank>shot<S2SV_blank>interrupt<S2SV_blank>cancelled" ) ; return <S2SV_ModEnd> -... |
5,918 | CWE-000 bool vfs_create ( const path_t * start , const char * pathname , uint32_t mode , bool excl ) { path_t wd ; char * last ; if ( ! get_path_wd ( start , pathname , & wd , & last ) ) { return false ; } path_t f ; if ( vfs_lookup ( & wd , last , & f ) ) { if ( excl ) { kfree ( last ) ; return false ; } } else { char... | <S2SV_ModStart> new -> inode || ! validate_inode ( new ) |
5,919 | CWE-000 int amqpvalue_get_sasl_mechanisms ( AMQP_VALUE value , SASL_MECHANISMS_HANDLE * sasl_mechanisms_handle ) { int result ; SASL_MECHANISMS_INSTANCE * sasl_mechanisms_instance = ( SASL_MECHANISMS_INSTANCE * ) sasl_mechanisms_create_internal ( ) ; * sasl_mechanisms_handle = sasl_mechanisms_instance ; if ( * sasl_mec... | <S2SV_ModStart> if ( ( ( amqpvalue_get_type ( item_value ) != AMQP_TYPE_ARRAY ) || ( <S2SV_ModStart> ) != 0 ) |
5,920 | CWE-000 static void eevee_render_result_normal ( <S2SV_StartBug> RenderResult * rr , RenderLayer * rl , const char * viewname , <S2SV_EndBug> EEVEE_Data * vedata , EEVEE_ViewLayerData * UNUSED ( sldata ) ) { const DRWContextState * draw_ctx = DRW_context_state_get ( ) ; ViewLayer * view_layer = draw_ctx -> view_layer ;... | <S2SV_ModStart> void eevee_render_result_normal ( <S2SV_ModEnd> RenderLayer * rl <S2SV_ModStart> char * viewname , const rcti * rect <S2SV_ModStart> ; DRW_framebuffer_read_data ( rect -> xmin , rect -> ymin , BLI_rcti_size_x ( rect ) , BLI_rcti_size_y ( rect ) , 3 , 1 , rp -> rect ) ; for ( int i = 0 ; i < rp -> rectx ... |
5,921 | CWE-000 void send_result_to_client ( int fd , void * data ) { int nsend ; if ( data == NULL ) return ; nsend = write ( fd , data , strlen ( data ) ) ; if ( nsend == - 1 ) { if ( errno == EAGAIN || errno == EWOULDBLOCK ) return ; printf ( "send<S2SV_blank>error:<S2SV_blank>%s\\n" , strerror ( errno ) ) ; <S2SV_StartBug>... | <S2SV_ModStart> ) ) ; set_event ( fd , NULL , SMD_DEL_EVENT , NULL , NULL ) ; close ( fd ) ; |
5,922 | CWE-000 unsigned neighbour_rxcost ( struct neighbour * neigh ) { unsigned delay , udelay ; unsigned short reach = neigh -> hello . reach ; unsigned short ureach = neigh -> uhello . reach ; delay = timeval_minus_msec ( & now , & neigh -> hello . time ) ; udelay = timeval_minus_msec ( & now , & neigh -> uhello . time ) ;... | <S2SV_ModStart> ) { return BABEL_INFINITY <S2SV_ModEnd> ; } else <S2SV_ModStart> ( cost , BABEL_INFINITY <S2SV_ModEnd> ) ; } <S2SV_ModStart> ; else return BABEL_INFINITY <S2SV_ModEnd> ; } } |
5,923 | CWE-000 bool parser_block_build ( vector * tokens , ast_node * root , vector * symbol_table ) { for ( int i = 0 ; i < tokens -> count ; i ++ ) { ast_node * line_number = parser_linenumber_build ( tokens , & i ) ; if ( line_number == NULL ) { lexical_token * current_token = tokens -> data [ i ] ; printf ( "ERROR:<S2SV_b... | <S2SV_ModStart> ) ; } return true ; |
5,924 | CWE-000 int app_debug ( struct Application * app , const char * cypher ) { struct timespec t [ 7 ] ; BoltUtil_get_time ( & t [ 1 ] ) ; <S2SV_StartBug> app_connect ( app ) ; <S2SV_EndBug> BoltUtil_get_time ( & t [ 2 ] ) ; BoltConnection_load_begin_request ( app -> connection ) ; BoltConnection_cypher ( app -> connection... | <S2SV_ModStart> ] ) ; app -> connector -> config -> log -> debug_enabled = 1 ; app -> connector -> config -> log -> info_enabled = 1 ; app -> connector -> config -> log -> warning_enabled = 1 ; app -> connector -> config -> log -> error_enabled = 1 ; |
5,925 | CWE-000 bool initialize_enemy ( int frame_index ) { <S2SV_StartBug> switch ( frame_index ) <S2SV_EndBug> { case 120 : enemy_exists = 1 ; octorok1 . x = 240 ; octorok1 . y = 220 ; octorok1 . dir = DIR_DOWN ; chhar_spawn ( & octorok1 , 0 ) ; enemy_move ( & octorok1 ) ; octorok2 . x = 320 ; octorok2 . y = 240 ; octorok2 .... | <S2SV_ModStart> frame_index ) { random_enemy_position ( ) ; <S2SV_ModEnd> } <S2SV_null> <S2SV_null> |
5,926 | CWE-000 void loadConfig ( const char * file ) { if ( file == NULL ) { return ; } char buf [ 201 ] ; FILE * fp = fopen ( file , "r" ) ; if ( ! fp ) { Log ( LOG_WARNING , "the<S2SV_blank>log<S2SV_blank>file<S2SV_blank>can\'t<S2SV_blank>open<S2SV_blank>%s" , "error" , file ) ; return ; } char * p ; while ( fgets ( buf , 2... | <S2SV_ModStart> { p += 13 <S2SV_ModEnd> ; while ( |
5,927 | CWE-000 static int mount_udev ( const char * root , const char * target , const char * option ) { devf ( "%s\\n" , __func__ ) ; if ( is_same_inode ( "/dev" , target ) ) { debugf ( "Unmounting<S2SV_blank>old<S2SV_blank>devfs...\\n" ) ; if ( umount2 ( target , MNT_DETACH | UMOUNT_NOFOLLOW ) ) { return - 1 ; } } char opts... | <S2SV_ModStart> = 0 ; mode_t orig_umask = umask ( 0000 ) ; <S2SV_ModStart> rfd ) ; umask ( orig_umask ) ; |
5,928 | CWE-000 static ssize_t iwl_dbgfs_fw_nmi_write ( struct iwl_mvm * mvm , char * buf , size_t count , loff_t * ppos ) { <S2SV_StartBug> int ret = iwl_mvm_ref_sync ( mvm , IWL_MVM_REF_NMI ) ; <S2SV_EndBug> if ( ret ) return ret ; iwl_force_nmi ( mvm -> trans ) ; iwl_mvm_unref ( mvm , IWL_MVM_REF_NMI ) ; return count ; } | <S2SV_ModStart> ) { int ret ; if ( ! iwl_mvm_firmware_running ( mvm ) ) return - EIO ; |
5,929 | CWE-000 static void xio_nexus_release_cb ( void * data ) { struct xio_nexus * nexus = ( struct xio_nexus * ) data ; TRACE_LOG ( "physical<S2SV_blank>nexus<S2SV_blank>close.<S2SV_blank>nexus:%p<S2SV_blank>%s_hndl:%p\\n" , nexus , xio_proto_str ( nexus -> transport_hndl -> proto ) , nexus -> transport_hndl ) ; if ( ! nex... | <S2SV_ModStart> transport_hndl ) ; <S2SV_ModEnd> } } <S2SV_null> |
5,930 | CWE-000 static GstFlowReturn gst_wayland_sink_show_frame ( GstVideoSink * vsink , GstBuffer * buffer ) { GstWaylandSink * sink = GST_WAYLAND_SINK ( vsink ) ; GstBuffer * to_render ; GstWlBuffer * wlbuffer ; GstVideoMeta * vmeta ; GstVideoFormat format ; GstMemory * mem ; struct wl_buffer * wbuf = NULL ; GstFlowReturn r... | <S2SV_ModStart> ; } } g_mutex_unlock ( & sink -> render_lock ) ; wl_display_dispatch_queue_pending ( sink -> display -> display , sink -> frame_queue ) ; g_mutex_lock ( & sink -> render_lock ) ; while <S2SV_ModEnd> ( sink -> <S2SV_ModStart> sink -> redraw_pending == TRUE ) { g_mutex_unlock ( & sink -> render_lock ) ; w... |
5,931 | CWE-000 static void fmtobject ( js_State * J , js_Buffer * * sb , js_Object * obj , const char * gap , int level ) { const char * key ; int save ; int i , n ; n = js_gettop ( J ) - 1 ; for ( i = 4 ; i < n ; ++ i ) if ( js_isobject ( J , i ) ) if ( js_toobject ( J , i ) == js_toobject ( J , - 1 ) ) js_typeerror ( J , "c... | <S2SV_ModStart> ) ; } js_pop ( J , 1 ) ; |
5,932 | CWE-000 int main ( int argc , char * * argv ) { int clientfd ; <S2SV_StartBug> char * host , buf [ MAXLINE ] ; <S2SV_EndBug> rio_t rio ; int fd ; char * nomFichier ; struct cmdline * l ; if ( argc != 2 ) { fprintf ( stderr , "usage:<S2SV_blank>%s<S2SV_blank><host>\\n" , argv [ 0 ] ) ; exit ( 0 ) ; } host = argv [ 1 ] ;... | <S2SV_ModStart> , buf [ TAILLE_MAX_FICHIER <S2SV_ModEnd> ] ; rio_t <S2SV_ModStart> ) ) ; int test ; if ( ( test = Rio_readnb <S2SV_ModEnd> ( & rio <S2SV_ModStart> , buf , TAILLE_MAX_FICHIER ) <S2SV_ModEnd> ) > 0 <S2SV_ModStart> 0 ) { printf ( "%d" , test ) ; <S2SV_ModStart> nomFichier , O_WRONLY | O_CREAT <S2SV_ModStar... |
5,933 | CWE-000 void selinux_complete_init ( void ) { <S2SV_StartBug> printk ( KERN_DEBUG "SELinux:<S2SV_blank><S2SV_blank>Completing<S2SV_blank>initialization.\\n" ) ; <S2SV_EndBug> <S2SV_StartBug> printk ( KERN_DEBUG "SELinux:<S2SV_blank><S2SV_blank>Setting<S2SV_blank>up<S2SV_blank>existing<S2SV_blank>superblocks.\\n" ) ; <S... | <S2SV_ModStart> void ) { pr_debug ( <S2SV_ModEnd> "SELinux:<S2SV_blank><S2SV_blank>Completing<S2SV_blank>initialization.\\n" ) ; <S2SV_ModStart> "SELinux:<S2SV_blank><S2SV_blank>Completing<S2SV_blank>initialization.\\n" ) ; pr_debug ( <S2SV_ModEnd> "SELinux:<S2SV_blank><S2SV_blank>Setting<S2SV_blank>up<S2SV_blank>exist... |
5,934 | CWE-000 void raise_current_window ( void ) { raisewindow ( focuswin -> id ) ; <S2SV_StartBug> raisedwin = focuswin ; <S2SV_EndBug> } | <S2SV_ModStart> id ) ; <S2SV_ModEnd> } <S2SV_null> <S2SV_null> |
5,935 | CWE-000 void fc3d_nonsmooth_Newton_AlartCurnier ( FrictionContactProblem * problem , double * reaction , double * velocity , int * info , SolverOptions * options ) { assert ( problem ) ; assert ( reaction ) ; assert ( velocity ) ; assert ( info ) ; assert ( options ) ; assert ( problem -> dimension == 3 ) ; assert ( op... | <S2SV_ModStart> -> iparam [ SICONOS_FRICTION_3D_NSN_FORMULATION <S2SV_ModEnd> ] ) { <S2SV_ModStart> -> iparam [ SICONOS_IPARAM_MAX_ITER <S2SV_ModEnd> ] = 50 <S2SV_ModStart> -> dparam [ SICONOS_DPARAM_TOL <S2SV_ModEnd> ] = sqrt |
5,936 | CWE-000 void lpfc_nlp_init ( struct lpfc_vport * vport , struct lpfc_nodelist * ndlp , uint32_t did ) { memset ( ndlp , 0 , sizeof ( struct lpfc_nodelist ) ) ; lpfc_initialize_node ( vport , ndlp , did ) ; INIT_LIST_HEAD ( & ndlp -> nlp_listp ) ; if ( vport -> phba -> sli_rev == LPFC_SLI_REV4 ) { ndlp -> nlp_rpi = lpfc... | <S2SV_ModStart> phba ) ; lpfc_printf_vlog ( vport , KERN_INFO , LOG_NODE , "0007<S2SV_blank>rpi:%x<S2SV_blank>DID:%x<S2SV_blank>flg:%x<S2SV_blank>refcnt:%d<S2SV_blank>" "map:%x<S2SV_blank>%p\\n" , ndlp -> nlp_rpi , ndlp -> nlp_DID , ndlp -> nlp_flag , atomic_read ( & ndlp -> kref . refcount ) , ndlp -> nlp_usg_map , nd... |
5,937 | CWE-000 char * width ( char * s , t_arg arg ) { char * new_s ; char * width_s ; if ( arg . width > ( int ) ft_strlen ( s ) ) { width_s = create_width ( arg . att . width_modi , arg . width - ( int ) ft_strlen ( s ) ) ; new_s = arg . att . width_modi != '-' ? ft_strjoin ( width_s , s ) : ft_strjoin ( s , width_s ) ; ft_... | <S2SV_ModStart> width_s ) ; return ( new_s ) <S2SV_ModEnd> ; } return |
5,938 | CWE-000 static void binder_transaction_buffer_release ( struct binder_proc * proc , struct binder_buffer * buffer , size_t * failed_at ) { size_t * offp , * off_end ; int debug_id = buffer -> debug_id ; binder_debug ( BINDER_DEBUG_TRANSACTION , "binder:<S2SV_blank>%d<S2SV_blank>buffer<S2SV_blank>release<S2SV_blank>%d,<... | <S2SV_ModStart> ) ) { pr_err ( <S2SV_ModEnd> "binder:<S2SV_blank>transaction<S2SV_blank>release<S2SV_blank>%d<S2SV_blank>bad" "offset<S2SV_blank>%zd,<S2SV_blank>size<S2SV_blank>%zd\\n" , <S2SV_ModStart> NULL ) { pr_err ( <S2SV_ModEnd> "binder:<S2SV_blank>transaction<S2SV_blank>release<S2SV_blank>%d" "<S2SV_blank>bad<S2... |
5,939 | CWE-000 int rsa_key_save ( void * key , size_t size , const char * filename ) { FILE * file ; if ( ( file = fopen ( filename , "w" ) ) == NULL ) { <S2SV_StartBug> perror ( strerror ( errno ) ) ; <S2SV_EndBug> return - 1 ; } fwrite ( key , size , 1 , file ) ; return fclose ( file ) ; } | <S2SV_ModStart> { perror ( "fopen" <S2SV_ModEnd> ) ; return |
5,940 | CWE-000 int main ( int argc , const char * argv [ ] ) { ruid = getuid ( ) ; euid = geteuid ( ) ; char recvbuf [ 1024 ] ; <S2SV_StartBug> char * content ; <S2SV_EndBug> char * * parameters ; <S2SV_StartBug> memset ( recvbuf , 0 , sizeof ( recvbuf ) ) ; <S2SV_EndBug> printf ( "Start<S2SV_blank>File<S2SV_blank>Read<S2SV_b... | <S2SV_ModStart> ] ; char readbuf [ 1024 ] ; char * content = readbuf <S2SV_ModEnd> ; char * <S2SV_ModStart> sizeof ( recvbuf ) ) ; memset ( readbuf , 0 , sizeof ( readbuf <S2SV_ModStart> ] ) ; SF_read_content ( content , parameters [ num ] ) ; SF_send_content ( content , parameters [ num ] ) ; memset ( readbuf , 0 , si... |
5,941 | CWE-000 static sqInt NoDbgRegParms genConvertBitsToSmallFloatInscratch ( sqInt reg , sqInt scratch ) { AbstractInstruction * anInstruction ; AbstractInstruction * anInstruction1 ; AbstractInstruction * anInstruction2 ; AbstractInstruction * jumpZero ; sqInt quickConstant ; sqInt quickConstant1 ; genoperandoperand ( Rot... | <S2SV_ModStart> reg ) ; anInstruction <S2SV_ModEnd> = genoperandoperand ( <S2SV_ModStart> ) ) ; anInstruction1 <S2SV_ModEnd> = genoperandoperand ( |
5,942 | CWE-000 static inline void doAMO ( c_nodeid_t node , void * object , const void * operand1 , const void * operand2 , void * result , int ofiOp , enum fi_datatype ofiType , size_t size ) { if ( chpl_numNodes <= 1 ) { doCpuAMO ( object , operand1 , operand2 , result , ofiOp , ofiType , size ) ; return ; } uint64_t mrKey ... | <S2SV_ModStart> ( tcip = tciAlloc ( false <S2SV_ModEnd> ) ) != <S2SV_ModStart> size ) ; tciFree <S2SV_ModEnd> ( tcip ) <S2SV_ModStart> return ; } tciFree <S2SV_ModEnd> ( tcip ) |
5,943 | CWE-000 int main ( int argc , char * argv [ ] ) { bool_t write_analyze_output , equilibria_only , run_ray , exit_on_EOF ; int nact , Nspect , Nread , Nrequired , checkPoint , * wave_index = NULL ; double muz ; Atom * atom ; FILE * fp_ray ; char inputLine [ MAX_LINE_SIZE ] ; initParallel ( & argc , & argv , run_ray = FA... | <S2SV_ModStart> ( messageStr , "Process<S2SV_blank>%4d:<S2SV_blank>---<S2SV_blank>START<S2SV_blank>task<S2SV_blank>%3ld<S2SV_blank>[of<S2SV_blank>%ld],<S2SV_blank>(xi,yi)<S2SV_blank>=<S2SV_blank>(%3d,%3d)\\n" <S2SV_ModEnd> , mpi . <S2SV_ModStart> ( messageStr , "Process<S2SV_blank>%4d:<S2SV_blank>***<S2SV_blank>END<S2S... |
5,944 | CWE-000 <S2SV_StartBug> static int php_cli_server_ctor ( php_cli_server * server , const char * addr , const char * document_root , const char * router ) <S2SV_EndBug> { int retval = SUCCESS ; char * host = NULL ; zend_string * errstr = NULL ; char * _document_root = NULL ; char * _router = NULL ; int err = 0 ; int por... | <S2SV_ModStart> char * router , int redirect <S2SV_ModStart> } server -> redirect = redirect ; server -> |
5,945 | CWE-000 void collect_shareinput_producers ( PlannerInfo * root , Plan * plan ) { PlannerGlobal * glob = root -> glob ; <S2SV_StartBug> glob -> share . curr_rtable = root -> parse -> rtable ; <S2SV_EndBug> shareinput_walker ( collect_shareinput_producers_walker , ( Node * ) plan , root ) ; } | <S2SV_ModStart> . curr_rtable = glob -> finalrtable <S2SV_ModEnd> ; shareinput_walker ( |
5,946 | CWE-000 zjs_callback_id add_callback_priv ( jerry_value_t js_func , jerry_value_t this , void * handle , zjs_post_callback_func post , u8_t once # ifdef DEBUG_BUILD , const char * file , const char * func ) # else ) # endif { <S2SV_StartBug> LOCK ( ) ; <S2SV_EndBug> zjs_callback_t * new_cb = zjs_malloc ( sizeof ( zjs_c... | <S2SV_ModStart> # endif { <S2SV_ModEnd> zjs_callback_t * new_cb <S2SV_ModStart> ; # endif <S2SV_ModEnd> return new_cb -> |
5,947 | CWE-000 DynaStatus dntree_init ( dntree * t , size_t children , size_t cap , DynaCopyFunc copy , DynaDestructFunc dtor , size_t esize ) { dassert ( esize != 0 , DYNA_ASSERT_ESIZE_ZERO ) ; dassert ( children >= 3 , DYNA_ASSERT_NTREE_CHILDREN_RANGE ) ; DynaStatus status = dvec_init ( & t -> tree , cap , copy , dtor , esi... | <S2SV_ModStart> ; if ( yerror <S2SV_ModEnd> ( status ) <S2SV_ModStart> ; if ( yerror <S2SV_ModEnd> ( ! t |
5,948 | CWE-000 int iscsi_target_start_negotiation ( struct iscsi_login * login , struct iscsi_conn * conn ) { int ret ; if ( conn -> sock ) { struct sock * sk = conn -> sock -> sk ; write_lock_bh ( & sk -> sk_callback_lock ) ; set_bit ( LOGIN_FLAGS_READY , & conn -> login_flags ) ; <S2SV_StartBug> write_unlock_bh ( & sk -> sk... | <S2SV_ModStart> login_flags ) ; set_bit ( LOGIN_FLAGS_INITIAL_PDU , & conn -> login_flags ) ; <S2SV_ModStart> , login ) ; if ( ! ret && iscsi_target_sk_check_and_clear ( conn , LOGIN_FLAGS_INITIAL_PDU ) ) ret = - 1 |
5,949 | CWE-000 DEFUN struct dt_d_s dt_dadd_d ( struct dt_d_s d , int n ) { <S2SV_StartBug> switch ( d . typ ) { <S2SV_EndBug> case DT_JDN : d . daisy = __jdn_to_daisy ( d . jdn ) ; goto daisy_add_d ; case DT_LDN : d . daisy = __ldn_to_daisy ( d . ldn ) ; goto daisy_add_d ; case DT_MDN : d . daisy = __mdn_to_daisy ( d . mdn ) ... | <S2SV_ModStart> n ) { if ( UNLIKELY ( ! n ) ) { goto out ; } <S2SV_ModStart> break ; } out : |
5,950 | CWE-000 static void sp_timer_isr ( void * arg ) { ARG_UNUSED ( arg ) ; _sys_idle_elapsed_ticks = silent_ticks + 1 ; silent_ticks = 0 ; <S2SV_StartBug> _sys_clock_tick_announce ( ) ; <S2SV_EndBug> } | <S2SV_ModStart> = 0 ; z_clock_announce ( _sys_idle_elapsed_ticks <S2SV_ModEnd> ) ; } |
5,951 | CWE-000 int load_profile ( ) { FILE * profile = fopen ( "./data/profile/.profile.txt" , "rb" ) ; if ( profile == NULL ) { return - 1 ; } if ( getc ( profile ) == EOF ) { fclose ( profile ) ; return - 1 ; } char * str = ( char * ) calloc ( 1000 , sizeof ( char ) ) ; char * pruf = ":<S2SV_blank>\\n<S2SV_blank>\\0" ; fget... | <S2SV_ModStart> token ) ; load_max_index ( ) ; <S2SV_ModStart> ) > 0 && <S2SV_ModEnd> atoi ( str <S2SV_ModStart> str ) < max_index <S2SV_ModEnd> ) { index_arr <S2SV_ModStart> str ) ; wprintf ( L"{-%d-}" , index_arr [ max_learn ] ) ; <S2SV_ModStart> ; } } wprintf ( L"\\n" ) ; |
5,952 | CWE-000 static int bch_cached_dev_io_limit_thread ( void * arg ) { struct cached_dev * dc = arg ; struct cache_set * c = dc -> disk . c ; uint64_t last_seq = 0 ; uint64_t last_size = 0 ; uint64_t last_time = 0 ; uint64_t dirty = 0 ; uint32_t io_limit_enable_interval = 0 ; while ( ! kthread_should_stop ( ) && ! test_bit... | <S2SV_ModStart> ) ) { set_current_state ( TASK_RUNNING ) ; <S2SV_ModStart> . mbps = ( <S2SV_ModStart> wb_size - last_size ) << 9 <S2SV_ModStart> ) ; } dc -> io_limit_thread = NULL ; cached_dev_put ( dc ) ; wait_for_kthread_stop ( ) ; |
5,953 | CWE-000 int insertLine ( Graph * g , block * u , block * v ) { if ( u == NULL || v == NULL ) { return - 1 ; } <S2SV_StartBug> block * aux = g -> list [ u -> vertex ] -> next ; <S2SV_EndBug> <S2SV_StartBug> g -> list [ u -> vertex ] -> next = v ; <S2SV_EndBug> v -> next = aux ; <S2SV_StartBug> aux = g -> list [ v -> ver... | <S2SV_ModStart> -> vertex ] ; g -> list [ u -> vertex ] = v ; printGraph ( g ) <S2SV_ModEnd> ; g -> <S2SV_ModStart> -> next = aux ; printGraph ( g ) <S2SV_ModEnd> ; aux = <S2SV_ModStart> -> vertex ] ; g -> list [ v -> vertex ] = u ; printGraph ( g ) <S2SV_ModEnd> ; g -> <S2SV_ModStart> -> next = aux ; printGraph ( g ) ... |
5,954 | CWE-000 <S2SV_StartBug> inline void pin_set_output_low ( const pin * p ) { <S2SV_EndBug> * ( p -> io -> clr ) |= p -> mask ; } | <S2SV_ModStart> pin_set_output_low ( const volatile |
5,955 | CWE-000 static int mlx5i_close ( struct net_device * netdev ) { struct mlx5e_priv * epriv = mlx5i_epriv ( netdev ) ; struct mlx5i_priv * ipriv = epriv -> ppriv ; struct mlx5_core_dev * mdev = epriv -> mdev ; mutex_lock ( & epriv -> state_lock ) ; if ( ! test_bit ( MLX5E_STATE_OPENED , & epriv -> state ) ) goto unlock ;... | <S2SV_ModStart> qpn ) ; <S2SV_ModEnd> mlx5e_deactivate_priv_channels ( epriv <S2SV_ModStart> epriv -> channels ) ; mlx5i_uninit_underlay_qp ( epriv |
5,956 | CWE-000 int osp_precreate_get_fid ( const struct lu_env * env , struct osp_device * d , struct lu_fid * fid ) { <S2SV_StartBug> spin_lock ( & d -> opd_pre_lock ) ; <S2SV_EndBug> LASSERTF ( osp_fid_diff ( & d -> opd_pre_used_fid , & d -> opd_pre_last_created_fid ) < 0 , "next<S2SV_blank>fid<S2SV_blank>" DFID "<S2SV_blan... | <S2SV_ModStart> fid ) { struct lu_fid * pre_used_fid = & d -> opd_pre_used_fid ; <S2SV_ModStart> opd_pre_last_created_fid ) ) ; LASSERTF ( osp_fid_end_seq ( env , pre_used_fid ) == 0 , "next<S2SV_blank>fid<S2SV_blank>" DFID "<S2SV_blank>last<S2SV_blank>created<S2SV_blank>fid<S2SV_blank>" DFID "\\n" , PFID ( & d -> opd_... |
5,957 | CWE-000 static void dump_memory_around_ip ( void * ctx ) { # ifdef MONO_ARCH_HAVE_SIGCTX_TO_MONOCTX MonoContext mctx ; mono_sigctx_to_monoctx ( ctx , & mctx ) ; gpointer native_ip = MONO_CONTEXT_GET_IP ( & mctx ) ; <S2SV_StartBug> g_printerr ( "Memory<S2SV_blank>around<S2SV_blank>native<S2SV_blank>instruction<S2SV_blan... | <S2SV_ModStart> mctx ) ; if ( native_ip ) { mono_runtime_printf_err ( "Memory<S2SV_blank>around<S2SV_blank>native<S2SV_blank>instruction<S2SV_blank>pointer<S2SV_blank>(%p):" <S2SV_ModEnd> , native_ip ) <S2SV_ModStart> 0x40 ) ; } else { mono_runtime_printf_err ( "instruction<S2SV_blank>pointer<S2SV_blank>is<S2SV_blank>N... |
5,958 | CWE-000 void lcd_refresh ( ) { TCNT2 = _TM2 ; get_screen ( Linebuffer , ui_current_screen ) ; rx_count = 0 ; tx_count = 0 ; <S2SV_StartBug> lcd_quickrefresh ( ) ; <S2SV_EndBug> } | <S2SV_ModStart> = 0 ; snprintf ( Linebuffer [ 2 ] , sizeof Linebuffer [ 2 ] , "0x%lx;" , debugval ) ; |
5,959 | CWE-000 unsigned char * cstring_to_hexarr ( char * arg , int length , char * hashname ) { char * a , * argend ; char v1 , v2 ; unsigned char * output ; unsigned char * p ; int filled ; output = palloc0 ( length ) ; argend = arg + strlen ( arg ) ; a = arg ; p = output ; filled = 0 ; while ( a < argend ) { if ( * a == '<... | <S2SV_ModStart> ( errmsg ( "invalid<S2SV_blank>%s<S2SV_blank>data:<S2SV_blank>not<S2SV_blank>enough<S2SV_blank>digits<S2SV_blank>(got<S2SV_blank>%d,<S2SV_blank>expected<S2SV_blank>%d)" , hashname <S2SV_ModEnd> , filled * |
5,960 | CWE-000 void render ( renderer * r , float * sampleBuff , float * fftBuff , int buffSize ) { glUseProgram ( r -> progID ) ; glActiveTexture ( GL_TEXTURE0 ) ; glBindTexture ( GL_TEXTURE_1D , r -> audioSamples ) ; <S2SV_StartBug> glTexImage1D ( GL_TEXTURE_1D , 0 , GL_R16 , buffSize , 0 , GL_RED , GL_FLOAT , sampleBuff ) ... | <S2SV_ModStart> GL_R16 , buffSize / 2 <S2SV_ModStart> GL_FLOAT , sampleBuff + buffSize / 2 <S2SV_ModStart> height ) ; GLint transparencyLoc = glGetUniformLocation ( r -> progID , "transparency" ) ; if ( transparencyLoc != - 1 ) glUniform1f ( transparencyLoc , cfg . transparency ) ; |
5,961 | CWE-000 <S2SV_StartBug> void find_ways ( t_lem * s , int to ) <S2SV_EndBug> { t_ch * chain ; int i ; int ch_loc ; ch_loc = 0 ; chain = ( t_ch * ) malloc ( sizeof ( t_ch ) * s -> ch_cnt ) ; s -> ch_a [ ch_loc ] = chain ; i = - 1 ; while ( ++ i < s -> dim ) { <S2SV_StartBug> if ( s -> c [ to ] [ i ] == 1 && ! on_ch ( s ,... | <S2SV_ModStart> , int to , int ch_loc ) { int i <S2SV_ModEnd> ; i = <S2SV_ModStart> s , i , ch_loc <S2SV_ModStart> s , i , ch_loc <S2SV_ModStart> s , i , ch_loc <S2SV_ModStart> ch_cnt ++ ; fork_chain <S2SV_ModEnd> ( s ) <S2SV_ModStart> ( s ) ; ch_loc ++ |
5,962 | CWE-000 json_t * bn_encode_json ( const BIGNUM * bn , size_t len ) { uint8_t * buf = NULL ; json_t * out = NULL ; if ( ! bn ) return NULL ; if ( len == 0 ) len = BN_num_bytes ( bn ) ; if ( ( int ) len < BN_num_bytes ( bn ) ) return NULL ; buf = calloc ( 1 , len ) ; if ( ! buf ) return NULL ; <S2SV_StartBug> if ( ! bn_e... | <S2SV_ModStart> ; if ( <S2SV_ModEnd> bn_encode ( bn <S2SV_ModStart> len ) ) { <S2SV_ModEnd> out = jose_b64_enc <S2SV_ModStart> len ) ; } |
5,963 | CWE-000 int ffop_cancel ( ffop_h _op ) { <S2SV_StartBug> ffop_t * op = ( ffop_t * ) _op ; <S2SV_EndBug> return ff . impl . ops [ op -> type ] . cancel ( op ) ; } | <S2SV_ModStart> * ) _op ; FFLOG ( "Cancelling<S2SV_blank>op<S2SV_blank>%lu<S2SV_blank>(version:<S2SV_blank>%u)\\n" , op -> id , op -> version ) |
5,964 | CWE-000 static ssize_t fill_periodic_buffer ( struct debug_buffer * buf ) { struct usb_hcd * hcd ; struct ehci_hcd * ehci ; unsigned long flags ; union ehci_shadow p , * seen ; unsigned temp , size , seen_count ; char * next ; unsigned i ; __hc32 tag ; if ( ! ( seen = kmalloc ( DBG_SCHED_LIMIT * sizeof * seen , GFP_ATO... | <S2SV_ModStart> , size , "<S2SV_blank>qh%d-%04x/%pK" <S2SV_ModEnd> , p . <S2SV_ModStart> , size , "<S2SV_blank>fstn-%8x/%pK" <S2SV_ModEnd> , p . <S2SV_ModStart> , size , "<S2SV_blank>itd/%pK" <S2SV_ModEnd> , p . <S2SV_ModStart> , size , "<S2SV_blank>sitd%d-%04x/%pK" <S2SV_ModEnd> , p . |
5,965 | CWE-000 void ChunkUpdater_PerformAllocations ( void ) { MapRenderer_Chunks = Platform_MemAlloc ( MapRenderer_ChunksCount * sizeof ( ChunkInfo ) ) ; if ( MapRenderer_Chunks == NULL ) ErrorHandler_Fail ( "ChunkUpdater<S2SV_blank>-<S2SV_blank>failed<S2SV_blank>to<S2SV_blank>allocate<S2SV_blank>chunk<S2SV_blank>info" ) ; M... | <S2SV_ModStart> ChunkPartInfo ) * MapRenderer_1DUsedCount <S2SV_ModEnd> ) ; MapRenderer_PartsBuffer |
5,966 | CWE-000 static void do_python_eval ( char * expr_file ) { verbose ( "eval:<S2SV_blank>%s" , expr_file ) ; if ( strcmp ( expr_file , "-" ) == 0 ) crash ( "expr<S2SV_blank>file<S2SV_blank>cannot<S2SV_blank>be<S2SV_blank>-" ) ; char * expr = slurp ( expr_file ) ; if ( expr == NULL ) crash ( "failed<S2SV_blank>to<S2SV_blan... | <S2SV_ModStart> result ) ; <S2SV_ModEnd> if ( ! <S2SV_ModStart> crash ( "python<S2SV_blank>expr<S2SV_blank>failed." ) ; free ( expr |
5,967 | CWE-000 static void ft_cmd_ls_rjt ( struct fc_frame * rx_fp , enum fc_els_rjt_reason reason , enum fc_els_rjt_explan explan ) { # if LINUX_VERSION_CODE < KERNEL_VERSION ( 2 , 6 , 36 ) struct fc_seq * sp = fr_seq ( rx_fp ) ; struct fc_frame * fp ; struct fc_els_ls_rjt * rjt ; struct fc_lport * lport ; struct fc_exch * e... | <S2SV_ModStart> = explan ; # if LINUX_VERSION_CODE >= KERNEL_VERSION ( 4 , 10 , 0 ) fc_seq_els_rsp_send ( rx_fp , ELS_LS_RJT , & rjt_data ) ; # else <S2SV_ModStart> rjt_data ) ; # endif |
5,968 | CWE-000 static boolean_t _sendMail ( Mail_T mail ) { ASSERT ( mail ) ; boolean_t failed = false ; volatile SMTP_T smtp = NULL ; volatile MailServer_T mta = NULL ; TRY { mta = _connectMTA ( ) ; smtp = SMTP_new ( mta -> socket ) ; SMTP_greeting ( smtp ) ; SMTP_helo ( smtp , Run . mail_hostname ? Run . mail_hostname : Run... | <S2SV_ModStart> <= 0 ) || ( ( m -> sender && Socket_print ( mta -> socket , "From:<S2SV_blank>\\"%s\\"<S2SV_blank><%s>\\r\\n" , m -> sender , m -> from ) <= 0 ) <S2SV_ModStart> socket , "From:<S2SV_blank>%s\\r\\n" , m -> from ) <= 0 ) || Socket_print ( mta -> socket , <S2SV_ModStart> "Message-Id:<S2SV_blank><%lld.%lu@%... |
5,969 | CWE-000 int removemem ( void ) { if ( shmctl ( shmid , IPC_RMID , ( struct shmid_ds * ) 0 ) < 0 ) { <S2SV_StartBug> return 0 ; <S2SV_EndBug> } perror ( "removemem" ) ; <S2SV_StartBug> return 1 ; <S2SV_EndBug> } | <S2SV_ModStart> 0 ) { <S2SV_ModEnd> perror ( "removemem" <S2SV_ModStart> ) ; return 0 ; } return |
5,970 | CWE-000 void startConsoleMode ( ) { Command userCmd ; <S2SV_StartBug> GameSettings * settings ; <S2SV_EndBug> GameState * game = NULL ; bool is_reset = true ; do { if ( is_reset ) { printf ( STR_SELECT_SETTINGS ) ; is_reset = false ; } if ( settings == NULL ) { settings = GameSettingsCreate ( ) ; } userCmd = getUserCom... | <S2SV_ModStart> GameSettings * settings = NULL <S2SV_ModStart> settings ) ; <S2SV_ModEnd> } <S2SV_null> <S2SV_null> |
5,971 | CWE-000 void av1_update_tx_type_count ( const AV1_COMMON * cm , MACROBLOCKD * xd , # if CONFIG_TXK_SEL int blk_row , int blk_col , int plane , # endif BLOCK_SIZE bsize , TX_SIZE tx_size , FRAME_COUNTS * counts , uint8_t allow_update_cdf ) { MB_MODE_INFO * mbmi = & xd -> mi [ 0 ] -> mbmi ; int is_inter = is_inter_block ... | <S2SV_ModStart> ; # else <S2SV_ModEnd> if ( plane |
5,972 | CWE-000 int main ( ) { int i ; <S2SV_StartBug> for ( i = 0 ; i < 100 ; i ++ ) <S2SV_EndBug> pong ( ) ; return 0 ; } | <S2SV_ModStart> int i ; while ( 1 <S2SV_ModEnd> ) pong ( |
5,973 | CWE-000 static int fastrpc_file_free ( struct fastrpc_file * fl ) { struct hlist_node * n ; struct fastrpc_mmap * map = NULL ; int cid ; if ( ! fl ) return 0 ; cid = fl -> cid ; spin_lock ( & fl -> apps -> hlock ) ; hlist_del_init ( & fl -> hn ) ; spin_unlock ( & fl -> apps -> hlock ) ; if ( ! fl -> sctx ) { <S2SV_Star... | <S2SV_ModStart> sctx ) { kfree ( fl ) ; return 0 <S2SV_ModEnd> ; } ( <S2SV_ModStart> smd_mutex ) ; <S2SV_ModEnd> mutex_destroy ( & |
5,974 | CWE-000 static int _qce_sps_add_sg_data ( struct qce_device * pce_dev , struct scatterlist * sg_src , uint32_t nbytes , struct sps_transfer * sps_bam_pipe ) { uint32_t addr , data_cnt , len ; struct sps_iovec * iovec = sps_bam_pipe -> iovec + sps_bam_pipe -> iovec_count ; while ( nbytes > 0 ) { len = min ( nbytes , sg_... | <S2SV_ModStart> SPS_MAX_PKT_SIZE ) { if ( ( len % SPS_MAX_PKT_SIZE ) > 0 ) data_cnt = ( len % SPS_MAX_PKT_SIZE ) ; else |
5,975 | CWE-000 int pnl_test_mat_int_eq ( const PnlMatInt * X , const PnlMatInt * Y , const char * str , const char * fmt , ... ) { int i , status ; va_list ap ; <S2SV_StartBug> va_start ( ap , fmt ) ; <S2SV_EndBug> va_end ( ap ) ; status = 0 ; if ( X -> m != Y -> m || X -> n != Y -> n ) { printf ( "%s<S2SV_blank>:<S2SV_blank>... | <S2SV_ModStart> ap , fmt <S2SV_ModEnd> ) ; status <S2SV_ModStart> update_count_tests ( 1 ) ; va_end ( ap <S2SV_ModStart> ap ) ; printf ( "<S2SV_blank>expected<S2SV_blank>%d<S2SV_blank>observed<S2SV_blank>%d)" , Y -> array [ i ] , X -> array [ i ] ) ; } printf ( "\\n" ) ; } update_count_tests ( status ) ; <S2SV_ModStart... |
5,976 | CWE-000 PROCESS_THREAD ( mqtt_process , ev , data ) { static struct mqtt_connection * conn ; PROCESS_BEGIN ( ) ; while ( 1 ) { PROCESS_WAIT_EVENT ( ) ; if ( ev == mqtt_abort_now_event ) { DBG ( "MQTT<S2SV_blank>-<S2SV_blank>Abort\\n" ) ; conn = data ; conn -> state = MQTT_CONN_STATE_ABORT_IMMEDIATE ; abort_connection (... | <S2SV_ModStart> ) ; } printf ( "Done<S2SV_blank>pt_pingreq<S2SV_blank>pt<S2SV_blank>p<S2SV_blank>t<S2SV_blank>p<S2SV_blank><S2SV_blank>t\\n" ) ; |
5,977 | CWE-000 int msr_restore ( const char * restore_path , const char * whitelist_path , const char * msr_path_format , int num_cpu ) { int err = 0 ; int tmp_err = 0 ; int i , j ; <S2SV_StartBug> int msr_fd ; <S2SV_EndBug> int do_print_header = 1 ; size_t num_msr = 0 ; uint64_t read_val = 0 ; uint64_t masked_val = 0 ; uint6... | <S2SV_ModStart> ; int msr_fd = - 1 <S2SV_ModStart> err ) { goto exit ; } if ( ! msr_offset || ! msr_mask ) { err = - 1 ; <S2SV_ModStart> , NAME_MAX , "Failed<S2SV_blank>to<S2SV_blank>write<S2SV_blank>msr<S2SV_blank>value<S2SV_blank>at<S2SV_blank>offset<S2SV_blank>0x%016zx<S2SV_blank>to<S2SV_blank>MSR<S2SV_blank>file<S2... |
5,978 | CWE-000 WimaStatus wima_area_setup ( WimaAr * area , bool allocate ) { wassert ( WIMA_AREA_IS_LEAF ( area ) , WIMA_ASSERT_AREA_LEAF ) ; WimaStatus status = WIMA_STATUS_SUCCESS ; if ( ! allocate ) { area -> area . ctx . itemCount = 0 ; area -> area . ctx . items = NULL ; area -> area . ctx . widgetData = NULL ; return W... | <S2SV_ModStart> ; if ( yerror <S2SV_ModEnd> ( ! area <S2SV_ModStart> ; if ( yerror <S2SV_ModEnd> ( area -> <S2SV_ModStart> ; if ( yerror <S2SV_ModEnd> ( ptr == <S2SV_ModStart> ; if ( yerror <S2SV_ModEnd> ( ptr == |
5,979 | CWE-000 static int ceph_x_decrypt ( struct ceph_crypto_key * secret , <S2SV_StartBug> void * * p , void * end , void * obuf , size_t olen ) <S2SV_EndBug> { struct ceph_x_encrypt_header head ; size_t head_len = sizeof ( head ) ; int len , ret ; len = ceph_decode_32 ( p ) ; if ( * p + len > end ) return - EINVAL ; dout (... | <S2SV_ModStart> end , void * <S2SV_ModStart> len ) ; if ( * obuf == NULL ) { * obuf = kmalloc ( len , GFP_NOFS ) ; if ( ! * obuf ) return - ENOMEM ; olen = len ; } <S2SV_ModStart> & head_len , * |
5,980 | CWE-000 bigint * bi_divide ( BI_CTX * ctx , bigint * u , bigint * v , int is_mod ) { int n = v -> size , m = u -> size - n ; int j = 0 , orig_u_size = u -> size ; uint8_t mod_offset = ctx -> mod_offset ; comp d ; bigint * quotient , * tmp_u ; comp q_dash ; check ( u ) ; check ( v ) ; if ( is_mod && bi_compare ( v , u )... | <S2SV_ModStart> COMP_RADIX / ( ( ( long_comp ) V1 ) <S2SV_ModEnd> + 1 ) |
5,981 | CWE-000 static unsigned int procmsg_INITRESP ( unsigned char * buf , unsigned int nb , void * p ) { <S2SV_StartBug> struct PICA_c2n * ci = ( struct PICA_c2n * ) p ; <S2SV_EndBug> switch ( buf [ 0 ] ) { case PICA_PROTO_INITRESPOK : ci -> init_resp_ok = 1 ; break ; case PICA_PROTO_VERDIFFER : ci -> init_resp_ok = - 1 ; c... | <S2SV_ModStart> * ) p ; if ( ci -> state != PICA_C2N_STATE_WAITINGREP ) return 0 |
5,982 | CWE-000 static bool on_option ( char key , char * value ) { bool res ; switch ( key ) { case 'H' : if ( ! tpm2_util_string_to_uint32 ( value , & ctx . parent_handle ) ) { LOG_ERR ( "Invalid<S2SV_blank>parent<S2SV_blank>handle,<S2SV_blank>got\\"%s\\"" , value ) ; return false ; } ctx . flags . H = 1 ; break ; case 'P' :... | <S2SV_ModStart> = 1 ; ctx . in_public . publicArea . objectAttributes |= TPMA_OBJECT_USERWITHAUTH ; <S2SV_ModStart> L = 1 ; if ( ! ctx . flags . K ) ctx . in_public . publicArea . objectAttributes &= ~ TPMA_OBJECT_USERWITHAUTH ; ctx . in_public . publicArea . objectAttributes |= TPMA_OBJECT_ADMINWITHPOLICY |
5,983 | CWE-000 void closeClient ( ftpDataType * ftpData , int processingSocket ) { <S2SV_StartBug> printf ( "\\nQUIT<S2SV_blank>FLAG<S2SV_blank>SET!\\n" ) ; <S2SV_EndBug> void * pReturn ; pthread_cancel ( ftpData -> clients [ processingSocket ] . workerData . workerThread ) ; <S2SV_StartBug> pthread_join ( ftpData -> clients ... | <S2SV_ModStart> "\\nQUIT<S2SV_blank>FLAG<S2SV_blank>SET!\\n" ) ; if ( ftpData -> clients [ processingSocket ] . workerData . threadIsAlive == 1 ) { <S2SV_ModStart> workerThread ) ; <S2SV_ModEnd> printf ( "\\nQuit<S2SV_blank>command<S2SV_blank>received<S2SV_blank>the<S2SV_blank>Pasv<S2SV_blank>Thread<S2SV_blank>has<S2SV... |
5,984 | CWE-000 static bool DoesLinkExist ( app_Ref_t appRef , struct stat srcStat , const char * destPath ) { struct stat destStat ; if ( stat ( destPath , & destStat ) == - 1 ) { if ( errno != ENOENT ) { LE_WARN ( "Could<S2SV_blank>not<S2SV_blank>stat<S2SV_blank>file<S2SV_blank>at<S2SV_blank>\'%s\'.<S2SV_blank>%m" , destPath... | <S2SV_ModStart> { if ( S_ISCHR ( srcStat . st_mode ) || S_ISBLK ( srcStat . st_mode ) ) { if ( ( srcStat . st_rdev == destStat . st_rdev ) && ( srcStat . st_ino != destStat . st_ino ) ) { return true ; } } else { if ( <S2SV_ModStart> return true ; } |
5,985 | CWE-000 mfs_error_t mfsEraseRecord ( MFSDriver * mfsp , uint32_t id ) { flash_offset_t free , required ; mfs_bank_state_t sts ; bool warning = false ; osalDbgCheck ( ( mfsp != NULL ) && ( id >= 1 ) && ( id <= MFS_CFG_MAX_RECORDS ) ) ; osalDbgAssert ( mfsp -> state == MFS_MOUNTED , "invalid<S2SV_blank>state" ) ; <S2SV_S... | <S2SV_ModStart> descriptors [ id - 1U <S2SV_ModStart> -> buffer . data8 <S2SV_ModEnd> ) ) ; <S2SV_ModStart> descriptors [ id - 1U <S2SV_ModStart> descriptors [ id - 1U <S2SV_ModStart> descriptors [ id - 1U |
5,986 | CWE-000 <S2SV_StartBug> xpc_connection_t XpcConnect ( char * service , void * ctx ) { <S2SV_EndBug> dispatch_queue_t queue = dispatch_queue_create ( service , 0 ) ; xpc_connection_t conn = xpc_connection_create_mach_service ( service , queue , XPC_CONNECTION_MACH_SERVICE_PRIVILEGED ) ; <S2SV_StartBug> GoInterface ictx ... | <S2SV_ModStart> * service , uintptr_t <S2SV_ModEnd> ctx ) { <S2SV_ModStart> XPC_CONNECTION_MACH_SERVICE_PRIVILEGED ) ; <S2SV_ModEnd> xpc_connection_set_event_handler ( conn <S2SV_ModStart> ( event , ctx <S2SV_ModEnd> ) ; } |
5,987 | CWE-000 struct page * follow_page ( struct vm_area_struct * vma , unsigned long address , unsigned int flags ) { pgd_t * pgd ; pud_t * pud ; pmd_t * pmd ; pte_t * ptep , pte ; spinlock_t * ptl ; struct page * page ; struct mm_struct * mm = vma -> vm_mm ; page = follow_huge_addr ( mm , address , flags & FOLL_WRITE ) ; i... | <S2SV_ModStart> goto no_page ; page = vm_normal_page ( vma , address , pte ) ; <S2SV_ModStart> ) && ! can_follow_write_pte ( pte , page , flags ) ) { pte_unmap_unlock ( ptep , ptl ) ; return NULL ; } <S2SV_ModEnd> if ( unlikely <S2SV_ModStart> ; } } <S2SV_ModEnd> pte_unmap_unlock ( ptep |
5,988 | CWE-000 int fcgi_accept_request ( fcgi_request * req ) { # ifdef _WIN32 HANDLE pipe ; OVERLAPPED ov ; # endif while ( 1 ) { if ( req -> fd < 0 ) { while ( 1 ) { if ( in_shutdown ) { return - 1 ; } # ifdef _WIN32 if ( ! req -> tcp ) { pipe = ( HANDLE ) _get_osfhandle ( req -> listen_socket ) ; FCGI_LOCK ( req -> listen_... | <S2SV_ModStart> if defined ( HAVE_POLL_H <S2SV_ModEnd> ) && defined |
5,989 | CWE-000 void cpu_thread_clean ( struct thread * td ) { struct pcb * pcb ; pcb = td -> td_pcb ; if ( pcb -> pcb_tssp != NULL ) { pmap_pti_remove_kva ( ( vm_offset_t ) pcb -> pcb_tssp , ( vm_offset_t ) pcb -> pcb_tssp + ctob ( IOPAGES + 1 ) ) ; <S2SV_StartBug> kmem_free ( kernel_arena , ( vm_offset_t ) pcb -> pcb_tssp , ... | <S2SV_ModStart> ; kmem_free ( <S2SV_ModEnd> ( vm_offset_t ) |
5,990 | CWE-000 int main ( int argc , const char * const * const argv ) { if ( argc < 2 ) { fprintf ( stderr , "usage:<S2SV_blank>%s<S2SV_blank>filename\\n" , argv [ 0 ] ) ; exit ( EXIT_FAILURE ) ; } size_t loc_next [ LOCS ] ; size_t loc_size [ LOCS ] ; double * loc_value [ LOCS ] ; for ( uint_fast8_t i = 0 ; i < LOCS ; i ++ )... | <S2SV_ModStart> # if 0 char extra [ 2 ] ; int ret = sscanf ( s , "%*d<S2SV_blank>;<S2SV_blank>%" SCNu8 "<S2SV_blank>;<S2SV_blank>%lf<S2SV_blank>%1s" , & loc , & value , extra ) ; <S2SV_ModStart> ( 2 != ret <S2SV_ModEnd> ) print_error_and_continue ( <S2SV_ModStart> <= 0.0 ) print_error_and_continue ( lineno , line ) ; <... |
5,991 | CWE-000 void var_return_to_heap ( seni_vm * vm , seni_var * var ) { if ( var -> allocated == false ) { return ; } DEBUG_INFO_RETURN_TO_HEAP ( vm ) ; # ifdef SENI_DEBUG_MODE if ( var -> debug_allocatable == false ) { SENI_ERROR ( "trying<S2SV_blank>to<S2SV_blank>return<S2SV_blank>a<S2SV_blank>seni_var<S2SV_blank>to<S2SV... | <S2SV_ModStart> VAR_VEC_HEAD ) { bool res = <S2SV_ModStart> var ) ; if ( res == false ) { SENI_ERROR ( "var_return_to_heap" ) ; } |
5,992 | CWE-000 static int camera_v4l2_queryctrl ( struct file * filep , void * fh , struct v4l2_queryctrl * ctrl ) { int rc = 0 ; <S2SV_StartBug> struct v4l2_event event ; <S2SV_EndBug> if ( ctrl -> type == V4L2_CTRL_TYPE_MENU ) { camera_pack_event ( filep , MSM_CAMERA_GET_PARM , ctrl -> id , - 1 , & event ) ; rc = msm_post_e... | <S2SV_ModStart> struct v4l2_event event ; if ( msm_is_daemon_present ( ) == false ) return 0 |
5,993 | CWE-000 static void ngx_mrb_timer_handler ( ngx_event_t * ev ) { ngx_mrb_reentrant_t * re ; ngx_http_mruby_ctx_t * ctx ; ngx_int_t rc = NGX_OK ; re = ev -> data ; ctx = ngx_mrb_http_get_module_ctx ( NULL , re -> r ) ; if ( ctx != NULL ) { if ( re -> fiber != NULL ) { ngx_mrb_push_request ( re -> r ) ; if ( mrb_test ( n... | <S2SV_ModStart> , 0 , "%s<S2SV_blank>NOTICE<S2SV_blank>%s:%d:<S2SV_blank>invalid<S2SV_blank>variable<S2SV_blank>name<S2SV_blank>error<S2SV_blank>name:<S2SV_blank>%s" , <S2SV_ModEnd> MODULE_NAME , __func__ <S2SV_ModStart> 0 , "%s<S2SV_blank>NOTICE<S2SV_blank>%s:%d:<S2SV_blank>unexpected<S2SV_blank>error,<S2SV_blank>fibe... |
5,994 | CWE-000 int pblk_rail_read_bio ( struct pblk * pblk , struct nvm_rq * rqd , unsigned int bio_init_idx , unsigned long * read_bitmap , struct nvm_rq * new_rqd , unsigned char * pvalid ) { struct bio * new_bio , * bio = rqd -> bio ; struct bio_vec src_bv , dst_bv ; void * src_p , * dst_p ; int nr_orig_secs = bitmap_weigh... | <S2SV_ModStart> ; do { <S2SV_ModEnd> int r ; |
5,995 | CWE-000 void errors ( char * message ) { <S2SV_StartBug> fprintf ( stderr , message ) ; <S2SV_EndBug> exit ( 0 ) ; } | <S2SV_ModStart> ( stderr , "%s" , |
5,996 | CWE-000 static int FlushChannel ( Tcl_Interp * interp , Channel * chanPtr , int calledFromAsyncFlush ) { ChannelState * statePtr = chanPtr -> state ; ChannelBuffer * bufPtr ; int written ; int errorCode = 0 ; int wroteSome = 0 ; if ( CheckForDeadChannel ( interp , statePtr ) ) { return - 1 ; } bufPtr = statePtr -> curO... | <S2SV_ModStart> } else { <S2SV_ModEnd> } } if |
5,997 | CWE-000 static void * extract_worker_thread_func ( void * arg ) { xb_rstream_chunk_t chunk ; file_entry_t * entry ; xb_rstream_result_t res ; <S2SV_StartBug> extract_ctxt_t * ctxt = ( extract_ctxt_t * ) arg ; <S2SV_EndBug> while ( 1 ) { pthread_mutex_lock ( ctxt -> mutex ) ; res = xb_stream_read_chunk ( ctxt -> stream ... | <S2SV_ModStart> * ) arg ; memset ( & chunk , 0 , sizeof ( chunk ) ) <S2SV_ModStart> mutex ) ; res = xb_stream_validate_checksum ( & chunk ) ; if ( res != XB_STREAM_READ_CHUNK ) { pthread_mutex_unlock ( & entry -> mutex ) ; break ; } <S2SV_ModStart> ) ; } my_free ( chunk . data ) ; |
5,998 | CWE-000 int src_hops_process ( src_hops_obj * obj ) { <S2SV_StartBug> int rtnValue ; <S2SV_EndBug> switch ( obj -> interface -> type ) { case interface_file : rtnValue = src_hops_process_interface_file ( obj ) ; break ; case interface_soundcard : rtnValue = src_hops_process_interface_soundcard ( obj ) ; break ; default... | <S2SV_ModStart> int rtnValue ; switch ( obj -> format -> type ) { case format_binary_int08 : src_hops_process_format_binary_int08 ( obj ) ; break ; case format_binary_int16 : src_hops_process_format_binary_int16 ( obj ) ; break ; case format_binary_int24 : src_hops_process_format_binary_int24 ( obj ) ; break ; case for... |
5,999 | CWE-000 <S2SV_StartBug> UndoRecPtr <S2SV_EndBug> FetchLatestUndoPtrForXid ( UndoRecPtr urecptr , UnpackedUndoRecord * uur_start , UndoLogControl * log ) { UndoRecPtr next_urecptr , from_urecptr ; uint16 prevlen ; UndoLogOffset next_insert ; UnpackedUndoRecord * uur ; bool refetch = false ; uur = uur_start ; while ( tru... | <S2SV_ModStart> <S2SV_null> <S2SV_null> <S2SV_null> static <S2SV_ModStart> ( next_urecptr ) , false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.