Unnamed: 0
int64
0
535k
source
stringlengths
50
89.8k
target
stringlengths
23
37.7k
534,000
CWE-000 static size_t mca_btl_uct_send_frag_pack ( void * data , void * arg ) { mca_btl_uct_base_frag_t * frag = ( mca_btl_uct_base_frag_t * ) arg ; size_t length = 8 ; memcpy ( data , & frag -> header , sizeof ( frag -> header ) ) ; data = ( void * ) ( ( intptr_t ) data + 8 ) ; <S2SV_StartBug> for ( size_t i = 0 ; i <...
<S2SV_ModStart> ; i < frag -> base . des_segment_count <S2SV_ModEnd> ; ++ i
534,001
CWE-000 void * dummy_preserve_mem ( struct wd_queue * q , size_t size ) { void * mem = mmap ( 0 , size , PROT_READ | PROT_WRITE , <S2SV_StartBug> MAP_SHARED , q -> fd , PAGE_SIZE ) ; <S2SV_EndBug> if ( mem == MAP_FAILED ) return NULL ; else return mem ; }
<S2SV_ModStart> -> fd , size <S2SV_ModEnd> ) ; if
534,002
CWE-000 static void decode_hex ( size_t length , uint8_t * dst , const char * src ) { struct base16_decode_ctx ctx ; size_t out_size ; base16_decode_init ( & ctx ) ; <S2SV_StartBug> ASSERT ( base16_decode_update ( & ctx , & out_size , dst , 2 * length , src ) ) ; <S2SV_EndBug> ASSERT ( out_size == length ) ; ASSERT ( b...
<S2SV_ModStart> * length , ( const uint8_t * )
534,003
CWE-000 void cache_manager_show ( void ) { GenericDialog * gd ; GtkWidget * group ; GtkWidget * button ; GtkWidget * table ; GtkSizeGroup * sizegroup ; <S2SV_StartBug> if ( cache_manager ) <S2SV_EndBug> { gtk_window_present ( GTK_WINDOW ( cache_manager -> dialog -> dialog ) ) ; return ; } cache_manager = g_new0 ( Cache...
<S2SV_ModStart> * sizegroup ; gchar * path ; <S2SV_ModStart> GTK_ORIENTATION_VERTICAL ) ; path = g_build_filename ( homedir ( ) , THUMB_FOLDER_GLOBAL , NULL ) ; <S2SV_ModStart> ( group , path ) ; g_free ( path <S2SV_ModEnd> ) ; table
534,004
CWE-000 void core_mmu_set_discovered_nsec_ddr ( struct core_mmu_phys_mem * start , size_t nelems ) { struct core_mmu_phys_mem * m = start ; size_t num_elems = nelems ; struct tee_mmap_region * map = static_memory_map ; <S2SV_StartBug> const struct core_mmu_phys_mem __maybe_unused * pmem ; <S2SV_EndBug> assert ( ! disco...
<S2SV_ModStart> __maybe_unused * pmem ; paddr_t pa <S2SV_ModStart> = num_elems ; if ( ADD_OVERFLOW ( m [ num_elems - 1 ] . addr , m [ num_elems - 1 ] . size - 1 , & pa ) ) panic ( ) ; core_mmu_set_max_pa ( pa ) ;
534,005
CWE-000 int findVal ( char c ) { int i = 0 ; <S2SV_StartBug> while ( values [ i ] . name != c ) { <S2SV_EndBug> i ++ ; } <S2SV_StartBug> return i ; <S2SV_EndBug> }
<S2SV_ModStart> name != c && i < size_s <S2SV_ModStart> ++ ; } if ( i >= size_s ) return - 1 ;
534,006
CWE-000 static ssize_t set_temp_min ( struct device * dev , struct device_attribute * attr , const char * buf , size_t count ) { struct i2c_client * client = to_i2c_client ( dev ) ; struct adm1031_data * data = i2c_get_clientdata ( client ) ; int nr = to_sensor_dev_attr ( attr ) -> index ; long val ; int ret ; ret = ks...
<S2SV_ModStart> - 55000 , 127000 <S2SV_ModEnd> ) ; mutex_lock
534,007
CWE-000 void wrapper_vec_to_strvec ( int_t rows , real_t * V , struct d_strvec * sV , char * * ptr ) { <S2SV_StartBug> init_strvec ( rows , sV , ptr ) ; <S2SV_EndBug> d_cvt_vec2strvec ( rows , V , sV , 0 ) ; }
<S2SV_ModStart> ptr ) { create_strvec <S2SV_ModEnd> ( rows ,
534,008
CWE-000 void accel_shutdown ( void ) { zend_ini_entry * ini_entry ; zend_bool _file_cache_only = 0 ; zend_optimizer_shutdown ( ) ; zend_accel_blacklist_shutdown ( & accel_blacklist ) ; if ( ! ZCG ( enabled ) || ! accel_startup_ok ) { # ifdef ZTS ts_free_id ( accel_globals_id ) ; # endif return ; } <S2SV_StartBug> # ifd...
<S2SV_ModStart> return ; } if ( ZCSG ( preload_script ) ) { preload_shutdown ( ) ; } <S2SV_ModStart> _file_cache_only ) { orig_post_shutdown_cb = zend_post_shutdown_cb ; zend_post_shutdown_cb = accel_post_shutdown <S2SV_ModEnd> ; } zend_compile_file
534,009
CWE-000 static void snd_pcm_ioplug_hw_ptr_update ( snd_pcm_t * pcm ) { ioplug_priv_t * io = pcm -> private_data ; snd_pcm_sframes_t hw ; hw = io -> data -> callback -> pointer ( io -> data ) ; if ( hw >= 0 ) { snd_pcm_uframes_t delta ; <S2SV_StartBug> if ( ( snd_pcm_uframes_t ) hw >= io -> last_hw ) <S2SV_EndBug> delta...
<S2SV_ModStart> snd_pcm_uframes_t delta ; snd_pcm_uframes_t avail ; <S2SV_ModStart> delta ) ; if ( io -> data -> state == SND_PCM_STATE_DRAINING ) { avail = snd_pcm_mmap_avail ( pcm ) ; if ( avail >= pcm -> buffer_size ) snd_pcm_ioplug_drop ( pcm ) ; } <S2SV_ModStart> ; } else { if ( <S2SV_ModStart> data -> state == SN...
534,010
CWE-000 le_result_t le_ecall_SetVIN ( const char * vin ) { le_cfg_IteratorRef_t iterator ; <S2SV_StartBug> if ( ! vin ) <S2SV_EndBug> { LE_KILL_CLIENT ( "vin<S2SV_blank>is<S2SV_blank>NULL<S2SV_blank>!" ) ; return LE_BAD_PARAMETER ; } if ( strlen ( vin ) != LE_ECALL_VIN_MAX_LEN ) { LE_WARN ( "VIN<S2SV_blank>has<S2SV_bla...
<S2SV_ModStart> le_cfg_IteratorRef_t iterator ; <S2SV_ModEnd> if ( strlen
534,011
CWE-000 static int qemuDispatchConnectDomainMonitorEventRegister ( virNetServerPtr server ATTRIBUTE_UNUSED , virNetServerClientPtr client , virNetMessagePtr msg ATTRIBUTE_UNUSED , virNetMessageErrorPtr rerr ATTRIBUTE_UNUSED , qemu_connect_domain_monitor_event_register_args * args , qemu_connect_domain_monitor_event_reg...
<S2SV_ModStart> -> client = virObjectRef ( client ) <S2SV_ModEnd> ; callback -> <S2SV_ModStart> ; cleanup : remoteEventCallbackFree <S2SV_ModEnd> ( callback )
534,012
CWE-000 static void rt_tile_get_region ( gboolean has_alpha , const GdkPixbuf * src , GdkPixbuf * dest , int pb_x , int pb_y , int pb_w , int pb_h , double offset_x , double offset_y , double scale_x , double scale_y , GdkInterpType interp_type , int check_x , int check_y ) { if ( ! has_alpha ) { if ( scale_x == 1.0 &&...
<S2SV_ModStart> , scale_y , ( scale_x == 1.0 && scale_y == 1.0 ) ? GDK_INTERP_NEAREST :
534,013
CWE-000 void salesHistory ( ) { FILE * transactionStorage ; int numOfTransactions = 0 , i ; int dayOfMonth , month , year , priceInCents , customerID ; transactionStorage = fopen ( "history.bin" , "rb" ) ; if ( transactionStorage == NULL ) { printf ( "Error!<S2SV_blank>File<S2SV_blank>does<S2SV_blank>not<S2SV_blank>exi...
<S2SV_ModStart> ) ; } <S2SV_ModEnd> while ( ( <S2SV_ModStart> ( transactionStorage , "%d<S2SV_blank>%d<S2SV_blank>%d<S2SV_blank>%d<S2SV_blank>%d\\n" <S2SV_ModEnd> , & dayOfMonth <S2SV_ModStart> customerID ) == 5 ) <S2SV_ModEnd> ) { printf <S2SV_ModStart> { printf ( "%d/%d/%d<S2SV_blank>$%d<S2SV_blank>ID:%d<S2SV_blank>\...
534,014
CWE-000 static struct evhttp_cb * evhttp_dispatch_callback ( struct httpcbq * callbacks , struct evhttp_request * req ) { struct evhttp_cb * cb ; size_t offset = 0 ; char * translated ; const char * path ; path = evhttp_uri_get_path ( req -> uri_elems ) ; offset = strlen ( path ) ; if ( ( translated = mm_malloc ( offse...
<S2SV_ModStart> { if ( startsWith <S2SV_ModEnd> ( cb ->
534,015
CWE-000 static bool ixgbe_clean_tx_irq ( struct ixgbe_q_vector * q_vector , struct ixgbe_ring * tx_ring , int napi_budget ) { struct ixgbe_adapter * adapter = q_vector -> adapter ; struct ixgbe_tx_buffer * tx_buffer ; union ixgbe_adv_tx_desc * tx_desc ; unsigned int total_bytes = 0 , total_packets = 0 ; unsigned int bu...
<S2SV_ModStart> ) break ; smp_rmb <S2SV_ModEnd> ( ) ;
534,016
CWE-000 void stats_transform_xslt ( client_t * client , const char * uri ) { xmlDocPtr doc ; char * xslpath = util_get_path_from_normalised_uri ( uri ) ; const char * mount = httpp_get_param ( client -> parser , "mount" ) ; <S2SV_StartBug> doc = stats_get_xml ( 0 , mount , client -> mode ) ; <S2SV_EndBug> xslt_transfor...
<S2SV_ModStart> mount , client <S2SV_ModEnd> ) ; xslt_transform
534,017
CWE-000 static int subbuf_start_handler ( struct rchan_buf * buf , void * subbuf , void * prev_subbuf , uint prev_padding ) { <S2SV_StartBug> pr_debug ( "kgsl:<S2SV_blank>cffdump:<S2SV_blank>subbuf_start_handler(subbuf=%pK,<S2SV_blank>prev_subbuf" <S2SV_EndBug> "=%pK,<S2SV_blank>prev_padding=%08x)\\n" , subbuf , prev_s...
<S2SV_ModStart> prev_padding ) { <S2SV_ModEnd> if ( relay_buf_full
534,018
CWE-000 void changeArray ( ) { <S2SV_StartBug> uint16_t screen = ClockP_getSystemTicks ( ) ; <S2SV_EndBug> uint8_t temp ; uint8_t col ; int8_t row ; uint8_t i ; for ( row = 3 ; row >= 0 ; row -- ) { for ( col = 0 ; col < 4 ; col ++ ) { temp = gameBoard [ row ] [ col ] ; gameBoard [ row + 1 ] [ col ] = temp ; } } uint8_...
<S2SV_ModStart> ( ) { uint32_t <S2SV_ModEnd> screen = ClockP_getSystemTicks
534,019
CWE-000 static void hns_roce_free_cmq_desc ( struct hns_roce_dev * hr_dev , struct hns_roce_v2_cmq_ring * ring ) { dma_unmap_single ( hr_dev -> dev , ring -> desc_dma_addr , ring -> desc_num * sizeof ( struct hns_roce_cmq_desc ) , DMA_BIDIRECTIONAL ) ; <S2SV_StartBug> kfree ( ring -> desc ) ; <S2SV_EndBug> }
<S2SV_ModStart> DMA_BIDIRECTIONAL ) ; ring -> desc_dma_addr = 0 ;
534,020
CWE-000 int __dwc3_gadget_kick_transfer ( struct dwc3_ep * dep , u16 cmd_param , bool giveback ) { struct dwc3_gadget_ep_cmd_params params ; struct dwc3_request * req ; int starting ; int ret ; u32 cmd ; starting = ! ( dep -> flags & DWC3_EP_BUSY ) ; dwc3_prepare_trbs ( dep ) ; req = next_request ( & dep -> started_lis...
<S2SV_ModStart> dep -> stream_capable && 0
534,021
CWE-000 int main ( void ) { int s_is_down = 0 , f_is_down = 0 , s_give_up = 0 , f_give_up = 0 ; struct input_event input ; setbuf ( stdin , NULL ) , setbuf ( stdout , NULL ) ; while ( read_event ( & input ) ) { if ( input . type == EV_MSC && input . code == MSC_SCAN ) { continue ; } if ( input . type != EV_KEY ) { writ...
<S2SV_ModStart> } if ( f_is_down && ! s_is_down ) { if ( equal ( & input , & f_up ) ) { f_is_down = 0 ; f_give_up = 0 ; continue ; } } else if (
534,022
CWE-000 MonoThreadInfoWaitRet mono_thread_info_wait_multiple_handle ( MonoThreadHandle * * thread_handles , gsize nhandles , MonoOSEvent * background_change_event , gboolean waitall , guint32 timeout , gboolean alertable ) { MonoOSEventWaitRet res ; MonoOSEvent * thread_events [ MONO_OS_EVENT_WAIT_MAXIMUM_OBJECTS ] ; g...
<S2SV_ModStart> 1 ) return ( MonoThreadInfoWaitRet ) ( <S2SV_ModStart> res - MONO_OS_EVENT_WAIT_RET_SUCCESS_0 )
534,023
CWE-000 static ssize_t wdm_write ( struct file * file , const char __user * buffer , size_t count , loff_t * ppos ) { u8 * buf ; int rv = - EMSGSIZE , r , we ; struct wdm_device * desc = file -> private_data ; struct usb_ctrlrequest * req ; if ( count > desc -> wMaxCommand ) count = desc -> wMaxCommand ; spin_lock_irq ...
<S2SV_ModStart> , "Tx<S2SV_blank>URB<S2SV_blank>has<S2SV_blank>been<S2SV_blank>submitted<S2SV_blank>index=%d" , le16_to_cpu ( <S2SV_ModStart> req -> wIndex )
534,024
CWE-000 bool parse_track_order ( const char * str ) { int bits_done = 0 ; if ( strlen ( str ) != ntrks ) return false ; <S2SV_StartBug> for ( int i = 0 ; i < ntrks ; ++ i ) { <S2SV_EndBug> byte ch = str [ i ] ; <S2SV_StartBug> if ( toupper ( ch ) == 'P' ) ch = ntrks - 1 ; <S2SV_EndBug> else { if ( ! isdigit ( ch ) ) re...
<S2SV_ModStart> ; for ( unsigned <S2SV_ModEnd> i = 0 <S2SV_ModStart> ) ch = ( byte )
534,025
CWE-000 int erts_clear_module_break ( Module * modp ) { BeamCodeHeader * code_hdr ; Uint n ; Uint i ; ERTS_SMP_LC_ASSERT ( erts_smp_thr_progress_is_blocking ( ) ) ; ASSERT ( modp ) ; code_hdr = modp -> curr . code_hdr ; if ( ! code_hdr ) { return 0 ; } n = ( Uint ) ( UWord ) code_hdr -> num_functions ; for ( i = 0 ; i ...
<S2SV_ModStart> ; if ( erts_is_function_native <S2SV_ModEnd> ( ci ) <S2SV_ModStart> ; if ( erts_is_function_native <S2SV_ModEnd> ( ci )
534,026
CWE-000 int main ( int argc , char * argv [ ] ) { void * fdt ; uint8_t expected_8 [ 6 ] = { TEST_CHAR1 , TEST_CHAR2 , TEST_CHAR3 , TEST_CHAR4 , TEST_CHAR5 , TEST_VALUE_1 >> 24 } ; <S2SV_StartBug> uint16_t expected_16 [ 6 ] ; <S2SV_EndBug> uint32_t expected_32 [ 6 ] ; uint64_t expected_64 [ 6 ] ; int i ; for ( i = 0 ; i...
<S2SV_ModStart> 24 } ; fdt16_t expected_16 [ 6 ] ; fdt32_t expected_32 [ 6 ] ; fdt64_t <S2SV_ModEnd> expected_64 [ 6
534,027
CWE-000 void assertResult ( int expected , int actual , char * testDescription ) { if ( expected == actual ) { printf ( GREEN_TEXT "SUCCESS:" RESET_TEXT ) ; printf ( "<S2SV_blank>%s;<S2SV_blank>Expected:<S2SV_blank>%d,<S2SV_blank>Actual:<S2SV_blank>%d\\n" , testDescription , expected , actual ) ; } else { <S2SV_StartBu...
<S2SV_ModStart> printf ( RED_TEXT "<S2SV_blank><S2SV_blank><S2SV_blank>FAIL:" <S2SV_ModEnd> RESET_TEXT ) ;
534,028
CWE-000 API const struct lys_node * lys_getnext ( const struct lys_node * last , const struct lys_node * parent , const struct lys_module * module , int options ) { const struct lys_node * next , * aug_parent ; struct lys_node * * snode ; <S2SV_StartBug> if ( ( ! parent && ! module ) || ( module && module -> type ) && ...
<S2SV_ModStart> -> type ) || <S2SV_ModEnd> ( parent &&
534,029
CWE-000 str LSSTxmatchselect ( bat * res , bat * bid , bat * sid , lng * r , int * delta , bit * anti ) { int shift ; BAT * b , * s = NULL , * bn ; const lng * l ; lng lhtm , rhtm ; if ( * delta < 0 || * delta > 31 ) throw ( MAL , "lsst.xmatch" , "delta<S2SV_blank>not<S2SV_blank>in<S2SV_blank>0--31" ) ; shift = 2 * * d...
<S2SV_ModStart> , "algebra.xmatch" , SQLSTATE ( HY002 ) <S2SV_ModEnd> RUNTIME_OBJECT_MISSING ) ; <S2SV_ModStart> , "algebra.xmatch" , SQLSTATE ( HY002 ) <S2SV_ModEnd> RUNTIME_OBJECT_MISSING ) ;
534,030
CWE-000 <S2SV_StartBug> char * fetch_next_line ( FILE * f ) <S2SV_EndBug> { <S2SV_StartBug> char * ln , * p ; <S2SV_EndBug> int n_bytes ; for ( ; ; ) { ln = NULL ; n_bytes = ( line_byte_cnt ( f ) ) ; if ( n_bytes == 0 ) { return NULL ; } if ( ( ln = malloc ( ( size_t ) ( n_bytes + 1 ) ) ) == NULL ) log_syserr ( "malloc...
<S2SV_ModStart> FILE * f , int * n <S2SV_ModStart> { char * p , * ln <S2SV_ModEnd> ; int n_bytes <S2SV_ModStart> ( ln , ( <S2SV_ModStart> n_bytes + 1 ) <S2SV_ModStart> ; } } * n = n_bytes ;
534,031
CWE-000 <S2SV_StartBug> ssize_t nbd_send_request ( QIOChannel * ioc , NBDRequest * request ) <S2SV_EndBug> { uint8_t buf [ NBD_REQUEST_SIZE ] ; trace_nbd_send_request ( request -> from , request -> len , request -> handle , request -> flags , request -> type , nbd_cmd_lookup ( request -> type ) ) ; stl_be_p ( buf , NBD...
<S2SV_ModStart> <S2SV_null> <S2SV_null> <S2SV_null> int <S2SV_ModEnd> nbd_send_request ( QIOChannel
534,032
CWE-000 Status CriticalPath ( ALGraph G ) { <S2SV_StartBug> Sqstack ( T ) ; <S2SV_EndBug> if ( ! TopoLogicalSort ( G , & T ) ) return ERROR ; }
<S2SV_ModStart> ) { Sqstack T <S2SV_ModEnd> ; if (
534,033
CWE-000 int32_t readDirInvoke ( void * arg , char * filename , int flag ) { struct listCallback * listInvoke = ( struct listCallback * ) arg ; struct operation_listResponse * listhdr ; <S2SV_StartBug> struct fileinfo * fileInfo ; <S2SV_EndBug> char * ptrFlag = NULL ; int32_t res ; if ( ! listInvoke ) { return EUSTOR_AR...
<S2SV_ModStart> fileinfo * fileInfo ; struct uStorPro_fsOnDev * proHeader = ( struct uStorPro_fsOnDev * ) ( listInvoke -> proHeader ) <S2SV_ModStart> { DEBUG ( "Buffer<S2SV_blank>is<S2SV_blank>Full,<S2SV_blank>need<S2SV_blank>Send<S2SV_blank>it<S2SV_blank>immediately[Payload:%dBytes]\\n" , proHeader -> len <S2SV_ModEnd...
534,034
CWE-000 int main ( int argc , char * argv [ ] ) { <S2SV_StartBug> int fd ; <S2SV_EndBug> char buf [ 4096 ] , * s , * table_name ; ssize_t n ; size_t total = 0 , pad , align = 0 ; struct stat st ; switch ( argc ) { case 3 : align = strtoul ( argv [ 2 ] , & s , 10 ) ; if ( * s ) usage ( ) ; case 2 : table_name = argv [ 1...
<S2SV_ModStart> ] ) { <S2SV_ModEnd> char buf [ <S2SV_ModStart> ; printf ( "\\nconst<S2SV_blank>int<S2SV_blank>%s_mtime<S2SV_blank>=<S2SV_blank>%ld;\\n" <S2SV_ModEnd> , table_name ,
534,035
CWE-000 int vzRegister ( void ) { char * prlctl_path ; prlctl_path = virFindFileInPath ( PRLCTL ) ; if ( ! prlctl_path ) { VIR_DEBUG ( "%s" , _ ( "Can\'t<S2SV_blank>find<S2SV_blank>prlctl<S2SV_blank>command<S2SV_blank>in<S2SV_blank>the<S2SV_blank>PATH<S2SV_blank>env" ) ) ; return 0 ; } VIR_FREE ( prlctl_path ) ; parall...
<S2SV_ModStart> = "Parallels" ; <S2SV_ModEnd> if ( virRegisterConnectDriver
534,036
CWE-000 static void domain_to_disk ( OR_BUF * buf , TP_DOMAIN * domain ) { char * start ; int offset ; DB_VALUE schema_value ; if ( TP_DOMAIN_COLLATION_FLAG ( domain ) != TP_DOMAIN_COLL_NORMAL ) { assert ( false ) ; er_set ( ER_ERROR_SEVERITY , ARG_FILE_LINE , ER_TF_OUT_OF_SYNC , 0 ) ; } start = buf -> ptr ; offset = t...
<S2SV_ModStart> schema_value ) ; pr_clear_value ( & schema_value ) ;
534,037
CWE-000 static int compare_name ( int mode , const char * name , const char * uid , size_t uidlen ) { int i ; const char * s , * se ; if ( mode == KEYDB_SEARCH_MODE_EXACT ) { for ( i = 0 ; name [ i ] && uidlen ; i ++ , uidlen -- ) if ( uid [ i ] != name [ i ] ) break ; if ( ! uidlen && ! name [ i ] ) return 0 ; } else ...
<S2SV_ModStart> KEYDB_SEARCH_MODE_MAILEND ) { int have_angles = 1 ; <S2SV_ModStart> if ( i == uidlen ) { have_angles = 0 ; s = uid ; i = 0 ; } if ( i <S2SV_ModStart> < uidlen ) { if ( have_angles ) <S2SV_ModStart> ++ ) ; } else se = s + uidlen ;
534,038
CWE-000 static bool batadv_tt_global_add ( struct batadv_priv * bat_priv , struct batadv_orig_node * orig_node , const unsigned char * tt_addr , unsigned short vid , u16 flags , u8 ttvn ) { struct batadv_tt_global_entry * tt_global_entry ; struct batadv_tt_local_entry * tt_local_entry ; bool ret = false ; int hash_adde...
<S2SV_ModStart> flags = flags & ( ~ BATADV_TT_SYNC_MASK )
534,039
CWE-000 uint8_t spiRW ( uint8_t * data , uint8_t num_bytes ) { uint8_t err ; err = wiringPiSPIDataRW ( SPI_CHANNEL , data , num_bytes ) ; <S2SV_StartBug> if ( err > 0 ) { <S2SV_EndBug> return 0 ; } else { return 1 ; } }
<S2SV_ModStart> if ( err >= <S2SV_ModEnd> 0 ) {
534,040
CWE-000 int rtc_millis_set_alarm ( uint32_t milliseconds , rtc_alarm_cb_t cb , void * arg ) { rtc_unlock ( ) ; DEBUG ( "%s:<S2SV_blank>RTC<S2SV_blank>unlocked\\n" , __FUNCTION__ ) ; RTC -> CR &= ~ ( RTC_MILLIS_CR_ALARM_EN | RTC_MILLIS_CR_ALARM_IE ) ; while ( ! ( RTC -> ISR & RTC_MILLIS_ISR_WF ) ) { } DEBUG ( "%s:<S2SV_...
<S2SV_ModStart> ; DEBUG ( "%s:<S2SV_blank>next<S2SV_blank>alarm<S2SV_blank>at<S2SV_blank>%" PRIu32 "d<S2SV_blank>%" PRIu32 ":%" PRIu32 ":%" PRIu32 ".%" PRIu32 "\\n" <S2SV_ModEnd> , __FUNCTION__ ,
534,041
CWE-000 size_t substrings_ukkonen_implicit ( const char * instr , const size_t instrlen , const size_t UNQ_CHARS ) { node * root = calloc ( 1 , sizeof ( node ) ) ; root -> edges = calloc ( UNQ_CHARS , sizeof ( edge * ) ) ; point * ap = malloc ( sizeof ( point ) ) ; ap -> node = root ; ap -> depth = 0 ; ap -> edge = NUL...
<S2SV_ModStart> { currSuffix_loop : ; <S2SV_ModStart> } prevNode = ( ap -> node == root ? NULL : ap -> node ) <S2SV_ModEnd> ; } currSuffix <S2SV_ModStart> ap -> depth > 0 ? ap -> depth -- : 0 <S2SV_ModEnd> ; if ( <S2SV_ModStart> ( prevNode == NULL || prevNode == <S2SV_ModStart> } } } <S2SV_ModEnd> free ( ap
534,042
CWE-000 LZ_STATUS LzLzmaInitializeEncoder ( PLZ_CONTEXT Context , PLZMA_ENCODER_PROPERTIES Properties , BOOL FileWrapper ) { PLZMA_ENCODER Encoder ; BOOL EncoderCreated ; LZ_STATUS Status ; Encoder = NULL ; EncoderCreated = FALSE ; if ( Context -> Reallocate == NULL ) { return LzErrorInvalidParameter ; } Context -> Com...
<S2SV_ModStart> Context -> UncompressedCrc32 = 0 ; Context -> CompressedSize
534,043
CWE-000 static int hifive_uart_tstc ( void ) { hifive_uart_t * usart = ( hifive_uart_t * ) HIFIVE_UART_BASE_ADDR ; <S2SV_StartBug> if ( lastread & UART_RXFIFO_EMPTY ) <S2SV_EndBug> <S2SV_StartBug> lastread = readl ( & usart -> rxdata ) ; <S2SV_EndBug> return ! ( lastread & UART_RXFIFO_EMPTY ) ; }
<S2SV_ModStart> ) HIFIVE_UART_BASE_ADDR ; return ( <S2SV_ModEnd> readl ( & <S2SV_ModStart> & usart -> ip ) & UART_IP_RXWM <S2SV_ModEnd> ) ; }
534,044
CWE-000 static enum req_fsm_nxt cnt_deliver ( struct worker * wrk , struct req * req ) { CHECK_OBJ_NOTNULL ( wrk , WORKER_MAGIC ) ; CHECK_OBJ_NOTNULL ( req , REQ_MAGIC ) ; CHECK_OBJ_NOTNULL ( req -> objcore , OBJCORE_MAGIC ) ; CHECK_OBJ_NOTNULL ( req -> objcore -> objhead , OBJHEAD_MAGIC ) ; <S2SV_StartBug> AN ( req ->...
<S2SV_ModStart> OBJHEAD_MAGIC ) ; AZ ( req -> stale_oc ) ; <S2SV_ModStart> ) ) { ( void ) HSH_DerefObjCore ( wrk , & req -> objcore , HSH_RUSH_POLICY ) ;
534,045
CWE-000 static void gen_onoff_set ( struct bt_mesh_model * model , struct bt_mesh_msg_ctx * ctx , struct net_buf_simple * buf ) { <S2SV_StartBug> gen_onoff_set_unack ( model , ctx , buf ) ; <S2SV_EndBug> gen_onoff_get ( model , ctx , buf ) ; }
<S2SV_ModStart> buf ) { if ( gen_onoff_set_exec <S2SV_ModEnd> ( model , <S2SV_ModStart> , buf ) != 0 ) { return ; } <S2SV_ModEnd> gen_onoff_get ( model
534,046
CWE-000 static ssize_t disksize_store ( struct device * dev , struct device_attribute * attr , const char * buf , size_t len ) { u64 disksize ; struct zcomp * comp ; struct zram_meta * meta ; struct zram * zram = dev_to_zram ( dev ) ; int err ; disksize = memparse ( buf , NULL ) ; if ( ! disksize ) return - EINVAL ; di...
<S2SV_ModStart> SECTOR_SHIFT ) ; revalidate_disk ( zram -> disk ) ;
534,047
CWE-000 static void list_Init ( struct array_t * v ) { <S2SV_StartBug> v -> data = ( void * * ) malloc ( 10 * sizeof ( void * ) ) ; <S2SV_EndBug> v -> size = 0 ; <S2SV_StartBug> v -> allocated = 10 ; <S2SV_EndBug> }
<S2SV_ModStart> ) malloc ( kMemChunkSize <S2SV_ModEnd> * sizeof ( <S2SV_ModStart> -> allocated = kMemChunkSize <S2SV_ModEnd> ; } <S2SV_null>
534,048
CWE-000 void stream_detector ( float thresh , char * stream_path , char * ostream_path , char * datacfg , char * cfgfile , char * weightfile ) { list * options = read_data_cfg ( datacfg ) ; char * name_list = option_find_str ( options , "names" , "data/names.list" ) ; char * * names = get_labels ( name_list ) ; network...
<S2SV_ModStart> = fgets ( buf <S2SV_ModEnd> , sizeof (
534,049
CWE-000 static int l_kvsdir_watch_dir ( lua_State * L ) { flux_t * h ; flux_kvsdir_t * dir ; dir = lua_get_kvsdir ( L , 1 ) ; <S2SV_StartBug> h = kvsdir_handle ( dir ) ; <S2SV_EndBug> <S2SV_StartBug> return l_pushresult ( L , kvs_watch_once_dir ( h , & dir , "%s" , kvsdir_key ( dir ) ) ) ; <S2SV_EndBug> }
<S2SV_ModStart> ; h = flux_kvsdir_handle <S2SV_ModEnd> ( dir ) <S2SV_ModStart> , "%s" , flux_kvsdir_key <S2SV_ModEnd> ( dir )
534,050
CWE-000 <S2SV_StartBug> static void <S2SV_EndBug> rnp_cfg_get_defkey ( rnp_cfg_t * cfg , rnp_params_t * params ) { char id [ MAX_ID_LENGTH ] ; const char * userid ; const char * homedir ; bool defhomedir = false ; if ( ( homedir = rnp_cfg_get ( cfg , CFG_HOMEDIR ) ) == NULL ) { homedir = getenv ( "HOME" ) ; defhomedir ...
<S2SV_ModStart> <S2SV_null> <S2SV_null> <S2SV_null> <S2SV_ModEnd> void rnp_cfg_get_defkey (
534,051
CWE-000 static void doubletap2wake_pwrtrigger ( void ) { <S2SV_StartBug> pwrtrigger_time [ 1 ] = pwrtrigger_time [ 0 ] ; <S2SV_EndBug> pwrtrigger_time [ 0 ] = jiffies ; if ( pwrtrigger_time [ 0 ] - pwrtrigger_time [ 1 ] < TRIGGER_TIMEOUT ) return ; schedule_work ( & doubletap2wake_presspwr_work ) ; return ; }
<S2SV_ModStart> void ) { <S2SV_ModEnd> schedule_work ( &
534,052
CWE-000 int tee_supp_rk_fs_init ( void ) { assert ( sizeof ( struct rkss_file_info ) == 126 ) ; assert ( 512 / sizeof ( struct rkss_file_info ) == RKSS_EACH_FILEFOLDER_COUNT ) ; int i , ret ; struct rk_secure_storage rkss = { 0 } ; # ifdef DEBUG_CLEAN_RKSS for ( i = 0 ; i < RKSS_DATA_SECTION_COUNT ; i ++ ) { <S2SV_Star...
<S2SV_ModStart> ++ ) { memset ( rkss . data , 0 , RKSS_DATA_LEN ) ;
534,053
CWE-000 double get_utime_monotonic ( void ) { struct timespec T ; <S2SV_StartBug> assert ( clock_gettime ( CLOCK_MONOTONIC , & T ) >= 0 ) ; <S2SV_EndBug> precise_now_rdtsc = rdtsc ( ) ; return precise_now = ( double ) T . tv_sec + ( double ) T . tv_nsec * 1e-9 ; }
<S2SV_ModStart> timespec T ; <S2SV_ModEnd> clock_gettime ( CLOCK_MONOTONIC <S2SV_ModStart> , & T <S2SV_ModEnd> ) ; precise_now_rdtsc
534,054
CWE-000 void fitDataUpdate ( fitData * fit_data , peakData * peak , double * delta ) { int margin , xc , yc ; daoPeak * dao_peak ; daoFit * dao_fit ; dao_peak = ( daoPeak * ) peak -> peak_model ; mFitUpdateParams ( peak , delta ) ; if ( fabs ( peak -> params [ XCENTER ] - ( double ) dao_peak -> xc - 0.5 ) > HYSTERESIS ...
<S2SV_ModStart> -> status = ERROR <S2SV_ModEnd> ; fit_data -> <S2SV_ModStart> -> status = ERROR <S2SV_ModEnd> ; fit_data -> <S2SV_ModStart> -> status = ERROR <S2SV_ModEnd> ; fit_data ->
534,055
CWE-000 int main ( int argc , char * * argv ) { int ret ; CU_pTest test ; CU_pSuite suite ; CU_TestInfo tests [ ] = { { "test_vcf" , test_vcf } , { "test_vcf_no_mutations" , test_vcf_no_mutations } , { "test_node_metadata" , test_node_metadata } , { "test_empty_tree_sequence" , test_empty_tree_sequence } , { "test_zero...
<S2SV_ModStart> } , { "test_simplest_holey_tree_sequence_mutation_parents" , test_simplest_holey_tree_sequence_mutation_parents } , { <S2SV_ModStart> } , { "test_simplest_initial_gap_tree_sequence_mutation_parents" , test_simplest_initial_gap_tree_sequence_mutation_parents } , { <S2SV_ModStart> "test_simplest_final_gap...
534,056
CWE-000 uint32_t get_dev_ts ( uint8_t * serial , uint8_t len ) { uint32_t ts = 0 ; bool found = false ; int offset = 2 ; int dev_num = 0 ; <S2SV_StartBug> int i ; <S2SV_EndBug> int devx_len = 0 ; enum status_code ret = at25dfx_chip_wake ( & at25dfx_chip ) ; if ( ret != STATUS_OK ) { printf ( "chip<S2SV_blank>wake<S2SV_...
<S2SV_ModStart> ; int i , j <S2SV_ModStart> len + 2 ; for ( j = 0 ; j < dev_info [ offset ] ; j ++ ) printf ( "%c" , dev_info [ offset + j + 1 ] ) ; printf ( "\\r\\n" )
534,057
CWE-000 void sh4_inst_binary_dmulsl_gen_gen ( Sh4 * sh4 , Sh4OpArgs inst ) { CHECK_INST ( inst , INST_MASK_0011nnnnmmmm1101 , INST_CONS_0011nnnnmmmm1101 ) ; <S2SV_StartBug> int64_t val1 = * sh4_gen_reg ( sh4 , inst . dst_reg ) ; <S2SV_EndBug> <S2SV_StartBug> int64_t val2 = * sh4_gen_reg ( sh4 , inst . src_reg ) ; <S2SV...
<S2SV_ModStart> INST_CONS_0011nnnnmmmm1101 ) ; int32_t <S2SV_ModEnd> val1 = * <S2SV_ModStart> dst_reg ) ; int32_t <S2SV_ModEnd> val2 = *
534,058
CWE-000 static gboolean spice_gst_decoder_queue_frame ( VideoDecoder * video_decoder , SpiceFrame * frame , int latency ) { SpiceGstDecoder * decoder = ( SpiceGstDecoder * ) video_decoder ; if ( frame -> size == 0 ) { SPICE_DEBUG ( "got<S2SV_blank>an<S2SV_blank>empty<S2SV_blank>frame<S2SV_blank>buffer!" ) ; frame -> fr...
<S2SV_ModStart> length ) ; <S2SV_ModEnd> } frame ->
534,059
CWE-000 void virtual_memory_prepare ( struct boot_config * config ) { <S2SV_StartBug> install_page_fault_handler ( config ) ; <S2SV_EndBug> validate_kernel_address_space ( config ) ; prepare_kernel_address_space ( ) ; }
<S2SV_ModStart> config ) { <S2SV_ModEnd> validate_kernel_address_space ( config
534,060
CWE-000 <S2SV_StartBug> int s2n_rsa_client_key_recv ( struct s2n_connection * conn , struct s2n_blob * shared_key ) <S2SV_EndBug> { <S2SV_StartBug> typedef int ( * orig_s2n_rsa_client_key_recv_func_type ) ( struct s2n_connection * conn , struct s2n_blob * shared_key ) ; <S2SV_EndBug> orig_s2n_rsa_client_key_recv_func_t...
<S2SV_ModStart> int s2n_rsa_client_key_recv ( const struct s2n_kex * kex , <S2SV_ModStart> orig_s2n_rsa_client_key_recv_func_type ) ( const struct s2n_kex * kex , <S2SV_ModStart> = orig_s2n_rsa_client_key_recv ( kex ,
534,061
CWE-000 void writeSymb ( char symb ) { <S2SV_StartBug> printf ( '%c' , symb ) ; <S2SV_EndBug> }
<S2SV_ModStart> { printf ( "%c<S2SV_blank>" <S2SV_ModEnd> , symb )
534,062
CWE-000 static int handle_exception ( struct kvm_vcpu * vcpu ) { struct vcpu_vmx * vmx = to_vmx ( vcpu ) ; struct kvm_run * kvm_run = vcpu -> run ; u32 intr_info , ex_no , error_code ; unsigned long cr2 , rip , dr6 ; u32 vect_info ; enum emulation_result er ; vect_info = vmx -> idt_vectoring_info ; intr_info = vmx -> e...
<S2SV_ModStart> ; if ( is_icebp ( intr_info <S2SV_ModEnd> ) ) skip_emulated_instruction
534,063
CWE-000 size_t ft_intlen ( int nbr ) { int ret ; <S2SV_StartBug> ret = ( nbr == 0 ) ? 1 : 0 ; <S2SV_EndBug> if ( nbr < 0 ) { nbr = abs ( nbr ) ; ret ++ ; } while ( nbr != 0 ) { nbr /= 10 ; ret ++ ; } return ( ret ) ; }
<S2SV_ModStart> 1 : 0 ; if ( ret ) return ( ret )
534,064
CWE-000 int fput ( const char * filename , char * ptr , size_t l ) { int fd ; <S2SV_StartBug> if ( ( fd = open ( filename , 65 , 0755 ) ) < 0 ) <S2SV_EndBug> return FALSE ; write ( fd , ptr , l ) ; close ( fd ) ; return TRUE ; }
<S2SV_ModStart> int fd ; mode_t m = 0755 ; struct stat buf ; if ( ! ( xstat ( filename , & buf ) < 0 ) ) { if ( ! S_ISREG ( buf . st_mode ) ) return FALSE ; m = buf . st_mode ; } <S2SV_ModStart> , 65 , m <S2SV_ModEnd> ) ) <
534,065
CWE-000 static void impl_activate ( PeasActivatable * bplugin ) { RBDaapPlugin * plugin = RB_DAAP_PLUGIN ( bplugin ) ; gboolean no_registration ; RBShell * shell ; GApplication * app ; plugin -> shutdown = FALSE ; g_log_set_handler ( "libdmapsharing" , G_LOG_LEVEL_MASK , libdmapsharing_debug , NULL ) ; g_object_get ( p...
<S2SV_ModStart> ( _ ( "Connect<S2SV_blank>to<S2SV_blank>DAAP<S2SV_blank>share…" <S2SV_ModEnd> ) , "app.daap-new-share"
534,066
CWE-000 <S2SV_StartBug> void tSequencer_encode ( tSequencer * const seq , uint16_t * sBuffer ) <S2SV_EndBug> { sBuffer [ SeqOctave ] = seq -> octave ; sBuffer [ SeqMaxLength ] = seq -> maxLength ; sBuffer [ SeqPitchOrTrigger ] = seq -> pitchOrTrigger ; for ( int hex = 0 ; hex < 32 ; hex ++ ) { int offset = SeqSteps + h...
<S2SV_ModStart> const seq , uint8_t <S2SV_ModEnd> * sBuffer )
534,067
CWE-000 static int openDirectory ( const char * zFilename , int * pFd ) { int ii ; int fd = - 1 ; char zDirname [ MAX_PATHNAME + 1 ] ; sqlite3_snprintf ( MAX_PATHNAME , zDirname , "%s" , zFilename ) ; <S2SV_StartBug> for ( ii = ( int ) strlen ( zDirname ) ; ii > 1 && zDirname [ ii ] != '/' ; ii -- ) ; <S2SV_EndBug> if ...
<S2SV_ModStart> ; ii > 0 <S2SV_ModEnd> && zDirname [ <S2SV_ModStart> = '\\0' ; } else { if ( zDirname [ 0 ] != '/' ) zDirname [ 0 ] = '.' ; zDirname [ 1 ] = 0 ; } <S2SV_ModStart> ) ; } <S2SV_ModEnd> * pFd = <S2SV_ModStart> = fd ; if <S2SV_ModEnd> ( fd >= <S2SV_ModStart> fd >= 0 ) return SQLITE_OK ; return <S2SV_ModEnd>...
534,068
CWE-000 int callback_glewlwyd_get_refresh_token_user ( const struct _u_request * request , struct _u_response * response , void * user_data ) { struct config_elements * config = ( struct config_elements * ) user_data ; long int offset , limit ; json_t * j_result ; int valid = - 1 ; <S2SV_StartBug> if ( u_map_get ( requ...
<S2SV_ModStart> ) != NULL && strlen ( u_map_get ( request -> map_url , "valid" ) ) > 0
534,069
CWE-000 static int apba_send_unipro_read_attr_req ( uint16_t attribute , uint16_t selector , uint8_t peer ) { int ret ; struct mhb_hdr req_hdr ; <S2SV_StartBug> struct mhb_unipro_read_attr_req req ; <S2SV_EndBug> memset ( & req_hdr , 0 , sizeof ( req_hdr ) ) ; req_hdr . addr = MHB_ADDR_UNIPRO ; req_hdr . type = MHB_TYP...
<S2SV_ModStart> struct mhb_unipro_read_attr_req req ; if ( ! g_ctrl -> mods_uart ) return - ENODEV
534,070
CWE-000 <S2SV_StartBug> ZEPHIR_INIT_CLASS ( Phalcon_Filter_Exception ) { <S2SV_EndBug> <S2SV_StartBug> ZEPHIR_REGISTER_CLASS_EX ( Phalcon \\ \\ Filter , Exception , phalcon , filter_exception , phalcon_exception_ce , NULL , 0 ) ; <S2SV_EndBug> return SUCCESS ; }
<S2SV_ModStart> <S2SV_null> ZEPHIR_INIT_CLASS ( Phalcon_Session_AdapterInterface ) { ZEPHIR_REGISTER_INTERFACE <S2SV_ModEnd> ( Phalcon \\ <S2SV_ModStart> Phalcon \\ \\ Session , AdapterInterface <S2SV_ModEnd> , phalcon , <S2SV_ModStart> , phalcon , session_adapterinterface , phalcon_session_adapterinterface_method_entr...
534,071
CWE-000 static void constrain_by_groups ( const struct cdok_puzzle * puz , const uint8_t * values , cdok_set_t * candidates ) { int i ; int real_max = puz -> nylimb ? 99 : puz -> size ; for ( i = 0 ; i < CDOK_GROUPS ; i ++ ) { const struct cdok_group * g = & puz -> groups [ i ] ; if ( g -> size ) { cdok_set_t c = group...
<S2SV_ModStart> &= c ; <S2SV_ModEnd> } } }
534,072
CWE-000 static void dump_simulated_ddt ( spa_t * spa ) { avl_tree_t t ; void * cookie = NULL ; zdb_ddt_entry_t * zdde ; <S2SV_StartBug> ddt_histogram_t ddh_total = { 0 } ; <S2SV_EndBug> <S2SV_StartBug> ddt_stat_t dds_total = { 0 } ; <S2SV_EndBug> avl_create ( & t , ddt_entry_compare , sizeof ( zdb_ddt_entry_t ) , offse...
<S2SV_ModStart> ; ddt_histogram_t ddh_total <S2SV_ModEnd> ; ddt_stat_t dds_total <S2SV_ModStart> ; ddt_stat_t dds_total ; bzero ( & ddh_total , sizeof ( ddh_total ) ) ; bzero ( & dds_total , sizeof ( dds_total ) ) <S2SV_ModEnd> ; avl_create (
534,073
CWE-000 static int natFixFtpPortContentAndCreateFwSession ( IN PFILTER_COMMON_CONTROL_BLOCK pAdapter , IN OUT FLT_PKT * pFltPkt , IN ULONG newIpAddr , IN BOOLEAN bDoModify , IN BOOLEAN bOut ) { int diff = 0 ; char * data , * new_data ; ULONG sample_len = sizeof ( "PORT<S2SV_blank>" ) - 1 ; <S2SV_StartBug> ULONG org_add...
<S2SV_ModStart> ULONG org_addr_len , i ; size_t new_addr_len <S2SV_ModEnd> ; ULONG addr <S2SV_ModStart> { 0 } <S2SV_ModEnd> ; unsigned char
534,074
CWE-000 void do_interrupts ( ) { if ( interruptsEnabled ) { <S2SV_StartBug> interrupt current ; <S2SV_EndBug> for ( unsigned i = 0 ; i < NUM_INTERRUPTS ; i ++ ) { in = all_interrupts [ i ] ; if ( INTERRUPT_ENABLED ( in ) && INTERRUPT_SET ( in ) ) { do_interrupt ( in ) ; return ; } } } }
<S2SV_ModStart> ) { interrupt in <S2SV_ModEnd> ; for (
534,075
CWE-000 static int tfw_http_resp_gfsm ( TfwHttpMsg * hmresp , struct sk_buff * skb , unsigned int off ) { int r ; TfwHttpReq * req ; BUG_ON ( ! hmresp -> conn ) ; r = tfw_gfsm_move ( & hmresp -> conn -> state , TFW_HTTP_FSM_RESP_MSG , skb , off ) ; TFW_DBG3 ( "TFW_HTTP_FSM_RESP_MSG<S2SV_blank>return<S2SV_blank>code<S2S...
<S2SV_ModStart> TFW_BLOCK ; } tfw_http_block <S2SV_ModEnd> ( req , <S2SV_ModStart> ( req , 502 , "response<S2SV_blank>blocked:<S2SV_blank>filtered<S2SV_blank>out" , false <S2SV_ModEnd> ) ; tfw_http_conn_msg_free
534,076
CWE-000 void default_quitfun ( const char * msg ) { fprintf ( stderr , "%s" , msg ) ; sync ( ) ; <S2SV_StartBug> if ( strncmp ( msg , "ERROR" , 5 ) ) { <S2SV_EndBug> print_backtrace ( ) ; sync ( ) ; <S2SV_StartBug> } <S2SV_EndBug> exit ( 0 ) ; }
<S2SV_ModStart> ( msg , "FATAL" <S2SV_ModEnd> , 5 ) <S2SV_ModStart> ( ) ; raise ( 1 ) ;
534,077
CWE-000 static void vm_pageout_worker ( void * arg ) { struct vm_domain * vmd ; <S2SV_StartBug> int addl_shortage , domain , shortage ; <S2SV_EndBug> bool target_met ; domain = ( uintptr_t ) arg ; vmd = VM_DOMAIN ( domain ) ; shortage = 0 ; target_met = true ; KASSERT ( vmd -> vmd_segs != 0 , ( "domain<S2SV_blank>witho...
<S2SV_ModStart> * vmd ; u_int ofree ; <S2SV_ModStart> 0 ) { ofree = vmd -> vmd_free_count ; if ( vm_pageout_lowmem ( ) && vmd -> vmd_free_count > ofree ) shortage -= min ( vmd -> vmd_free_count - ofree , ( u_int ) shortage <S2SV_ModEnd> ) ; target_met
534,078
CWE-000 int main ( int argc , char * * argv ) { char * inlist ; char * outlist ; int printtime = NO ; int verbose = NO ; int quiet = NO ; int too_many = 0 ; int i , j ; IRAFPointer i_imt , o_imt ; char * input ; char * output ; int n_in , n_out ; int n ; char * isuffix [ ] = { "_raw" , "_blv_tmp" , "_blc_tmp" , "_crj_t...
<S2SV_ModStart> ] ) ; printSyntax ( ) ; <S2SV_ModStart> too_many ) { printSyntax ( <S2SV_ModEnd> ) ; FreeNames
534,079
CWE-000 void iestart ( struct ifnet * ifp ) { struct ie_softc * sc = ifp -> if_softc ; struct mbuf * m0 , * m ; u_char * buffer ; u_short len ; char txbuf [ IE_TXBUF_SIZE ] ; int safety_catch = 0 ; if ( ( ifp -> if_flags & IFF_OACTIVE ) != 0 ) return ; for ( ; ; ) { if ( ( safety_catch ++ ) > 100 ) { printf ( "ie:<S2SV...
<S2SV_ModStart> ifp , m0 , BPF_D_OUT
534,080
CWE-000 static bool cp_fq_symbol_name_matches ( const char * symbol_search_name , const lookup_name_info & lookup_name , <S2SV_StartBug> completion_match * match ) <S2SV_EndBug> { const std : : string & name = lookup_name . cplus ( ) . lookup_name ( ) ; strncmp_iw_mode mode = ( lookup_name . completion_mode ( ) ? strnc...
<S2SV_ModStart> & lookup_name , completion_match_result * comp_match_res <S2SV_ModEnd> ) { const <S2SV_ModStart> , mode , comp_match_res <S2SV_ModEnd> ) ; }
534,081
CWE-000 int parsing ( t_env * e , char * src_file ) { <S2SV_StartBug> t_parsing p ; <S2SV_EndBug> open_close ( src_file ) ; if ( ( p . fd = open ( src_file , O_RDONLY ) ) < 0 ) ft_kill ( "This<S2SV_blank>file<S2SV_blank>doesn\'t<S2SV_blank>exist<S2SV_blank>or<S2SV_blank>bad<S2SV_blank>typography." ) ; p . j = 0 ; while...
<S2SV_ModStart> { t_parsing p ; p . stock = NULL
534,082
CWE-000 ngx_int_t ngx_ssl_create ( ngx_ssl_t * ssl , ngx_uint_t protocols , void * data ) { ssl -> ctx = SSL_CTX_new ( SSLv23_method ( ) ) ; if ( ssl -> ctx == NULL ) { ngx_ssl_error ( NGX_LOG_EMERG , ssl -> log , 0 , "SSL_CTX_new()<S2SV_blank>failed" ) ; return NGX_ERROR ; } if ( SSL_CTX_set_ex_data ( ssl -> ctx , ngx...
<S2SV_ModStart> ) ; # <S2SV_ModEnd> endif # else
534,083
CWE-000 static void CG_DrawProxWarning ( void ) { char s [ 32 ] ; int w ; <S2SV_StartBug> static int proxTime ; <S2SV_EndBug> static int proxCounter ; static int proxTick ; if ( ! ( cg . snap -> ps . eFlags & EF_TICKING ) ) { proxTime = 0 ; return ; } if ( proxTime == 0 ) { <S2SV_StartBug> proxTime = cg . time + 5000 ;...
<S2SV_ModStart> int w ; <S2SV_ModEnd> int proxTick ; <S2SV_ModStart> cg . time <S2SV_ModEnd> ; } else <S2SV_ModStart> { proxTick = 10 - ( ( <S2SV_ModEnd> cg . time <S2SV_ModStart> cg . time - proxTime ) / 1000 ) <S2SV_ModEnd> ; } } <S2SV_ModStart> if ( proxTick > 0 && proxTick <= 5 <S2SV_ModEnd> ) { Com_sprintf
534,084
CWE-000 static channel_op_res_t channel_put_method ( void * data ) { assert ( data != NULL ) ; assert ( channel_curl . handle != NULL ) ; channel_op_res_t result = CHANNEL_OK ; channel_data_t * channel_data = ( channel_data_t * ) data ; channel_data -> offs = 0 ; if ( channel_data -> debug ) { curl_easy_setopt ( channe...
<S2SV_ModStart> = channel_map_http_code ( <S2SV_ModEnd> & http_response_code )
534,085
CWE-000 static UA_StatusCode monitoredHandler ( UA_Server * server , const UA_NodeId * sessionId , void * sessionContext , const UA_NodeId * nodeId , void * nodeContext , const UA_UInt32 attrId , const UA_Boolean removed ) { if ( attrId != UA_ATTRIBUTEID_VALUE ) return UA_STATUSCODE_GOOD ; UA_UInt32 monCount = 0 ; UA_S...
<S2SV_ModStart> monCount ) ; if ( removed && monCount > 0 ) { monCount -- ; } else if ( ! removed ) { monCount ++ ; } <S2SV_ModEnd> UA_Server_setNodeContext ( server <S2SV_ModStart> void * ) &
534,086
CWE-000 <S2SV_StartBug> void __attribute__ ( ( weak ) ) pm_set_lowest ( void ) { } <S2SV_EndBug>
<S2SV_ModStart> <S2SV_null> <S2SV_null> void <S2SV_ModEnd> pm_set_lowest ( void
534,087
CWE-000 void snd_playChannelASample ( u8 kitId , u8 sampleNumber , u8 volume , u8 speed , bool looping , bool timedMode , u8 length , u8 offset , u8 output ) { playSnAOsc = 0 ; kit * kit = kits [ kitId ] ; if ( kit ) { snASample = gbfs_get_nth_obj ( kit , sampleNumber + 1 , NULL , & snASmpSize ) ; if ( snASample ) { R_...
<S2SV_ModStart> |= 1 << 0x8 <S2SV_ModEnd> ; } else <S2SV_ModStart> ( 1 << 0x8 <S2SV_ModEnd> ) ; } <S2SV_ModStart> |= 1 << 0x9 <S2SV_ModEnd> ; } else <S2SV_ModStart> ( 1 << 0x9 <S2SV_ModEnd> ) ; }
534,088
CWE-000 static void * grow_buffer ( void * buffer , size_t length , size_t * capacity , size_t space , size_t elsize , int * error ) { size_t cap = * capacity ; void * newbuffer = buffer ; while ( ( length + space >= cap ) && ( newbuffer != NULL ) ) { <S2SV_StartBug> if ( cap < 1024 * 1024 * 1024 ) { <S2SV_EndBug> cap ...
<S2SV_ModStart> ) ) { <S2SV_ModEnd> cap = cap <S2SV_ModStart> : 2 ; <S2SV_ModEnd> buffer = newbuffer
534,089
CWE-000 void refresh_deck_value ( Player * player ) { <S2SV_StartBug> int i , sum ; <S2SV_EndBug> for ( i = 0 ; i < player -> num_cards_in_hand ; i ++ ) { sum += player -> hand [ i ] . rank ; } player -> deck_value = sum ; }
<S2SV_ModStart> i , sum = 0
534,090
CWE-000 void videoswitch_select ( uint8_t input ) { <S2SV_StartBug> switch ( input ) { <S2SV_EndBug> case 1 : PORTH &= ~ _BV ( PH6 ) ; PORTB &= ~ _BV ( PB4 ) ; PORTB &= ~ _BV ( PB5 ) ; PORTB |= _BV ( PB6 ) ; <S2SV_StartBug> case 2 : <S2SV_EndBug> PORTH |= _BV ( PH6 ) ; PORTB &= ~ _BV ( PB4 ) ; PORTB &= ~ _BV ( PB5 ) ; ...
<S2SV_ModStart> input ) { DDRH |= _BV ( PH6 ) ; DDRB |= _BV ( PB4 ) | _BV ( PB5 ) | _BV ( PB6 ) ; <S2SV_ModStart> PB6 ) ; break ; <S2SV_ModStart> PB6 ) ; break ; <S2SV_ModStart> PB6 ) ; break ; <S2SV_ModStart> PB6 ) ; break ; <S2SV_ModStart> PB6 ) ; break ; <S2SV_ModStart> PB6 ) ; break ; <S2SV_ModStart> ( PB6 ) ; brea...
534,091
CWE-000 void destroyTestReport ( TestReport * report ) { <S2SV_StartBug> free ( report -> testcase_name ) ; <S2SV_EndBug> destroyListWithElement ( report -> test_sections , destroySection ) ; free ( report ) ; }
<S2SV_ModStart> ( report -> testcase_desc <S2SV_ModEnd> ) ; destroyListWithElement
534,092
CWE-000 struct resource * pci_find_parent_resource ( const struct pci_dev * dev , struct resource * res ) { const struct pci_bus * bus = dev -> bus ; struct resource * r ; int i ; pci_bus_for_each_resource ( bus , r , i ) { if ( ! r ) continue ; <S2SV_StartBug> if ( res -> start && resource_contains ( r , res ) ) { <S2...
<S2SV_ModStart> ; if ( <S2SV_ModEnd> resource_contains ( r
534,093
CWE-000 int send_ack_packet_or_series ( struct irdma_context * ic , struct irdma_mem * payload , struct rxe_pkt_info * req_pkt , u8 syndrome , u32 psn ) { struct rxe_wr_opcode_info * wr_info = & rxe_wr_opcode_info [ rxe_opcode [ req_pkt -> opcode ] . req . wr_opcode_num ] ; <S2SV_StartBug> struct rxe_opcode_group ack_o...
<S2SV_ModStart> ; struct rxe_opcode_group * ack_opcode_group = & <S2SV_ModEnd> wr_info -> std <S2SV_ModStart> if ( ack_opcode_group -> <S2SV_ModEnd> is_series ) { <S2SV_ModStart> opcode_num = ack_opcode_group -> <S2SV_ModEnd> opcode_num ; return
534,094
CWE-000 int reverb_set_parameter ( effect_context_t * context , effect_param_t * p , <S2SV_StartBug> uint32_t size ) <S2SV_EndBug> { reverb_context_t * reverb_ctxt = ( reverb_context_t * ) context ; int voffset = ( ( p -> psize - 1 ) / sizeof ( int32_t ) + 1 ) * sizeof ( int32_t ) ; void * value = p -> data + voffset ;...
<S2SV_ModStart> , uint32_t size __unused
534,095
CWE-000 static int cpufreq_stat_notifier_policy ( struct notifier_block * nb , unsigned long val , void * data ) { <S2SV_StartBug> int ret ; <S2SV_EndBug> struct cpufreq_policy * policy = data ; struct cpufreq_frequency_table * table ; unsigned int cpu = policy -> cpu ; if ( val == CPUFREQ_UPDATE_POLICY_CPU ) { cpufreq...
<S2SV_ModStart> { int ret , count = 0 , i <S2SV_ModStart> ; ret = __cpufreq_stats_create_table ( policy , table , count <S2SV_ModEnd> ) ; if
534,096
CWE-000 void c_apiLocalDefinition ( corto_type t , c_apiWalk_t * data , char * func , char * id ) { corto_id localId , buildingMacro ; c_buildingMacro ( data -> g , buildingMacro ) ; <S2SV_StartBug> g_localOid ( data -> g , t , localId ) ; <S2SV_EndBug> g_fileWrite ( data -> header , "\\n" ) ; g_fileWrite ( data -> hea...
<S2SV_ModStart> localId ) ; if ( strcmp ( g_getAttribute ( data -> g , "bootstrap" ) , "true" ) ) { <S2SV_ModStart> ) ; } }
534,097
CWE-000 int dfuse_special_command ( struct dfu_if * dif , unsigned int address , enum dfuse_command command ) { const char * dfuse_command_name [ ] = { "SET_ADDRESS" , "ERASE_PAGE" , "MASS_ERASE" , "READ_UNPROTECT" } ; unsigned char buf [ 5 ] ; int length ; int ret ; struct dfu_status dst ; int firstpoll = 1 ; if ( com...
<S2SV_ModStart> ; } } dst . bwPollTimeout += 20 ;
534,098
CWE-000 static int DetectFileextMatch ( ThreadVars * t , DetectEngineThreadCtx * det_ctx , Flow * f , uint8_t flags , File * file , const Signature * s , const SigMatchCtx * m ) { SCEnter ( ) ; int ret = 0 ; DetectFileextData * fileext = ( DetectFileextData * ) m ; if ( file -> name == NULL ) SCReturnInt ( 0 ) ; if ( f...
<S2SV_ModStart> ; } } else if <S2SV_ModEnd> ( fileext -> <S2SV_ModStart> flags & DETECT_CONTENT_NEGATED <S2SV_ModEnd> ) { SCLogDebug
534,099
CWE-000 static int grow_buffers ( struct block_device * bdev , sector_t block , int size ) { <S2SV_StartBug> struct page * page ; <S2SV_EndBug> pgoff_t index ; int sizebits ; sizebits = - 1 ; do { sizebits ++ ; } while ( ( size << sizebits ) < PAGE_SIZE ) ; index = block >> sizebits ; if ( unlikely ( index != block >> ...
<S2SV_ModStart> size ) { <S2SV_ModEnd> pgoff_t index ; <S2SV_ModStart> EIO ; } return <S2SV_ModEnd> grow_dev_page ( bdev <S2SV_ModStart> index , size , sizebits ) <S2SV_ModEnd> ; } <S2SV_null>