Unnamed: 0 int64 0 535k | source stringlengths 50 89.8k | target stringlengths 23 37.7k |
|---|---|---|
10,100 | CWE-000 static int igt_tmpfs_fallback ( void * arg ) { <S2SV_StartBug> struct drm_i915_private * i915 = arg ; <S2SV_EndBug> <S2SV_StartBug> struct vfsmount * gemfs = i915 -> mm . gemfs ; <S2SV_EndBug> struct i915_gem_context * ctx = i915 -> kernel_context ; struct i915_address_space * vm = ctx -> ppgtt ? & ctx -> ppgtt... | <S2SV_ModStart> ) { struct i915_gem_context * ctx = arg ; struct <S2SV_ModStart> * i915 = ctx -> i915 <S2SV_ModEnd> ; struct vfsmount <S2SV_ModStart> mm . gemfs <S2SV_ModEnd> ; struct i915_address_space |
10,101 | CWE-000 int dominates ( pseudo_t pseudo , struct instruction * insn , struct instruction * dom , int local ) { int opcode = dom -> opcode ; if ( opcode == OP_CALL || opcode == OP_ENTRY ) return local ? 0 : - 1 ; if ( opcode != OP_LOAD && opcode != OP_STORE ) return 0 ; if ( dom -> src != pseudo ) { if ( local ) return ... | <S2SV_ModStart> 1 ; } if ( ! insn -> type || ! dom -> type ) return - 1 ; if ( is_float_type ( insn -> type ) != is_float_type ( dom -> type ) ) return - 1 ; |
10,102 | CWE-000 void lily_builtin_String_html_encode ( lily_state * s ) { lily_value * input_arg = lily_arg_value ( s , 0 ) ; const char * raw = lily_value_string_raw ( input_arg ) ; <S2SV_StartBug> lily_msgbuf * msgbuf = lily_get_msgbuf_noflush ( s ) ; <S2SV_EndBug> if ( lily_mb_html_escape ( msgbuf , raw ) == raw ) lily_retu... | <S2SV_ModStart> * msgbuf = lily_get_clean_msgbuf <S2SV_ModEnd> ( s ) |
10,103 | CWE-000 static void l2c_csm_term_w4_sec_comp ( tL2C_CCB * p_ccb , UINT16 event , void * p_data ) { # if ( BT_TRACE_VERBOSE == TRUE ) L2CAP_TRACE_EVENT ( "L2CAP<S2SV_blank>-<S2SV_blank>LCID:<S2SV_blank>0x%04x<S2SV_blank><S2SV_blank>st:<S2SV_blank>TERM_W4_SEC_COMP<S2SV_blank><S2SV_blank>evt:<S2SV_blank>%s" , p_ccb -> loc... | <S2SV_ModStart> } else { # if ( BLE_INCLUDED == TRUE ) <S2SV_ModStart> ) ; else # endif |
10,104 | CWE-000 static void sched_show ( const char * chan , const char * name , const char * arg ) { if ( * arg ) ++ arg ; char sched_user [ 64 ] ; sched_parse_user ( arg , name , sched_user , sizeof ( sched_user ) ) ; int index = sched_get ( sched_user ) ; if ( index == - 1 ) { ctx -> send_msg ( chan , "%s:<S2SV_blank>I<S2SV... | <S2SV_ModStart> date_str ) , "%F" <S2SV_ModEnd> , & date |
10,105 | CWE-000 uint16_t networkMetrics_getResendDelayWirelessConn ( void ) { if ( config . RoutingMethode == ROUTING_METHODE_METRICS && ( config . UseProbingPacksWlConn [ 0 ] || config . UseProbingPacksWlConn [ 1 ] || config . UseProbingPacksWlConn [ 2 ] || config . UseProbingPacksWlConn [ 3 ] ) ) { uint16_t longestRTT = 0 ; ... | <S2SV_ModStart> ] ; } if ( longestRTT < 50 ) return 100 ; else if ( longestRTT > 10000 ) return config . ResendDelayWirelessConn ; else |
10,106 | CWE-000 static void gst_rtsp_client_init ( GstRTSPClient * client ) { GstRTSPClientPrivate * priv = gst_rtsp_client_get_instance_private ( client ) ; client -> priv = priv ; g_mutex_init ( & priv -> lock ) ; g_mutex_init ( & priv -> send_lock ) ; g_mutex_init ( & priv -> watch_lock ) ; priv -> close_seq = 0 ; <S2SV_Sta... | <S2SV_ModStart> ; priv -> data_seqs = g_array_new ( FALSE , FALSE , sizeof ( DataSeq ) ) ; priv -> |
10,107 | CWE-000 MonoCustomAttrInfo * mono_custom_attrs_from_event_checked ( MonoClass * klass , MonoEvent * event , MonoError * error ) { <S2SV_StartBug> guint32 idx ; <S2SV_EndBug> if ( image_is_dynamic ( klass -> image ) ) { event = mono_metadata_get_corresponding_event_from_generic_type_definition ( event ) ; return lookup_... | <S2SV_ModStart> { guint32 idx ; error_init ( error ) |
10,108 | CWE-000 <S2SV_StartBug> char * dos_udp_send ( int sock , char * _host , int port , char * message ) <S2SV_EndBug> { <S2SV_StartBug> struct sockaddr_in addr ; <S2SV_EndBug> char * host = ( char * ) malloc ( sizeof ( char ) * 14 ) ; hostname2ip ( _host , host ) ; char * buf = ( char * ) malloc ( 1024 * sizeof ( char ) ) ... | <S2SV_ModStart> , char * host <S2SV_ModEnd> , int port <S2SV_ModStart> struct sockaddr_in addr <S2SV_ModEnd> ; char * |
10,109 | CWE-000 void _conn_plain_init ( void ) <S2SV_StartBug> { <S2SV_EndBug> connection_register ( CONNECTION_PLAIN , & plain_ops ) ; } | <S2SV_ModStart> void ) { # if defined ( WIN32 ) && defined ( WSA_STARTUP_ENABLED ) WSADATA wsadata ; int res ; res = WSAStartup ( MAKEWORD ( 2 , 2 ) , & wsadata ) ; if ( res != 0 ) { elog ( ERROR , "WSAStartup<S2SV_blank>failed:<S2SV_blank>%d" , res ) ; return ; } # endif |
10,110 | CWE-000 void chkTypes ( Module s , MalBlkPtr mb , int silent ) { InstrPtr p = 0 ; <S2SV_StartBug> int i , chk = 0 ; <S2SV_EndBug> for ( i = 0 ; i < mb -> stop ; i ++ ) { p = getInstrPtr ( mb , i ) ; assert ( p != NULL ) ; if ( p -> typechk != TYPE_RESOLVED ) { <S2SV_StartBug> typeChecker ( GDKout , s , mb , p , silent ... | <S2SV_ModStart> ; int i <S2SV_ModEnd> ; for ( <S2SV_ModStart> { typeChecker ( <S2SV_ModEnd> s , mb <S2SV_ModStart> return ; } <S2SV_ModEnd> } } <S2SV_null> |
10,111 | CWE-000 size_t breadth_first_vertex ( const graph_t * graph , void ( * action ) ( const vertex_t * v , size_t depth ) , vertex_t * vertex ) { edge_t * edges ; char * in_queue ; queue_t * queue ; vertex_t * tmp ; size_t depth ; if ( ! ( graph && action && vertex ) ) return ( 0 ) ; <S2SV_StartBug> in_queue = calloc ( siz... | <S2SV_ModStart> = calloc ( graph -> nb_vertices , sizeof ( size_t ) <S2SV_ModEnd> ) ; if |
10,112 | CWE-000 unsigned _KOS_print_float ( char * buf , unsigned size , double value ) { char * end ; <S2SV_StartBug> union DOUBLE_TO_UINT64 { <S2SV_EndBug> double d ; uint64_t u ; } conv ; conv . d = value ; if ( ( ( conv . u >> 52 ) & 0x7FFU ) == 0x7FFU ) { if ( conv . u << 12 ) { static const char nan [ ] = "nan" ; memcpy ... | <S2SV_ModStart> ; union DOUBLE_TO_UINT64 <S2SV_ModEnd> conv ; conv |
10,113 | CWE-000 <S2SV_StartBug> int Mem_Free ( void * ptr ) { <S2SV_EndBug> printf ( "ptr<S2SV_blank>address<S2SV_blank>%p\\n" , ptr ) ; <S2SV_StartBug> printf ( "in<S2SV_blank>free<S2SV_blank>size<S2SV_blank>of<S2SV_blank>header<S2SV_blank>is<S2SV_blank>%d\\n" , sizeof ( struct Header ) ) ; <S2SV_EndBug> <S2SV_StartBug> print... | <S2SV_ModStart> ptr ) { printf ( "%s\\n" , "------------------" ) ; <S2SV_ModStart> ( struct Header * <S2SV_ModStart> ( ptr - 8 <S2SV_ModEnd> ) ) ; <S2SV_ModStart> ( ptr - 8 <S2SV_ModEnd> ) ; printf <S2SV_ModStart> -> magic == 32 <S2SV_ModEnd> ) { printf |
10,114 | CWE-000 <S2SV_StartBug> void XY_PSA ( int * energyScat , float * xScat , float * yScat , int * energyAbs , float * xAbs , float * yAbs , int * AC1real , int * DC1real , int * DC2real , int * AC2real , int * tier ) { <S2SV_EndBug> FILE * outputFile ; char fileName [ 100 ] ; int fileID ; int spam = 10 ; fileID = sprintf ... | <S2SV_ModStart> , int * AC2real <S2SV_ModEnd> , int * <S2SV_ModStart> , int * DC2real <S2SV_ModEnd> , int * |
10,115 | CWE-000 void unregister_code ( uint8_t code ) { if ( code == KC_NO ) { return ; } # ifdef LOCKING_SUPPORT_ENABLE else if ( KC_LOCKING_CAPS == code ) { # ifdef LOCKING_RESYNC_ENABLE if ( ! ( host_keyboard_leds ( ) & ( 1 << USB_LED_CAPS_LOCK ) ) ) return ; # endif add_key ( KC_CAPSLOCK ) ; send_keyboard_report ( ) ; <S2S... | <S2SV_ModStart> ( ) ; wait_ms ( 100 ) ; <S2SV_ModStart> ( ) ; wait_ms ( 100 ) ; <S2SV_ModStart> ( ) ; wait_ms ( 100 ) ; |
10,116 | CWE-000 static void disable_pch_hdmi ( struct drm_i915_private * dev_priv , enum pipe pipe , int reg ) { u32 val = I915_READ ( reg ) ; <S2SV_StartBug> if ( hdmi_pipe_enabled ( dev_priv , val , pipe ) ) { <S2SV_EndBug> DRM_DEBUG_KMS ( "Disabling<S2SV_blank>pch<S2SV_blank>HDMI<S2SV_blank>%x<S2SV_blank>on<S2SV_blank>pipe<... | <S2SV_ModStart> ( dev_priv , pipe , val <S2SV_ModEnd> ) ) { |
10,117 | CWE-000 static int zram_add ( void ) { struct zram * zram ; struct request_queue * queue ; int ret , device_id ; zram = kzalloc ( sizeof ( struct zram ) , GFP_KERNEL ) ; if ( ! zram ) return - ENOMEM ; ret = idr_alloc ( & zram_index_idr , zram , 0 , 0 , GFP_KERNEL ) ; if ( ret < 0 ) goto out_free_dev ; device_id = ret ... | <S2SV_ModStart> queue ) ; disk_to_dev ( zram -> disk ) -> groups = zram_disk_attr_groups ; <S2SV_ModStart> disk ) ; <S2SV_ModEnd> strlcpy ( zram <S2SV_ModStart> ; return device_id <S2SV_ModEnd> ; out_free_queue : |
10,118 | CWE-000 static void draw_hue_slider ( GtkWidget * slider ) <S2SV_StartBug> == == == = <S2SV_EndBug> static void draw_hue_slider ( GtkWidget * slider ) >> >> >> > color - grading - 2 { dt_bauhaus_slider_set_stop ( slider , 0.0f , 1.0f , 0.0f , 0.0f ) ; dt_bauhaus_slider_set_stop ( slider , 0.166f , 1.0f , 1.0f , 0.0f ) ... | <S2SV_ModStart> * slider ) <S2SV_ModEnd> { dt_bauhaus_slider_set_stop ( |
10,119 | CWE-000 int __wt_btree_open ( WT_SESSION_IMPL * session , const char * op_cfg [ ] ) { WT_BM * bm ; WT_BTREE * btree ; WT_CKPT ckpt ; WT_CONFIG_ITEM cval ; WT_DATA_HANDLE * dhandle ; WT_DECL_RET ; size_t root_addr_size ; uint8_t root_addr [ WT_BTREE_MAX_ADDR_COOKIE ] ; const char * filename ; bool creation , forced_salv... | <S2SV_ModStart> session ) ; __btree_initialize ( btree , false ) ; btree -> dhandle = session -> dhandle ; <S2SV_ModStart> } if ( btree -> bulk_load_ok || F_ISSET ( btree , WT_BTREE_IN_MEMORY | WT_BTREE_REBALANCE | WT_BTREE_SALVAGE | WT_BTREE_UPGRADE | WT_BTREE_VERIFY ) ) WT_ERR ( __wt_evict_file_exclusive_on ( session... |
10,120 | CWE-000 int bch2_bucket_alloc ( struct bch_fs * c , struct bch_dev * ca , enum alloc_reserve reserve , bool may_alloc_partial , struct closure * cl ) { struct bucket_array * buckets ; struct open_bucket * ob ; long bucket ; spin_lock ( & c -> freelist_lock ) ; if ( may_alloc_partial && ca -> open_buckets_partial_nr ) {... | <S2SV_ModStart> } if ( cl ) closure_wait ( & c -> freelist_wait , cl ) <S2SV_ModEnd> ; spin_unlock ( |
10,121 | CWE-000 struct buffer convert_all ( struct buffer inbuf , const char * tocode , const char * fromcode ) { iconv_t cd = iconv_open ( tocode , fromcode ) ; struct buffer outbuf ; outbuf . capacity = 1024 ; outbuf . size = 0 ; outbuf . buf = malloc ( outbuf . capacity ) ; size_t inpos = 0 ; while ( inpos < inbuf . size ) ... | <S2SV_ModStart> size ; size_t irrev <S2SV_ModEnd> = iconv ( <S2SV_ModStart> ; if ( irrev <S2SV_ModEnd> == ( size_t <S2SV_ModStart> ; if ( iconv_inbuf == inbuf . buf + inpos <S2SV_ModEnd> ) { outbuf <S2SV_ModStart> capacity ) ; continue ; |
10,122 | CWE-000 Test ( pop_tests , PopMultipleNode ) { listS * starter = init ( ) ; <S2SV_StartBug> int rand_val = 3 ; <S2SV_EndBug> int x = 0 ; for ( int i = 0 ; i < 6 ; i ++ ) { insert ( starter , i * rand_val ) ; pop_first ( starter , & x ) ; cr_expect ( x == i * rand_val , "Wartość<S2SV_blank>zwracana<S2SV_blank>przez<S2SV... | <S2SV_ModStart> ( ) ; const |
10,123 | CWE-000 int ares_parse_a_reply ( const unsigned char * abuf , int alen , struct hostent * * host ) { unsigned int qdcount , ancount ; int status , i , rr_type , rr_class , rr_len , naddrs ; long int len ; int naliases ; const unsigned char * aptr ; char * hostname , * rr_name , * rr_data , * * aliases ; struct in_addr ... | <S2SV_ModStart> += RRFIXEDSZ ; if ( aptr + rr_len > abuf + alen ) { free ( rr_name ) ; status = ARES_EBADRESP ; break ; } |
10,124 | CWE-000 void * audio_get_codec_config ( uint8_t * multicast_status , uint8_t * num_dev , audio_format_t * codec_type ) { int i , status ; ALOGW ( "%s:<S2SV_blank>state<S2SV_blank>=<S2SV_blank>%s" , __func__ , dump_a2dp_hal_state ( audio_stream . state ) ) ; pthread_mutex_lock ( & audio_stream . lock ) ; a2dp_get_multic... | <S2SV_ModStart> ALOGW ( "get<S2SV_blank>codec<S2SV_blank>config<S2SV_blank>returned<S2SV_blank>due<S2SV_blank>to<S2SV_blank>stack<S2SV_blank>deinit" ) ; pthread_mutex_unlock ( & audio_stream . lock |
10,125 | CWE-000 static void Memory_SPI_Callback ( ) { switch ( Memory . Status ) { case MEM_STAT_READING : Memory . Status = MEM_STAT_READ_DUMP_USELESS_DATA ; break ; case MEM_STAT_WRITE_ENABLING : Memory . Status = MEM_STAT_WRITE_ADDRESS ; break ; case MEM_STAT_WRITING : default : Memory . Status = MEM_STAT_IDLE ; break ; <S2... | <S2SV_ModStart> ; break ; case MEM_STAT_ERASE_WRITE_ENABLING : Memory . Status = MEM_STAT_ERASE_WRITE_ADDRESS ; break ; case MEM_STAT_ERASING : Memory . Status = MEM_STAT_ERASED ; break ; |
10,126 | CWE-000 void moveForward ( ) { drive_goto ( SQUARE_LENGTH , SQUARE_LENGTH ) ; switch ( direction ) { case up : <S2SV_StartBug> currentNode = nodes [ currentNode -> x , currentNode -> y + 1 ] ; <S2SV_EndBug> break ; case right : <S2SV_StartBug> currentNode = nodes [ currentNode -> x + 1 , currentNode -> y ] ; <S2SV_EndB... | <S2SV_ModStart> : currentNode = * <S2SV_ModStart> : currentNode = * <S2SV_ModStart> : currentNode = * <S2SV_ModStart> : currentNode = * |
10,127 | CWE-000 void test3 ( ) { const int mb = 2 ; int l2_data_sizes [ 4 ] = { mb , 256 , 13 , 13 } ; real_t * src = ( real_t * ) calloc ( product ( l2_data_sizes , 4 ) , sizeof ( real_t ) ) ; real_t * dst = ( real_t * ) calloc ( product ( l2_data_sizes , 4 ) , sizeof ( real_t ) ) ; real_t * out_mem = ( real_t * ) calloc ( pr... | <S2SV_ModStart> ; CHECK ( mkldnn_primitive_destroy ( out ) ) ; CHECK ( |
10,128 | CWE-000 static void defaultre ( regex_t * re ) { <S2SV_StartBug> int r = regcomp ( re , "^$" , REG_EXTENDED | REG_NOSUB ) ; <S2SV_EndBug> if ( r ) { char buf [ 256 ] ; regerror ( r , re , buf , 256 ) ; <S2SV_StartBug> strerr_diefu2x ( 100 , "compile<S2SV_blank>^$<S2SV_blank>into<S2SV_blank>a<S2SV_blank>regular<S2SV_bla... | <S2SV_ModStart> ( re , ".^" <S2SV_ModEnd> , REG_EXTENDED | <S2SV_ModStart> ( 100 , "compile<S2SV_blank>.^<S2SV_blank>into<S2SV_blank>a<S2SV_blank>regular<S2SV_blank>expression:<S2SV_blank>" <S2SV_ModEnd> , buf ) |
10,129 | CWE-000 int bpf_detach_kprobe ( const char * ev_name ) { char buf [ 256 ] ; int ret = bpf_detach_probe ( ev_name , "kprobe" ) ; <S2SV_StartBug> snprintf ( buf , sizeof ( buf ) , "/sys/kernel/debug/tracing/instances/%s_bcc_%d" , ev_name , getpid ( ) ) ; <S2SV_EndBug> if ( access ( buf , F_OK ) != - 1 ) { rmdir ( buf ) ;... | <S2SV_ModStart> buf ) , "/sys/kernel/debug/tracing/instances/bcc_%d" <S2SV_ModEnd> , getpid ( |
10,130 | CWE-000 CeDestination_t * ce_jump_list_previous ( CeJumpList_t * jump_list ) { <S2SV_StartBug> if ( jump_list -> count == 0 ) return 0 ; <S2SV_EndBug> <S2SV_StartBug> if ( jump_list -> current < 0 ) return 0 ; <S2SV_EndBug> int save_current = jump_list -> current ; jump_list -> current -- ; return jump_list -> destinat... | <S2SV_ModStart> 0 ) return NULL <S2SV_ModEnd> ; if ( <S2SV_ModStart> 0 ) return NULL ; int64_t <S2SV_ModEnd> save_current = jump_list |
10,131 | CWE-000 int native_setup_msi_irqs ( struct pci_dev * dev , int nvec , int type ) { struct irq_domain * domain ; struct irq_alloc_info info ; init_irq_alloc_info ( & info , NULL ) ; info . type = X86_IRQ_ALLOC_TYPE_MSI ; info . msi_dev = dev ; domain = irq_remapping_get_irq_domain ( & info ) ; if ( domain == NULL ) doma... | <S2SV_ModStart> ENOSYS ; return msi_domain_alloc_irqs <S2SV_ModEnd> ( domain , <S2SV_ModStart> ( domain , & dev -> <S2SV_ModStart> dev , nvec <S2SV_ModEnd> ) ; } |
10,132 | CWE-000 int main ( int argc , char * * argv ) { size_t outsize ; size_t insize ; size_t page_size = getpagesize ( ) ; char * inbuf ; char * outbuf ; bool ok = true ; int c ; int argind ; dev_t out_dev ; ino_t out_ino ; bool out_isreg ; bool have_read_stdin = false ; struct stat stat_buf ; bool number = false ; bool num... | <S2SV_ModStart> |= O_BINARY ; xsetmode ( STDOUT_FILENO , O_BINARY <S2SV_ModEnd> ) ; } <S2SV_ModStart> ; if ( <S2SV_ModEnd> file_open_mode & O_BINARY <S2SV_ModStart> & O_BINARY ) xsetmode ( STDIN_FILENO , O_BINARY <S2SV_ModEnd> ) ; } |
10,133 | CWE-000 void read_session_map ( char * dirname , struct symtabs * symtabs , char * sid ) { FILE * fp ; char buf [ PATH_MAX ] ; const char * last_libname = symtabs -> filename ; struct uftrace_mmap * * maps = & symtabs -> maps ; snprintf ( buf , sizeof ( buf ) , "%s/sid-%.16s.map" , dirname , sid ) ; fp = fopen ( buf , ... | <S2SV_ModStart> filename ) ) { if ( <S2SV_ModStart> symtabs -> exec_base == 0 ) symtabs -> exec_base <S2SV_ModStart> = start ; } |
10,134 | CWE-000 static int devfreq_performance_func ( struct devfreq * df , <S2SV_StartBug> unsigned long * freq ) <S2SV_EndBug> { if ( ! df -> max_freq ) * freq = UINT_MAX ; else * freq = df -> max_freq ; return 0 ; } | <S2SV_ModStart> long * freq , u32 * flag |
10,135 | CWE-000 void project ( Matrix source1 , int idx1 , Matrix source2 , int idx2 , Matrix target , int idx_t ) { <S2SV_StartBug> copyColumn ( source1 , idx1 , target , idx_t ) ; <S2SV_EndBug> float st_dot = dotProduct ( 'C' , source1 , idx1 , source2 , idx2 ) ; float norm_squared = dotProduct ( 'C' , source2 , idx2 , sourc... | <S2SV_ModStart> { copyColumn ( source2 , idx2 <S2SV_ModEnd> , target , |
10,136 | CWE-000 __attribute__ ( ( nonnull ( 1 , 2 ) , nothrow , warn_unused_result ) ) static int insert_rear_test ( darr_t * restrict darr , int nums [ ] , size_t nnum ) { size_t k ; <S2SV_StartBug> printf ( "insert<S2SV_blank>rear<S2SV_blank>test<S2SV_blank>(nnum=%d)\\n" , ( int ) nnum ) ; fflush ( stdout ) ; <S2SV_EndBug> f... | <S2SV_ModStart> size_t k ; fprintf ( stderr , <S2SV_ModEnd> "insert<S2SV_blank>rear<S2SV_blank>test<S2SV_blank>(nnum=%d)\\n" , ( <S2SV_ModStart> ; fflush ( stderr <S2SV_ModEnd> ) ; for <S2SV_ModStart> 0 ) { fputs ( stderr , <S2SV_ModEnd> "error<S2SV_blank>-2" ) ; <S2SV_ModStart> ; fflush ( stderr <S2SV_ModEnd> ) ; retu... |
10,137 | CWE-000 static void payload1 ( ) { uint64_t timer_expire_val = 100000 ; uint32_t index = val_pe_get_index_mpid ( val_pe_get_mpid ( ) ) ; val_set_status ( index , RESULT_FAIL ( g_sbsa_level , TEST_NUM , 01 ) ) ; <S2SV_StartBug> intid = val_timer_get_info ( TIMER_INFO_PHY_EL1_INTID ) ; <S2SV_EndBug> val_gic_install_isr (... | <S2SV_ModStart> val_timer_get_info ( TIMER_INFO_PHY_EL1_INTID , 0 |
10,138 | CWE-000 Instruction decodeInstruction ( int num ) { Instruction instruct ; char opCode_s [ 5 ] = "" ; char operand_s [ 13 ] = "" ; for ( int i = 15 ; i >= 12 ; i -- ) { if ( getNthBit ( num , i ) == 1 ) { strcat ( opCode_s , "1" ) ; } else { strcat ( opCode_s , "0" ) ; } } instruct . opcode = btod ( opCode_s ) ; for ( ... | <S2SV_ModStart> . operand = btod <S2SV_ModEnd> ( operand_s ) |
10,139 | CWE-000 size_t get_bytes ( char * mem ) { size_t req_mem = 0 ; switch ( mem [ strlen ( mem ) - 1 ] ) { case 'g' : case 'G' : mem [ strlen ( mem ) - 1 ] = '\\0' ; sscanf ( mem , "%lu" , & req_mem ) ; req_mem = req_mem * 1024 * 1024 * 1024 ; break ; case 'M' : case 'm' : mem [ strlen ( mem ) - 1 ] = '\\0' ; sscanf ( mem ... | <S2SV_ModStart> req_mem ) ; <S2SV_ModEnd> } return req_mem |
10,140 | CWE-000 static uint64_t hash ( char path [ 4096 ] ) { FILE * fp = fopen ( path , "rb" ) ; if ( fp == NULL ) { return 0 ; } uint64_t h64 ; int8_t buffer [ FILEBUFFER ] ; XXH64_state_t state64 ; size_t total_read = 1 ; XXH64_reset ( & state64 , 0 ) ; while ( total_read ) { total_read = fread ( buffer , 1 , FILEBUFFER , f... | <S2SV_ModStart> state64 ) ; fclose ( fp ) ; |
10,141 | CWE-000 R_API int r_core_visual ( RCore * core , const char * input ) { const char * cmdprompt , * teefile ; ut64 scrseek ; int wheel , flags , ch ; bool skip ; char arg [ 2 ] = { input [ 0 ] , 0 } ; splitPtr = UT64_MAX ; if ( r_cons_get_size ( & ch ) < 1 || ch < 1 ) { eprintf ( "Cannot<S2SV_blank>create<S2SV_blank>Vis... | <S2SV_ModStart> debugstr ) , "diq;?0;f<S2SV_blank>tmp;ssr<S2SV_blank>SP;%s<S2SV_blank>%d@$$%c%d;" <S2SV_ModEnd> "?1;%s;" "?1;ss<S2SV_blank>tmp;f-tmp;afal;pd<S2SV_blank>$r" , |
10,142 | CWE-000 static void mca_setup ( uint64_t mcg_cap ) { if ( cpu_vendor_id == CPU_VENDOR_AMD && CPUID_TO_FAMILY ( cpu_id ) == 0x10 && amd10h_L1TP ) workaround_erratum383 = 1 ; mca_banks = mcg_cap & MCG_CAP_COUNT ; mtx_init ( & mca_lock , "mca" , NULL , MTX_SPIN ) ; STAILQ_INIT ( & mca_records ) ; TASK_INIT ( & mca_scan_ta... | <S2SV_ModStart> else if ( amd_thresholding_supported ( ) <S2SV_ModEnd> ) amd_thresholding_setup ( |
10,143 | CWE-000 static inline ssize_t __write_filter ( struct file * file , const char __user * buf , size_t count , uint64_t * filter ) { <S2SV_StartBug> struct prov_filter * setting ; <S2SV_EndBug> if ( ! capable ( CAP_AUDIT_CONTROL ) ) return - EPERM ; if ( count < sizeof ( struct prov_filter ) ) return - ENOMEM ; <S2SV_Sta... | <S2SV_ModStart> { struct prov_filter <S2SV_ModEnd> setting ; if <S2SV_ModStart> - ENOMEM ; if ( copy_from_user ( & setting , buf , sizeof <S2SV_ModEnd> ( struct prov_filter <S2SV_ModStart> ( struct prov_filter ) ) ) return - ENOMEM <S2SV_ModEnd> ; if ( <S2SV_ModStart> if ( setting . <S2SV_ModEnd> add != 0 <S2SV_ModStar... |
10,144 | CWE-000 char * serializePxfFilterQuals ( List * quals ) { char * result = NULL ; <S2SV_StartBug> if ( pxf_enable_filter_pushdown ) <S2SV_EndBug> { int logicalOpsNum = 0 ; List * expressionItems = pxf_make_expression_items_list ( quals , NULL , & logicalOpsNum ) ; <S2SV_StartBug> bool isTrivialExpression = logicalOpsNum... | <S2SV_ModStart> ; if ( enable_filter_pushdown ) { BoolExpr * extraBoolExprNodePointer = NULL ; <S2SV_ModEnd> int logicalOpsNum = <S2SV_ModStart> logicalOpsNum ) ; if ( expressionItems ) { int extraAndOperatorsNum = expressionItems -> length - 1 - logicalOpsNum ; add_extra_and_expression_items ( expressionItems , extraA... |
10,145 | CWE-000 void * Mem_Init ( int sizeOfRegion ) { <S2SV_StartBug> head -> size = sizeOfRegion - sizeof ( head ) ; <S2SV_EndBug> <S2SV_StartBug> int pageSize = getpagesize ( ) ; <S2SV_EndBug> if ( sizeOfRegion % pageSize != 0 ) { int num = sizeOfRegion / pageSize ; sizeOfRegion = pageSize * ( num + 1 ) ; } int fd = open ( ... | <S2SV_ModStart> sizeOfRegion ) { <S2SV_ModEnd> int pageSize = <S2SV_ModStart> = getpagesize ( ) ; printf ( "pageSize<S2SV_blank>%d\\n" , pageSize <S2SV_ModStart> MAP_FAILED ) { printf ( "map<S2SV_blank>failed" ) ; <S2SV_ModStart> ) ptr ; printf ( "sizeOfRegion<S2SV_blank>%d\\n" , sizeOfRegion ) ; printf ( "size<S2SV_bl... |
10,146 | CWE-000 int isKaprekar ( int n ) { if ( n < 1 ) { <S2SV_StartBug> return false ; <S2SV_EndBug> } int i ; long square = n * ( long ) n ; <S2SV_StartBug> int numDigits = ( int ) log10 ( n ) + 1 ; <S2SV_EndBug> <S2SV_StartBug> long modulus = 0 ; <S2SV_EndBug> long first , second ; <S2SV_StartBug> for ( i = 1 ; i <= number... | <S2SV_ModStart> ) { return 0 <S2SV_ModEnd> ; } int <S2SV_ModStart> ) log10 ( square <S2SV_ModEnd> ) + 1 <S2SV_ModStart> long modulus = 1 <S2SV_ModEnd> ; long first <S2SV_ModStart> ; i <= numDigits <S2SV_ModEnd> ; i ++ <S2SV_ModStart> ++ ) { modulus <S2SV_ModEnd> *= 10 ; <S2SV_ModStart> second == n && second > 0 || n ==... |
10,147 | CWE-000 <S2SV_StartBug> int main ( ) { <S2SV_EndBug> pthread_t tid1 = __VERIFIER_nondet_int ( ) ; int ret ; pthread_create ( & tid1 , 0 , t1 , & tid1 ) ; return 0 ; } | <S2SV_ModStart> int main ( void |
10,148 | CWE-000 mama_status avisBridgeMamaPublisher_sendFromInboxByIndex ( publisherBridge publisher , int tportIndex , mamaInbox inbox , mamaMsg msg ) { const char * replyAddr = NULL ; <S2SV_StartBug> mama_status status ; <S2SV_EndBug> CHECK_PUBLISHER ( publisher ) ; status = avisBridgeMamaPublisherImpl_prepareMessage ( & msg... | <S2SV_ModStart> ; mama_status status ; if ( ! inbox || ! msg ) return MAMA_STATUS_NULL_ARG |
10,149 | CWE-000 static int batch_retrieve ( void * instance_struct , struct batch_task * t ) { struct archive_instance * a = ( struct archive_instance * ) instance_struct ; int rc = MAKEFLOW_HOOK_SUCCESS ; <S2SV_StartBug> char * id = batch_task_generate_id ( t ) ; <S2SV_EndBug> char * task_path = string_format ( "%s/tasks/%.2s... | <S2SV_ModStart> = MAKEFLOW_HOOK_SUCCESS ; struct timeval start_time ; struct timeval end_time ; gettimeofday ( & start_time , NULL ) ; <S2SV_ModStart> batch_task_generate_id ( t ) ; gettimeofday ( & end_time , NULL ) ; float run_time = ( ( end_time . tv_sec * 1000000 + end_time . tv_usec ) - ( start_time . tv_sec * 100... |
10,150 | CWE-000 long long calculate_binary ( long long operand_0 , long long operand_1 , short type_of_ops ) { if ( ( operand_0 != WRONG_CALCULATION ) && ( operand_1 != WRONG_CALCULATION ) ) { switch ( type_of_ops ) { case ADD : return operand_0 + operand_1 ; case MINUS : return operand_0 - operand_1 ; case MULTIPLY : return o... | <S2SV_ModStart> || operand_1 ; case MODULO : return operand_0 % operand_1 ; case LT : return operand_0 < operand_1 ; case GT : return operand_0 > operand_1 ; case LOGICAL_EQUAL : return operand_0 == operand_1 ; case NOT_EQUAL : return operand_0 != operand_1 ; case LTE : return operand_0 <= operand_1 ; case GTE : return... |
10,151 | CWE-000 static void win32_translate_open_mode ( int mode , DWORD * lpdwDesiredAccess , DWORD * lpdwCreationDisposition , DWORD * lpdwShareMode , DWORD * lpdwFlagsAndAttributes ) { <S2SV_StartBug> * lpdwDesiredAccess = * lpdwShareMode = * lpdwFlagsAndAttributes = * lpdwCreationDisposition = 0 ; <S2SV_EndBug> if ( ( mode... | <S2SV_ModStart> * lpdwDesiredAccess = 0 ; <S2SV_ModStart> * lpdwShareMode = 0 ; <S2SV_ModEnd> * lpdwCreationDisposition = <S2SV_ModStart> lpdwCreationDisposition = 0 ; * lpdwFlagsAndAttributes = FILE_ATTRIBUTE_NORMAL <S2SV_ModStart> lpdwShareMode = FILE_SHARE_READ | FILE_SHARE_WRITE |
10,152 | CWE-000 char read_command ( uint16_t * arg ) { char buf [ COMM_LEN ] ; int k ; <S2SV_StartBug> if ( ( k = read ( 0 , buf , COMM_LEN ) ) == - 1 ) { <S2SV_EndBug> return ERR_READ ; } if ( k == 0 ) { * arg = 0 ; return EXIT ; } * arg = bytes_to_u16 ( buf [ 1 ] , buf [ 2 ] ) ; return buf [ 0 ] ; } | <S2SV_ModStart> = read ( STDIN_FILENO <S2SV_ModEnd> , buf , |
10,153 | CWE-000 uint16_t ax_fifo_rx_data ( ax_config * config , ax_rx_chunk * chunk ) { uint8_t ptr [ 3 ] ; uint32_t scratch ; <S2SV_StartBug> uint8_t fifocount = ax_hw_read_register_16 ( config , AX_REG_FIFOCOUNT ) ; <S2SV_EndBug> if ( fifocount == 0 ) { return 0 ; } debug_printf ( "got<S2SV_blank>something.<S2SV_blank>fifoco... | <S2SV_ModStart> uint32_t scratch ; uint16_t <S2SV_ModEnd> fifocount = ax_hw_read_register_16 |
10,154 | CWE-000 int main ( int argc , char * * argv ) { doClientInit ( ) ; int option ; BufferType buf ; registeSigHandle ( ) ; if ( setjmp ( env ) == SETJMP_RET ) { <S2SV_StartBug> puts ( "\\033[31;1m[NOTICE]\\033[0m<S2SV_blank>无效输入" ) ; <S2SV_EndBug> } while ( 1 ) { puts ( "1.改阳光" ) ; puts ( "2.免费植物" ) ; puts ( "3.黄油糊脸" ) ; ... | <S2SV_ModStart> { puts ( ERR "无效输入" <S2SV_ModEnd> ) ; } <S2SV_ModStart> , 1 , 16 <S2SV_ModEnd> ) ) { <S2SV_ModStart> { puts ( ERR |
10,155 | CWE-000 int moto_right_stop ( void ) { <S2SV_StartBug> pwm_set_duty ( PWMB_RIGHT_MOTO , 0 ) ; <S2SV_EndBug> <S2SV_StartBug> return pwm_disalbe ( PWMB_RIGHT_MOTO ) ; <S2SV_EndBug> } | <S2SV_ModStart> void ) { return <S2SV_ModStart> 0 ) ; <S2SV_ModEnd> } <S2SV_null> <S2SV_null> |
10,156 | CWE-000 int ncncio_redef ( void * ncdp ) { int err ; NC_nc4 * nc4p = ( NC_nc4 * ) ncdp ; <S2SV_StartBug> DEBUG_RETURN_ERROR ( NC_ENOT_SUPPORTED ) <S2SV_EndBug> return NC_NOERR ; } | <S2SV_ModStart> ; DEBUG_RETURN_ERROR ( NC_ENOTSUPPORT <S2SV_ModEnd> ) return NC_NOERR |
10,157 | CWE-000 crc crcSlow ( uint8_t const message [ ] , int nBytes ) { crc remainder = 0 ; <S2SV_StartBug> for ( int byte = 0 ; byte < nBytes ; ++ byte ) <S2SV_EndBug> { remainder ^= ( message [ byte ] << ( WIDTH - 8 ) ) ; <S2SV_StartBug> for ( uint8_t bit = 8 ; bit > 0 ; -- bit ) <S2SV_EndBug> { if ( remainder & TOPBIT ) { ... | <S2SV_ModStart> = 0 ; int byte ; uint8_t bit ; for ( <S2SV_ModEnd> byte = 0 <S2SV_ModStart> ; for ( <S2SV_ModEnd> bit = 8 |
10,158 | CWE-000 stmt * sql_parse ( backend * be , sql_allocator * sa , char * query , char mode ) { mvc * m = be -> mvc ; mvc * o = NULL ; stmt * sq = NULL ; buffer * b ; char * n ; int len = _strlen ( query ) ; stream * buf ; bstream * bst ; if ( THRhighwater ( ) ) return sql_error ( m , 10 , SQLSTATE ( 42000 ) "SELECT:<S2SV_... | <S2SV_ModStart> m , r , 1 |
10,159 | CWE-000 soter_status_t soter_sign_cleanup_rsa_pss_pkcs8 ( soter_sign_ctx_t * ctx ) { if ( ! ctx ) { return SOTER_INVALID_PARAMETER ; } if ( ctx -> pkey_ctx ) { EVP_PKEY * pkey = EVP_PKEY_CTX_get0_pkey ( ctx -> pkey_ctx ) ; <S2SV_StartBug> if ( pkey ) EVP_PKEY_free ( pkey ) ; <S2SV_EndBug> EVP_PKEY_CTX_free ( ctx -> pke... | <S2SV_ModStart> ( pkey ) { <S2SV_ModStart> pkey ) ; } |
10,160 | CWE-000 void owi_match_rom ( uint8_t * rom , uint8_t pin ) { int8_t idx ; <S2SV_StartBug> send_byte ( MATCH_ROM_CMD , pin ) ; <S2SV_EndBug> for ( idx = ( ROM_LEN_BYTES - 1 ) ; idx >= 0 ; idx -- ) { <S2SV_StartBug> owi_send_byte ( rom [ i ] , pin ) ; <S2SV_EndBug> } } | <S2SV_ModStart> int8_t idx ; owi_send_byte <S2SV_ModEnd> ( MATCH_ROM_CMD , <S2SV_ModStart> ( rom [ idx <S2SV_ModEnd> ] , pin |
10,161 | CWE-000 static void test__createWriterGang ( void * * state ) { int segmentCount = TOTOAL_SEGMENTS ; int ftsVersion = 1 ; PGconn * conn = & pgconn ; int motionListener = 10000 ; int qePid = 2000 ; int i = 0 ; will_return ( IsTransactionOrTransactionBlock , true ) ; will_return ( getCdbComponentDatabases , s_cdb ) ; wil... | <S2SV_ModStart> 1 ) ; expect_any ( FaultInjector_InjectFaultIfSet , identifier ) ; expect_any ( FaultInjector_InjectFaultIfSet , ddlStatement ) ; expect_any ( FaultInjector_InjectFaultIfSet , databaseName ) ; expect_any ( FaultInjector_InjectFaultIfSet , tableName ) ; will_return ( FaultInjector_InjectFaultIfSet , fals... |
10,162 | CWE-000 int test_lsm_config_str ( LsmDb * pLsm , lsm_db * db , int bWorker , const char * zStr , int * pnThread ) { struct CfgParam { const char * zParam ; int bWorker ; int eParam ; } aParam [ ] = { { "autoflush" , 0 , LSM_CONFIG_AUTOFLUSH } , { "page_size" , 0 , LSM_CONFIG_PAGE_SIZE } , { "block_size" , 0 , LSM_CONFI... | <S2SV_ModStart> nThread = 1 ; if ( zStr == 0 ) return 0 |
10,163 | CWE-000 static sql_exp * rel_order_by_column_exp ( mvc * sql , sql_rel * * R , symbol * column_r , int f ) { sql_rel * r = * R ; sql_exp * e = NULL ; exp_kind ek = { type_value , card_column , FALSE } ; if ( f == sql_orderby ) { assert ( is_project ( r -> op ) ) ; r = r -> l ; } if ( ! r ) return e ; if ( ! is_project ... | <S2SV_ModStart> l = r <S2SV_ModEnd> ; } if <S2SV_ModStart> = '\\0' ; <S2SV_ModEnd> e = rel_value_exp |
10,164 | CWE-000 int main ( ) { printf ( "Selezionare<S2SV_blank>dimansione<S2SV_blank>dell\'array" ) ; int dim = scan_int ( 0 , INT_MAX ) ; graph * * arr ; arr = malloc ( dim * sizeof ( graph * ) ) ; if ( ! arr ) printf ( "allocazione<S2SV_blank>non<S2SV_blank>riuscita" ) ; int dim_graph ; int i = 0 ; int g ; int sel ; int a ,... | <S2SV_ModStart> ( 0 , dim_graph <S2SV_ModEnd> ) ; printf <S2SV_ModStart> ( 0 , dim_graph <S2SV_ModEnd> ) ; ElimVert |
10,165 | CWE-000 double element_value ( const struct node * node , const char * par ) { double e_val ; if ( node == 0 ) { <S2SV_StartBug> error ( "element_value" , "node<S2SV_blank>parameter<S2SV_blank>is<S2SV_blank>NULL." ) ; <S2SV_EndBug> return 0.0 ; } const struct element * el = node -> p_elem ; if ( el == 0 ) { <S2SV_Start... | <S2SV_ModStart> 0 ) { mad_error <S2SV_ModEnd> ( "element_value" , <S2SV_ModStart> 0 ) { mad_error <S2SV_ModEnd> ( "element_value" , <S2SV_ModStart> 0 ) { mad_error <S2SV_ModEnd> ( "element_value" , <S2SV_ModStart> 0 ) { mad_error <S2SV_ModEnd> ( "element_value" , |
10,166 | CWE-000 void * stageData ( void * ) { thread_c ++ ; int thread_id = thread_c ; cerr << "Thread<S2SV_blank>id<S2SV_blank>" << thread_id << ":<S2SV_blank>" << "Is<S2SV_blank>launched\\n" ; <S2SV_StartBug> cerr << "Current<S2SV_blank>" << getAD ( ) << endl ; <S2SV_EndBug> int chunkToRecv = 0 ; char myAD [ MAX_XID_SIZE ] ;... | <S2SV_ModStart> << "Current<S2SV_blank>" << getAD2 ( 0 <S2SV_ModEnd> ) << endl <S2SV_ModStart> MAX_XID_SIZE ] ; getNewAD2 ( 0 , <S2SV_ModEnd> myAD ) ; <S2SV_ModStart> int netStageSock = registerMulStageService ( 0 , getStageServiceName2 ( 0 ) <S2SV_ModEnd> ) ; rttWifi <S2SV_ModStart> = getRTT ( getStageServiceName2 ( 0... |
10,167 | CWE-000 void displayContent ( Line * line ) <S2SV_StartBug> { <S2SV_EndBug> printf ( "\\r%s" , line -> buffer ) ; } | <S2SV_ModStart> line ) { if ( line -> buffer [ line -> index ] == '\\0' ) |
10,168 | CWE-000 static int ipa_netgr_process_all ( struct ipa_get_netgroups_state * state ) { int i , j , k , ret ; const char * * members ; struct sysdb_attrs * member ; const char * member_name ; struct extract_state * extract_state ; struct ldb_message_element * external_hosts ; const char * dash [ ] = { "-" } ; const char ... | <S2SV_ModStart> if ( ret == ENOENT ) { domain = NULL ; } else if ( ret <S2SV_ModStart> ] , domain ? domain : "" |
10,169 | CWE-000 static float _php_get_framerate ( ff_movie_context * ffmovie_ctx ) { AVStream * st = _php_get_video_stream ( ffmovie_ctx -> fmt_ctx ) ; float rate = 0.0f ; if ( ! st ) { return rate ; } # if LIBAVCODEC_BUILD > 4753 <S2SV_StartBug> if ( GET_CODEC_FIELD ( st -> codec , codec_type ) == AVMEDIA_TYPE_VIDEO ) { <S2SV... | <S2SV_ModStart> ( st -> codecpar <S2SV_ModEnd> , codec_type ) <S2SV_ModStart> / av_q2d ( st -> time_base <S2SV_ModEnd> ) ; } |
10,170 | CWE-000 static int dw_spi_set_speed ( struct udevice * bus , uint speed ) { struct dw_spi_platdata * plat = bus -> platdata ; struct dw_spi_priv * priv = dev_get_priv ( bus ) ; u16 clk_div ; if ( speed > plat -> frequency ) speed = plat -> frequency ; spi_enable_chip ( priv , 0 ) ; clk_div = priv -> bus_clk_rate / spee... | <S2SV_ModStart> & 0xfffe ; dw_write <S2SV_ModEnd> ( priv , |
10,171 | CWE-000 static struct io_plan * handshake_out_success ( struct io_conn * conn , const struct pubkey * id , const struct wireaddr * addr , const struct crypto_state * cs , struct reaching * reach ) { <S2SV_StartBug> return init_new_peer ( conn , id , addr , cs , reach -> daemon ) ; <S2SV_EndBug> } | <S2SV_ModStart> reach ) { reach -> connstate = "Exchanging<S2SV_blank>init<S2SV_blank>messages" ; |
10,172 | CWE-000 int ocfs2_set_acl ( handle_t * handle , struct inode * inode , struct buffer_head * di_bh , int type , struct posix_acl * acl , struct ocfs2_alloc_context * meta_ac , struct ocfs2_alloc_context * data_ac ) { int name_index ; void * value = NULL ; size_t size = 0 ; int ret ; if ( S_ISLNK ( inode -> i_mode ) ) re... | <S2SV_ModStart> ; ret = posix_acl_update_mode ( inode <S2SV_ModEnd> , & mode <S2SV_ModStart> , & mode , & acl ) ; if ( ret ) return ret <S2SV_ModEnd> ; ret = <S2SV_ModStart> return ret ; <S2SV_ModEnd> } break ; |
10,173 | CWE-000 static void rep0_pipe_recv_cb ( void * arg ) { rep0_pipe * p = arg ; rep0_sock * s = p -> rep ; rep0_ctx * ctx ; nni_msg * msg ; uint8_t * body ; nni_aio * aio ; size_t len ; int hops ; if ( nni_aio_result ( p -> aio_recv ) != 0 ) { nni_pipe_stop ( p -> pipe ) ; return ; } msg = nni_aio_get_msg ( p -> aio_recv ... | <S2SV_ModStart> nni_msg_free ( msg ) ; nni_aio_set_msg ( p -> aio_recv , NULL <S2SV_ModStart> msg ) ; nni_aio_set_msg ( p -> aio_recv , NULL ) ; |
10,174 | CWE-000 void dump_bis_partition ( char * filepath , u32 partition_id ) { <S2SV_StartBug> step_completed = false ; <S2SV_EndBug> FILE * dumpfile = fopen ( filepath , "wb" ) ; FsStorage partition ; u64 partition_size , dump_progress , bytes_to_dump ; Result rc = fsOpenBisStorage ( & partition , partition_id ) ; if ( R_FA... | <S2SV_ModStart> partition_id ) { <S2SV_ModEnd> FILE * dumpfile <S2SV_ModStart> dumpfile ) ; <S2SV_ModEnd> step_result = rc |
10,175 | CWE-000 static GUI_ENTRY_CUTBUFFER_REC * get_cutbuffer_rec ( GUI_ENTRY_REC * entry , CUTBUFFER_UPDATE_OP update_cutbuffer ) { <S2SV_StartBug> GUI_ENTRY_CUTBUFFER_REC * tmp = NULL ; <S2SV_EndBug> g_return_val_if_fail ( entry != NULL , NULL ) ; if ( entry -> kill_ring == NULL ) { entry -> kill_ring = g_slist_prepend ( en... | <S2SV_ModStart> GUI_ENTRY_CUTBUFFER_REC * tmp <S2SV_ModEnd> ; g_return_val_if_fail ( |
10,176 | CWE-000 static gboolean cb_func_format_action ( guint key_id ) { GeanyDocument * doc = document_get_current ( ) ; GtkWidget * focusw = gtk_window_get_focus ( GTK_WINDOW ( main_widgets . window ) ) ; if ( doc == NULL || focusw != GTK_WIDGET ( doc -> editor -> sci ) ) return TRUE ; switch ( key_id ) { case GEANY_KEYS_FOR... | <S2SV_ModStart> doc -> editor <S2SV_ModEnd> ) ; break |
10,177 | CWE-000 void nemo_window_slot_open_location_full ( NemoWindowSlot * slot , GFile * location , NemoWindowOpenFlags flags , GList * new_selection , NemoWindowGoToCallback callback , gpointer user_data ) { NemoWindow * window ; NemoWindow * target_window ; NemoWindowPane * pane ; NemoWindowSlot * target_slot ; NemoWindowO... | <S2SV_ModStart> , NEMO_LOCATION_CHANGE_STANDARD , 0 , NULL , ( flags & NEMO_WINDOW_OPEN_FLAG_MOUNT ) , <S2SV_ModEnd> callback , user_data <S2SV_ModStart> , NEMO_LOCATION_CHANGE_STANDARD , 0 , NULL , ( flags & NEMO_WINDOW_OPEN_FLAG_MOUNT ) , NULL , <S2SV_ModEnd> NULL ) ; |
10,178 | CWE-000 void resetScreen ( ) { gameover_screen = true ; is_crashing = false ; star_passing = false ; changed_star = false ; star_hit = false ; star_body . x = WINDOW_WIDTH ; game_text . font = TTF_OpenFont ( "../res/font/courier.ttf" , 40 ) ; game_text . color = grey_color ; sprintf ( game_text . value_str , "Game" ) ;... | <S2SV_ModStart> . color = blue_color <S2SV_ModEnd> ; record . |
10,179 | CWE-000 int main ( int argc , char * * argv ) { int narg = getOptions ( argc , argv ) ; if ( narg < 0 ) { fprintf ( stdout , "bad<S2SV_blank>args" ) ; exit ( 1 ) ; } else { FILE * out = stdout ; char * term = "" ; if ( narg < argc ) out = fopen ( argv [ narg ] , "w" ) ; fprintf ( out , "/*<S2SV_blank>Automatically<S2SV... | <S2SV_ModStart> ( out , "<S2SV_blank><S2SV_blank>import<S2SV_blank>lo.\\n\\n" ) ; fprintf ( out , "<S2SV_blank><S2SV_blank>import<S2SV_blank>lo.comp.term.\\n" <S2SV_ModEnd> ) ; fprintf |
10,180 | CWE-000 static void update_snap_mode_widget ( GschemOptionsWidget * widget ) { g_return_if_fail ( widget != NULL ) ; if ( widget -> options != NULL ) { int index ; SNAP_STATE snap_mode ; snap_mode = gschem_options_get_snap_mode ( widget -> options ) ; for ( index = 0 ; index < SNAP_STATE_COUNT ; index ++ ) { g_signal_h... | <S2SV_ModStart> ] ) , ( gpointer ) update_snap_mode_model <S2SV_ModEnd> , widget ) <S2SV_ModStart> ] ) , ( gpointer ) update_snap_mode_model <S2SV_ModEnd> , widget ) |
10,181 | CWE-000 static void repeated_field_write_dimension ( zval * object , zval * offset , zval * value TSRMLS_DC ) { uint64_t index ; RepeatedField * intern = zend_object_store_get_object ( object TSRMLS_CC ) ; HashTable * ht = HASH_OF ( intern -> array ) ; int size = native_slot_size ( intern -> type ) ; unsigned char memo... | <S2SV_ModStart> ( E_USER_ERROR , "Element<S2SV_blank>at<S2SV_blank>%llu<S2SV_blank>doesn\'t<S2SV_blank>exist.\\n" <S2SV_ModEnd> , index ) |
10,182 | CWE-000 static foreign_t ret_prob ( term_t arg1 , term_t arg2 , term_t arg3 ) { term_t out ; environment * env ; DdNode * node ; tablerow * table ; <S2SV_StartBug> int ret ; <S2SV_EndBug> ret = PL_get_pointer ( arg1 , ( void * * ) & env ) ; RETURN_IF_FAIL ret = PL_get_pointer ( arg2 , ( void * * ) & node ) ; RETURN_IF_... | <S2SV_ModStart> * table ; double prob ; <S2SV_ModStart> boolVars ) ; prob = Prob ( node , env , table , 0 ) ; if ( Cudd_IsComplement ( node ) ) prob = 1.0 - prob ; <S2SV_ModStart> ( out , prob <S2SV_ModEnd> ) ; RETURN_IF_FAIL |
10,183 | CWE-000 int new_schedule_async ( struct ehci_host * edev , struct QHn * qhn ) { <S2SV_StartBug> while ( ( edev -> op_regs -> usbsts & EHCISTS_ASYNC_EN ) <S2SV_EndBug> <S2SV_StartBug> ^ ( edev -> op_regs -> usbcmd & EHCICMD_ASYNC_EN ) ) ; <S2SV_EndBug> if ( edev -> op_regs -> usbsts & EHCISTS_ASYNC_EN ) { } else { qhn -... | <S2SV_ModStart> while ( ( ( <S2SV_ModStart> & EHCISTS_ASYNC_EN ) >> 15 ) ^ ( ( <S2SV_ModEnd> edev -> op_regs <S2SV_ModStart> usbcmd & EHCICMD_ASYNC_EN ) >> 5 |
10,184 | CWE-000 static int Document_Store ( Document * doc , RedisSearchCtx * ctx , int options , const char * * errorString ) { const char * keystr = RedisModule_StringPtrLen ( doc -> docKey , NULL ) ; DocTable * table = & ctx -> spec -> docs ; if ( options & DOCUMENT_ADD_REPLACE ) { DocTable_Delete ( table , keystr ) ; } doc... | <S2SV_ModStart> * errorString = "Document<S2SV_blank>already<S2SV_blank>exists" <S2SV_ModEnd> ; return - |
10,185 | CWE-000 PHP_METHOD ( DefaultColumn , type ) { php_driver_column * self ; if ( zend_parse_parameters_none ( ) == FAILURE ) { return ; } self = PHP_DRIVER_GET_COLUMN ( getThis ( ) ) ; <S2SV_StartBug> RETURN_ZVAL ( PHP5TO7_ZVAL_MAYBE_P ( self -> type ) , 1 , 0 ) ; <S2SV_EndBug> } | <S2SV_ModStart> ) ) ; if ( PHP5TO7_ZVAL_IS_UNDEF_P ( self -> type ) ) { RETURN_NULL ( ) ; } |
10,186 | CWE-000 MonoType * mono_reflection_bind_generic_parameters ( MonoReflectionTypeHandle reftype , int type_argc , MonoType * * types , MonoError * error ) { gboolean is_dynamic = FALSE ; MonoClass * geninst ; error_init ( error ) ; mono_loader_lock ( ) ; MonoClass * klass = mono_handle_class ( reftype ) ; if ( mono_is_sr... | <S2SV_ModStart> ( ) ; mono_error_set_argument_format <S2SV_ModEnd> ( error , |
10,187 | CWE-000 int bletiny_l2cap_send ( uint16_t conn_handle , uint16_t idx , uint16_t bytes ) { # if MYNEWT_VAL ( BLE_L2CAP_COC_MAX_NUM ) == 0 console_printf ( "BLE<S2SV_blank>L2CAP<S2SV_blank>LE<S2SV_blank>COC<S2SV_blank>not<S2SV_blank>supported." ) ; console_printf ( "<S2SV_blank>Configure<S2SV_blank>nimble<S2SV_blank>host... | <S2SV_ModStart> rc ) ; <S2SV_ModEnd> os_mbuf_free_chain ( sdu_tx <S2SV_ModStart> sdu_tx ) ; <S2SV_ModEnd> } return rc |
10,188 | CWE-000 static ssize_t ffs_aliases_store ( struct device * pdev , struct device_attribute * attr , const char * buf , size_t size ) { struct android_dev * dev ; char buff [ 256 ] ; <S2SV_StartBug> char * aliases ; <S2SV_EndBug> struct functionfs_config * config ; struct f_fs_opts * opts ; struct list_head * config_ptr ... | <S2SV_ModStart> 256 ] ; <S2SV_ModEnd> dev = list_first_entry <S2SV_ModStart> android_dev , list_item <S2SV_ModEnd> ) ; mutex_lock <S2SV_ModStart> ) ) ; <S2SV_ModEnd> strlcpy ( dev <S2SV_ModStart> -> ffs_aliases , strim ( buff ) <S2SV_ModEnd> , sizeof ( <S2SV_ModStart> ) ) ; <S2SV_ModEnd> mutex_unlock ( & <S2SV_ModStart... |
10,189 | CWE-000 static void dpu_encoder_destroy ( struct drm_encoder * drm_enc ) { struct dpu_encoder_virt * dpu_enc = NULL ; int i = 0 ; if ( ! drm_enc ) { DPU_ERROR ( "invalid<S2SV_blank>encoder\\n" ) ; return ; } dpu_enc = to_dpu_encoder_virt ( drm_enc ) ; DPU_DEBUG_ENC ( dpu_enc , "\\n" ) ; mutex_lock ( & dpu_enc -> enc_lo... | <S2SV_ModStart> enc_lock ) ; <S2SV_ModEnd> } <S2SV_null> <S2SV_null> |
10,190 | CWE-000 static void makeclick ( Win * win , guint btn ) { <S2SV_StartBug> putbtne ( win , GDK_BUTTON_PRESS , btn ) ; <S2SV_EndBug> if ( btn == 2 ) g_timeout_add ( 40 , ( GSourceFunc ) delaymdlrcb , win ) ; else <S2SV_StartBug> putbtne ( win , GDK_BUTTON_RELEASE , btn ) ; <S2SV_EndBug> } | <S2SV_ModStart> btn ) { putbtn <S2SV_ModEnd> ( win , <S2SV_ModStart> ) ; else putbtn <S2SV_ModEnd> ( win , |
10,191 | CWE-000 int chmake ( int chv [ 2 ] ) { int err ; <S2SV_StartBug> void * ch = malloc ( CHSIZE ) ; <S2SV_EndBug> if ( dill_slow ( ! ch ) ) { err = ENOMEM ; goto error1 ; } int h = chmake_mem ( ch , chv ) ; if ( dill_slow ( h < 0 ) ) { err = errno ; goto error2 ; } ( ( struct dill_halfchan * ) ch ) [ 0 ] . mem = 0 ; ( ( s... | <S2SV_ModStart> int err ; struct chstorage <S2SV_ModEnd> * ch = <S2SV_ModStart> = malloc ( sizeof ( struct chstorage ) <S2SV_ModEnd> ) ; if |
10,192 | CWE-000 static int auth_CheckPasswd ( const char * name , const char * data , const char * key ) { if ( ! strcmp ( data , "*" ) ) { # ifdef NOPAM struct passwd * pw ; <S2SV_StartBug> int result ; <S2SV_EndBug> char * cryptpw ; cryptpw = crypt ( key , pw -> pw_passwd ) ; <S2SV_StartBug> result = ( pw = getpwnam ( name )... | <S2SV_ModStart> ; int result = 0 ; char * cryptpw ; pw = getpwnam ( name ) ; if ( pw ) { <S2SV_ModEnd> cryptpw = crypt <S2SV_ModStart> result = ( cryptpw != NULL ) && <S2SV_ModEnd> ! strcmp ( <S2SV_ModStart> -> pw_passwd ) ; } <S2SV_ModEnd> endpwent ( ) |
10,193 | CWE-000 struct ofi_subscription * ofi_monitor_get_event ( struct ofi_notification_queue * nq ) { <S2SV_StartBug> struct ofi_subscription * subscription ; <S2SV_EndBug> util_monitor_read_events ( nq -> monitor ) ; fastlock_acquire ( & nq -> lock ) ; if ( ! dlist_empty ( & nq -> list ) ) { dlist_pop_front ( & nq -> list ... | <S2SV_ModStart> ofi_subscription * subscription <S2SV_ModEnd> ; fastlock_acquire ( |
10,194 | CWE-000 static int __blk_free_tags ( struct blk_queue_tag * bqt ) { int retval ; retval = atomic_dec_and_test ( & bqt -> refcnt ) ; if ( retval ) { <S2SV_StartBug> BUG_ON ( bqt -> busy ) ; <S2SV_EndBug> BUG_ON ( ! list_empty ( & bqt -> busy_list ) ) ; kfree ( bqt -> tag_index ) ; bqt -> tag_index = NULL ; kfree ( bqt -... | <S2SV_ModStart> bqt -> busy <S2SV_ModEnd> ) ; kfree |
10,195 | CWE-000 static void punt_bios_to_rescuer ( struct bio_set * bs ) { struct bio_list punt , nopunt ; <S2SV_StartBug> struct bio * bio ; <S2SV_EndBug> bio_list_init ( & punt ) ; bio_list_init ( & nopunt ) ; while ( ( bio = bio_list_pop ( & current -> bio_list [ 0 ] ) ) ) bio_list_add ( bio -> bi_pool == bs ? & punt : & no... | <S2SV_ModStart> bio * bio ; if ( WARN_ON_ONCE ( ! bs -> rescue_workqueue ) ) return |
10,196 | CWE-000 <S2SV_StartBug> gear_token G_Parser_ExpectToken ( struct Parser * self , enum TokenType token_type ) <S2SV_EndBug> { gear_token curr_token ; gear_lexer_current ( & self -> lexer , & curr_token ) ; if ( curr_token . type == token_type ) { gear_lexer_next ( & self -> lexer , NULL ) ; } else if ( curr_token . type... | <S2SV_ModStart> * self , gear_token_type <S2SV_ModEnd> token_type ) { |
10,197 | CWE-000 void serve_page ( int clsock ) { bool is_get_request = false ; bool first_iteration = true ; int bytes_read ; do { if ( fill_buffer ( clsock , buffer , '\\n' , BUFFER_SIZE , & bytes_read ) ) { return ; } if ( buffer [ bytes_read - 1 ] != '\\n' ) { printf ( "HTTP<S2SV_blank>header<S2SV_blank>line<S2SV_blank>too<... | <S2SV_ModStart> reading . buttons <S2SV_ModEnd> ) ; } |
10,198 | CWE-000 void dispatch_main ( void ) { _dispatch_root_queues_init ( ) ; # if HAVE_PTHREAD_MAIN_NP if ( pthread_main_np ( ) ) { # endif _dispatch_object_debug ( & _dispatch_main_q , "%s" , __func__ ) ; _dispatch_program_is_probably_callback_driven = true ; _dispatch_ktrace0 ( ARIADNE_ENTER_DISPATCH_MAIN_CODE ) ; # ifdef ... | <S2SV_ModStart> dispatch_main_key ) ; _dispatch_sigmask ( ) ; |
10,199 | CWE-000 void apuInit ( ) { memset ( APU_IO_Reg , 0 , 0x50 ) ; if ( allowCgbRegs ) memcpy ( APU_IO_Reg + 0x30 , startWavSetCGB , 0x10 ) ; else memcpy ( APU_IO_Reg + 0x30 , startWavSetDMG , 0x10 ) ; memset ( apuOutBuf , 0 , apuBufSizeBytes ) ; curBufPos = 0 ; freq1 = 0 ; freq2 = 0 ; wavFreq = 0 ; noiseFreq = 0 ; noiseShi... | <S2SV_ModStart> soundEnabled = true ; APU_IO_Reg [ 0x24 ] = 0x77 <S2SV_ModStart> 0x25 ] = 0xF3 <S2SV_ModEnd> ; } <S2SV_null> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.