Unnamed: 0
int64
0
535k
source
stringlengths
50
89.8k
target
stringlengths
23
37.7k
1,800
CWE-000 static int find_sub_ctxt ( struct hfi1_filedata * fd , const struct hfi1_user_info * uinfo ) { int i ; struct hfi1_devdata * dd = fd -> dd ; u16 subctxt ; for ( i = dd -> first_dyn_alloc_ctxt ; i < dd -> num_rcv_contexts ; i ++ ) { struct hfi1_ctxtdata * uctxt = dd -> rcd [ i ] ; if ( ! uctxt || bitmap_empty ( ...
<S2SV_ModStart> = subctxt ; hfi1_rcd_get ( uctxt ) ;
1,801
CWE-000 uint8_t bsl_getInfo ( HANDLE ptrPort , uint8_t physInterface , uint8_t uartMode , int * flashsize , uint8_t * vers , uint8_t * family , uint8_t verbose ) { int i ; int lenTx , lenRx , len ; char Tx [ 1000 ] , Rx [ 1000 ] ; if ( ( verbose == INFORM ) || ( verbose == CHATTY ) ) printf ( "<S2SV_blank><S2SV_blank>d...
<S2SV_ModStart> ) printf ( "done<S2SV_blank>(STM8S;<S2SV_blank>%dkB<S2SV_blank>flash;<S2SV_blank>BSL<S2SV_blank>v%x.%x)\\n" <S2SV_ModEnd> , * flashsize <S2SV_ModStart> else printf ( "done<S2SV_blank>(STM8L;<S2SV_blank>%dkB<S2SV_blank>flash;<S2SV_blank>BSL<S2SV_blank>v%x.%x)\\n" <S2SV_ModEnd> , * flashsize
1,802
CWE-000 <S2SV_StartBug> void main ( int argc , char * argv [ ] ) <S2SV_EndBug> { <S2SV_StartBug> n = atoi ( argv [ 1 ] ) ; <S2SV_EndBug> int arr [ n ] ; <S2SV_StartBug> for ( int i = 0 ; i < n ; i ++ ) arr [ i ] = atoi ( argv [ i + 2 ] ) ; <S2SV_EndBug> for ( int i = 0 ; i < n ; i ++ ) printf ( "%d<S2SV_blank>" , arr [...
<S2SV_ModStart> <S2SV_null> <S2SV_null> <S2SV_null> int main ( <S2SV_ModEnd> ) { n <S2SV_ModStart> { n = 10000000 <S2SV_ModEnd> ; int arr <S2SV_ModStart> i ] = rand ( ) % 10000000 <S2SV_ModEnd> ; printf ( <S2SV_ModStart> "\\n" ) ; int wrong = 0 ; <S2SV_ModStart> i < n - 1 <S2SV_ModStart> i ++ ) if ( <S2SV_ModEnd> arr [...
1,803
CWE-000 int garble_load ( garble_circuit * gc , FILE * f , bool table_only , bool wires ) { <S2SV_StartBug> size_t p = 0 ; <S2SV_EndBug> if ( table_only ) { if ( ( gc -> table = malloc ( ( gc -> q - gc -> nxors ) * garble_table_size ( gc ) ) ) == NULL ) goto error ; p += fread ( gc -> table , garble_table_size ( gc ) ,...
<S2SV_ModStart> p = 0 ; memset ( gc , '\\0' , sizeof ( garble_circuit ) )
1,804
CWE-000 int tty_io_wrapper ( uint32_t tty , uint64_t unused , int type , uint8_t payload ) { if ( type == 1 ) { text_putchar ( payload , tty ) ; return 0 ; <S2SV_StartBug> } else if ( type == 0 ) <S2SV_EndBug> return keyboard_fetch_char ( tty ) ; <S2SV_StartBug> } <S2SV_EndBug>
<S2SV_ModStart> == 0 ) { <S2SV_ModStart> ) ; } }
1,805
CWE-000 glui32 agent_get_output ( char * buf , glui32 len ) { char * dest_buf = NULL ; <S2SV_StartBug> ssize_t sent = - 1 ; <S2SV_EndBug> glui32 net_len = htonl ( str_len ) ; sent = send ( sock_fh , & net_len , 4 , 0 ) ; if ( sent < 0 ) { int err = errno ; gli_strict_warning ( "agent.c:<S2SV_blank>send<S2SV_blank>size"...
<S2SV_ModStart> = NULL ; glui32 dest_buf_len = 0 ; <S2SV_ModStart> restart ) ; <S2SV_ModEnd> dest_buf_len = ntohl
1,806
CWE-000 static M_CODE lm_worker_sort ( worker_t * w ) { int x , epeek ; ulist_t * list , * peek_list = 0 ; crawler_t * cr ; int match , lookup ; int syn ; uehandle_t * ue_h = w -> ue_h ; filetype_t * ft ; url_t * url ; const char * mime ; char * c ; <S2SV_StartBug> int num_urls ; <S2SV_EndBug> if ( ! ( list = lm_utable...
<S2SV_ModStart> ; int num_urls ; int depth_limit , depth_counter <S2SV_ModStart> lookup = 0 ; depth_limit = ue_h -> depth_limit ; depth_counter = ue_h -> depth_counter <S2SV_ModStart> : if ( <S2SV_ModEnd> depth_limit ) { <S2SV_ModStart> { if ( depth_counter >= <S2SV_ModEnd> depth_limit ) {
1,807
CWE-000 void AccumSpacetimeCorr ( ) { real fac ; int j , nb , nr , n ; for ( nb = 0 ; nb < nCBuffer ; nb ++ ) { if ( tBuf [ nb ] . count == nCTime ) { for ( j = 0 ; j < AVDOF * nCSpatial ; j ++ ) { for ( n = 0 ; n < nCTime ; n ++ ) { avF_qq2 [ j ] [ n ] += tBuf [ nb ] . F_qq2 [ j ] [ n ] ; avF_s_qq2 [ j ] [ n ] += tBuf...
<S2SV_ModStart> j ] ; real_tensor_increase_r2_r2 <S2SV_ModEnd> ( & rrMSR2_VR_Av <S2SV_ModStart> j ] , <S2SV_ModEnd> & tBuf [
1,808
CWE-000 int __hash_page_4K ( unsigned long ea , unsigned long access , unsigned long vsid , pte_t * ptep , unsigned long trap , unsigned long flags , int ssize , int subpg_prot ) { real_pte_t rpte ; unsigned long hpte_group ; unsigned int subpg_index ; unsigned long rflags , pa ; unsigned long old_pte , new_pte , subpg...
<S2SV_ModStart> ) , ptep , PTRS_PER_PTE <S2SV_ModStart> subpg_index , slot , PTRS_PER_PTE
1,809
CWE-000 static int ext2_generate ( struct image * image ) { int ret ; const char * extraargs = cfg_getstr ( image -> imagesec , "extraargs" ) ; const char * features = cfg_getstr ( image -> imagesec , "features" ) ; const char * label = cfg_getstr ( image -> imagesec , "label" ) ; const char * fs_timestamp = cfg_getstr...
<S2SV_ModStart> "set_current_time<S2SV_blank>%s\\n" "set_super_value<S2SV_blank>mkfs_time<S2SV_blank>%s\\n" "set_super_value<S2SV_blank>lastcheck<S2SV_blank>%s\\n" "set_super_value<S2SV_blank>mtime<S2SV_blank>00000000\'<S2SV_blank>|<S2SV_blank>%s<S2SV_blank>-w<S2SV_blank>\'%s\'" <S2SV_ModEnd> , fs_timestamp ,
1,810
CWE-000 int pmbus_read_byte_data ( struct i2c_client * client , int page , u8 reg ) { int rv ; <S2SV_StartBug> if ( page >= 0 ) { <S2SV_EndBug> rv = pmbus_set_page ( client , page ) ; if ( rv < 0 ) return rv ; <S2SV_StartBug> } <S2SV_EndBug> return i2c_smbus_read_byte_data ( client , reg ) ; }
<S2SV_ModStart> int rv ; <S2SV_ModEnd> rv = pmbus_set_page <S2SV_ModStart> return rv ; <S2SV_ModEnd> return i2c_smbus_read_byte_data (
1,811
CWE-000 bool init_cylinder ( int fd , t_obj * objs , t_cam * cam ) { int ret_gnl ; char * line ; t_obj * new_obj ; if ( ( new_obj = make_new_obj ( objs , TYPE_CYLINDER ) ) == NULL ) return ( - 1 ) ; init_default_cylinder_values ( cam , new_obj ) ; while ( ( ret_gnl = get_next_line ( fd , & line ) ) == 1 && strstr ( lin...
<S2SV_ModStart> ) return ( true <S2SV_ModEnd> ) ; free
1,812
CWE-000 int main_exec ( t_ast_node * ast_tree , int in_fork , int fd_min ) { char * * cmd ; char * tmp ; pid_t child ; char * builtins [ ] = <S2SV_StartBug> { "cd" , "echo" , "exit" , "setenv" , "unsetenv" , NULL } ; <S2SV_EndBug> if ( ast_tree -> type == PIPE ) launch_pipe ( ast_tree ) ; else if ( ast_tree -> type == ...
<S2SV_ModStart> ] = { <S2SV_ModEnd> "setenv" , "unsetenv" <S2SV_ModStart> { cmd = list_to_array <S2SV_ModEnd> ( ast_tree -> <S2SV_ModStart> ast_tree -> content <S2SV_ModEnd> ) ; tmp
1,813
CWE-000 static Rboolean addPDFDevicefont ( type1fontfamily family , PDFDesc * pd , int * fontIndex ) { Rboolean result = FALSE ; type1fontlist fontlist = addDeviceFont ( family , pd -> fonts , fontIndex ) ; if ( fontlist ) { int dontcare ; encodinginfo encoding = findDeviceEncoding ( family -> encoding -> encpath , pd ...
<S2SV_ModStart> encoding ) { freeDeviceFontList ( fontlist ) ; <S2SV_ModStart> ; } else { freeDeviceFontList ( fontlist ) ; <S2SV_ModStart> } } } }
1,814
CWE-000 static void allocator_memfree ( gsize memsize , gpointer mem ) { <S2SV_StartBug> # if HAVE_COMPLIANT_POSIX_MEMALIGN || HAVE_MEMALIGN || HAVE_VALLOC <S2SV_EndBug> free ( mem ) ; # else mem_assert ( memsize <= sys_page_size ) ; G_GNUC_BEGIN_IGNORE_DEPRECATIONS g_trash_stack_push ( & compat_valloc_trash , mem ) ; ...
<S2SV_ModStart> { # if HAVE_POSIX_MEMALIGN <S2SV_ModEnd> || HAVE_MEMALIGN ||
1,815
CWE-000 ssize_t do_replace_loop ( const char * needle , bool whole_word_only , const filestruct * real_current , size_t * real_current_x ) { ssize_t numreplaced = - 1 ; size_t match_len ; bool replaceall = FALSE ; # ifndef NANO_TINY bool old_mark_set = openfile -> mark_set ; filestruct * top , * bot ; size_t top_x , bo...
<S2SV_ModStart> openfile -> current_x < <S2SV_ModEnd> * real_current_x )
1,816
CWE-000 void add_entity ( GameState game_state , GUI gui , int32_t xpos , int32_t ypos , char * image_name ) { if ( ! imagelib_load ( image_name , gui -> renderer ) ) { switch ( IMAGE_LIB_ERR ) { case DIRECTORY_NOT_FOUND : fprintf ( stderr , "Could<S2SV_blank>not<S2SV_blank>find<S2SV_blank>directory<S2SV_blank>%s" , AS...
<S2SV_ModStart> ( stderr , "Could<S2SV_blank>not<S2SV_blank>find<S2SV_blank>asset<S2SV_blank>`%s`" , image_name <S2SV_ModEnd> ) ; break <S2SV_ModStart> ( stderr , "`%s`<S2SV_blank>is<S2SV_blank>too<S2SV_blank>long<S2SV_blank>a<S2SV_blank>file<S2SV_blank>name." , image_name <S2SV_ModEnd> ) ; break
1,817
CWE-000 NON_EXEC_STATIC void GlobalDeadLockDetectorMain ( int argc , char * argv [ ] ) { sigjmp_buf local_sigjmp_buf ; Port portbuf ; char * fullpath ; char * knownDatabase = "postgres" ; IsUnderPostmaster = true ; am_global_deadlock_detector = true ; MyPMChildSlot = - 1 ; MyProcPid = getpid ( ) ; MyStartTime = time ( ...
<S2SV_ModStart> -> user_name = MemoryContextStrdup ( TopMemoryContext , <S2SV_ModStart> ( GetAuthenticatedUserId ( )
1,818
CWE-000 inline static void short_on ( ) { <S2SV_StartBug> GPIOA -> ODR |= GPIO_PIN_5 ; <S2SV_EndBug> }
<S2SV_ModStart> ( ) { SHORT_ON <S2SV_ModEnd> ; } <S2SV_null>
1,819
CWE-000 void ucp_tag_exp_remove ( ucp_tag_match_t * tm , ucp_request_t * req ) { ucs_queue_head_t * queue = ucp_tag_exp_get_req_queue ( tm , req ) ; ucp_context_t * ctx = ucs_container_of ( tm , ucp_context_t , tm ) ; ucs_queue_iter_t iter ; ucp_request_t * qreq ; ucs_queue_for_each_safe ( qreq , iter , queue , recv . ...
<S2SV_ModStart> req ) { ucp_tag_offload_try_cancel <S2SV_ModEnd> ( ctx , <S2SV_ModStart> 0 ) ; <S2SV_ModEnd> ucs_queue_del_iter ( queue
1,820
CWE-000 kpoly_t * new_kpoly_y ( const int j , const int i ) { const size_t deg = i ; if ( deg > K || deg >= G || deg == 0 ) { ERRNO = __LINE__ ; return NULL ; } kpoly_t * new = new_zero_kpoly ( ) ; if ( new == NULL ) { ERRNO = __LINE__ ; } else { new -> mono . deg = deg ; double numer = bN ( j , j + i ) - bN ( j , j + ...
<S2SV_ModStart> deg ) ; new -> coeff [ deg ] = new -> mono . coeff ;
1,821
CWE-000 static bool wlr_drm_connector_set_cursor ( struct wlr_output * output , const uint8_t * buf , int32_t stride , uint32_t width , uint32_t height , int32_t hotspot_x , int32_t hotspot_y , bool update_pixels ) { struct wlr_drm_connector * conn = ( struct wlr_drm_connector * ) output ; struct wlr_drm_backend * drm ...
<S2SV_ModStart> -> cursor ; if ( ! plane ) { plane = calloc ( 1 , sizeof ( * plane ) ) ; if ( ! plane ) { wlr_log_errno ( L_ERROR , "Allocation<S2SV_blank>failed" ) ; return false ; } crtc -> cursor = plane ; } <S2SV_ModStart> = true ; <S2SV_ModEnd> if ( !
1,822
CWE-000 <S2SV_StartBug> jint netty_internal_tcnative_Library_JNI_OnLoad ( JNIEnv * env , const char * packagePrefix ) { <S2SV_EndBug> if ( netty_internal_tcnative_util_register_natives ( env , packagePrefix , "io/netty/internal/tcnative/Library" , method_table , method_table_size ) != 0 ) { return JNI_ERR ; } if ( nett...
<S2SV_ModStart> <S2SV_null> <S2SV_null> <S2SV_null> static
1,823
CWE-000 static int elemental_ai_sub_foreachclient ( struct map_session_data * sd , va_list ap ) { <S2SV_StartBug> int64 tick = va_arg ( ap , unsigned int ) ; <S2SV_EndBug> if ( sd -> status . ele_id && sd -> ed ) elemental_ai_sub_timer ( sd -> ed , sd , tick ) ; return 0 ; }
<S2SV_ModStart> ( ap , int64 <S2SV_ModEnd> ) ; if
1,824
CWE-000 static int cnic_arp_send ( nic_t * nic , nic_interface_t * nic_iface , int fd , __u8 * mac_addr , __u32 ip_addr , char * addr_str ) { struct ether_header * eth ; struct ether_arp * arp ; __u32 dst_ip = ip_addr ; int pkt_size = sizeof ( * eth ) + sizeof ( * arp ) ; int rc ; struct in_addr addr ; static const uin...
<S2SV_ModStart> log_name ) ; pthread_mutex_unlock ( & nic -> xmit_mutex ) ;
1,825
CWE-000 int getDegree ( int euclid [ ] ) { int i , j ; for ( i = bytes - 1 ; i >= 0 ; i -- ) { if ( euclid [ i ] ) { for ( j = 32 - 1 ; j >= 0 ; j -- ) { if ( TestBit ( & ( euclid [ i ] ) , j ) ) { return j + 32 * ( i ) + 1 ; } } } } <S2SV_StartBug> return - 1 ; <S2SV_EndBug> }
<S2SV_ModStart> } } return 0 <S2SV_ModEnd> ; } <S2SV_null>
1,826
CWE-000 ret_t check_icc ( ctiff_t * ctif ) { tifp_check ( ctif ) ; tif_rules_tag ( TIFFTAG_ICCPROFILE , "is<S2SV_blank>correct" ) ; ifd_entry_t ifd_entry = TIFFGetRawIFDEntry ( ctif , TIFFTAG_ICCPROFILE ) ; uint32 icc_profile_size ; uint32 count ; char * icc_profile = NULL ; switch ( ifd_entry . datatype ) { case TIFF_...
<S2SV_ModStart> } else { return tif_fails_tag ( TIFFTAG_ICCPROFILE , "pointing<S2SV_blank>to<S2SV_blank>an<S2SV_blank>offset" , "encoded<S2SV_blank>as<S2SV_blank>value<S2SV_blank>instead<S2SV_blank>as<S2SV_blank>offset,<S2SV_blank>but<S2SV_blank>there<S2SV_blank>is<S2SV_blank>no<S2SV_blank>enough<S2SV_blank>space<S2SV_...
1,827
CWE-000 cplugin_info_t * py_load_info ( void * data __attribute__ ( ( unused ) ) , void * ptr ) { PyObject * dict = ( PyObject * ) ptr ; PyObject * class = NULL , * instance = NULL , * result = NULL ; unsigned int i = 0 , t = 0 ; cplugin_info_t * info = NULL ; struct plugin_internal_function pyinfo [ ] = { { "get_name"...
<S2SV_ModStart> i ] . name <S2SV_ModEnd> , NULL )
1,828
CWE-000 void handle_ruleset_extra ( const struct packet_ruleset_extra * p ) { struct extra_type * pextra = extra_by_number ( p -> id ) ; int i ; bool cbase ; bool croad ; bool cres ; fc_assert_ret_msg ( NULL != pextra , "Bad<S2SV_blank>extra<S2SV_blank>%d." , p -> id ) ; names_set ( & pextra -> name , NULL , p -> name ...
<S2SV_ModStart> ; pextra -> generated = p -> generated ; pextra ->
1,829
CWE-000 bool pwmss_timer_callback ( struct timer * timer , void * data ) { <S2SV_StartBug> int32_t ret ; <S2SV_EndBug> printf ( "my<S2SV_blank>pins<S2SV_blank>togglinn\\n" ) ; ret = gpioPin_togglePin ( ( struct gpio_pin * ) data ) ; CONFIG_ASSERT ( ret >= 0 ) ; return false ; }
<S2SV_ModStart> { int32_t ret <S2SV_ModEnd> ; ret =
1,830
CWE-000 void update_average_power ( void ) { uint16_t idx ; uint32_t sum = 0 ; peak_flag = 0 ; if ( gap_found ) { power_avg = 0 ; peak_threshold = 0 ; } else { if ( end_of_gap ) { peak_flag = 1 ; peak_last = PEAK_SPACING ; ramp_frames = 0 ; power_avg_idx = PEAK_FRAMES - 1 ; } if ( ramp_frames < PEAK_FRAMES ) ramp_frame...
<S2SV_ModStart> >> 2 ) + ( power_avg >> 3 ) ; if ( sum >= <S2SV_ModEnd> peak_threshold ) {
1,831
CWE-000 static void deformVerts ( ModifierData * md , const ModifierEvalContext * ctx , Mesh * mesh , float ( * vertexCos ) [ 3 ] , int numVerts ) { CastModifierData * cmd = ( CastModifierData * ) md ; Mesh * mesh_src = NULL ; <S2SV_StartBug> if ( ctx -> object -> type == OB_MESH ) { <S2SV_EndBug> <S2SV_StartBug> mesh_...
<S2SV_ModStart> type == OB_MESH && cmd -> defgrp_name [ 0 ] != '\\0' <S2SV_ModStart> false , false <S2SV_ModEnd> ) ; }
1,832
CWE-000 static int alt_fpga_bridge_probe ( struct platform_device * pdev ) { struct device * dev = & pdev -> dev ; struct alt_fpga2sdram_data * priv ; u32 enable ; struct regmap * sysmgr ; int ret = 0 ; priv = devm_kzalloc ( dev , sizeof ( * priv ) , GFP_KERNEL ) ; if ( ! priv ) return - ENOMEM ; priv -> dev = dev ; pr...
<S2SV_ModStart> ( IS_ERR ( sysmgr <S2SV_ModEnd> ) ) {
1,833
CWE-000 conv_resp convert_cdb2cstring ( const void * value , int size , SQLSMALLINT c_data_type , SQLPOINTER target_ptr , SQLLEN target_len , SQLLEN * str_len ) { conv_resp resp = CONV_YEAH ; switch ( c_data_type ) { case SQL_C_CHAR : case SQL_C_DEFAULT : my_strncpy_out ( ( char * ) target_ptr , value , target_len ) ; ...
<S2SV_ModStart> ; } return resp <S2SV_ModEnd> ; } <S2SV_null>
1,834
CWE-000 static int dev_cpu_callback ( struct notifier_block * nfb , unsigned long action , void * ocpu ) { struct sk_buff * * list_skb ; struct sk_buff * skb ; unsigned int cpu , oldcpu = ( unsigned long ) ocpu ; struct softnet_data * sd , * oldsd ; if ( action != CPU_DEAD && action != CPU_DEAD_FROZEN ) return NOTIFY_O...
<S2SV_ModStart> output_queue ; } while <S2SV_ModEnd> ( ! list_empty <S2SV_ModStart> ) ) { struct napi_struct * napi = list_first_entry <S2SV_ModEnd> ( & oldsd <S2SV_ModStart> -> poll_list , struct napi_struct , <S2SV_ModEnd> poll_list ) ; <S2SV_ModStart> poll_list ) ; list_del_init ( & napi -> poll_list ) ; if ( napi -...
1,835
CWE-000 ngx_int_t ngx_rtmp_upstream_get_round_robin_peer ( ngx_peer_connection_t * pc , void * data ) { ngx_rtmp_upstream_rr_peer_data_t * rrp = data ; ngx_int_t rc ; ngx_uint_t i , n ; ngx_rtmp_upstream_rr_peer_t * peer ; ngx_rtmp_upstream_rr_peers_t * peers ; <S2SV_StartBug> ngx_log_debug1 ( NGX_LOG_DEBUG_HTTP , pc -...
<S2SV_ModStart> ; ngx_log_debug1 ( NGX_LOG_DEBUG_RTMP <S2SV_ModEnd> , pc -> <S2SV_ModStart> } ngx_log_debug2 ( NGX_LOG_DEBUG_RTMP <S2SV_ModEnd> , pc -> <S2SV_ModStart> { ngx_log_debug0 ( NGX_LOG_DEBUG_RTMP <S2SV_ModEnd> , pc ->
1,836
CWE-000 int main ( ) { <S2SV_StartBug> Byte * compr , * uncompr ; <S2SV_EndBug> uLong comprLen = 10000 * sizeof ( int ) ; uLong uncomprLen = comprLen ; compr = ( Byte * ) calloc ( ( uInt ) comprLen , 1 ) ; uncompr = ( Byte * ) calloc ( ( uInt ) uncomprLen , 1 ) ; volatile int ex ; test_deflate ( compr , comprLen ) ; fo...
<S2SV_ModStart> ( ) { check ( run_case2 ( ) ) ; check ( run_case3 ( ) ) ; check ( run_case4 ( ) ) ; check ( run_case5 ( ) ) ; check ( run_case6 ( ) ) ; check ( run_case7 ( ) ) ; check ( run_case8 ( ) ) ; check ( run_case9 ( ) <S2SV_ModEnd> ) ; } <S2SV_ModStart> ) ; } <S2SV_ModEnd> <S2SV_null> <S2SV_null> <S2SV_null>
1,837
CWE-000 SYMBOL * detemplate ( SYMBOL * sym , FUNCTIONCALL * args , TYPE * atp ) <S2SV_StartBug> { <S2SV_EndBug> if ( sym -> templateLevel ) { if ( atp || args ) { BOOLEAN linked = FALSE ; if ( sym -> parentNameSpace && ! sym -> parentNameSpace -> value . i ) { LIST * list ; SYMBOL * ns = sym -> parentNameSpace ; linked...
<S2SV_ModStart> atp ) { inDeduceArgs ++ ; <S2SV_ModStart> ; } } inDeduceArgs -- ;
1,838
CWE-000 void init_idt ( ) { idt_descriptor . limit = sizeof ( idt ) - 1 ; <S2SV_StartBug> idt_descriptor . base = ( uint32_t ) idt ; <S2SV_EndBug> uint16_t selector = KCODE_SELECTOR ; uint8_t type_attr = 0b10001110 ; uint8_t user_type_attr = 0b11101110 ; for ( int i = 0 ; i < 256 ; i ++ ) { if ( i < 32 ) { idt_set_gate...
<S2SV_ModStart> uint32_t ) idt <S2SV_ModEnd> ; for ( <S2SV_ModStart> , KCODE_SELECTOR , 0x8E <S2SV_ModEnd> , 0 ) <S2SV_ModStart> , KCODE_SELECTOR , 0xEE <S2SV_ModEnd> , 0 ) <S2SV_ModStart> , KCODE_SELECTOR , 0 <S2SV_ModEnd> , 0 )
1,839
CWE-000 main ( int argc , char * argv [ ] ) { if ( argc > 1 ) disk = argv [ 1 ] ; fd = open ( disk , O_RDONLY ) ; if ( fd < 0 ) { printf ( "open<S2SV_blank>%s<S2SV_blank>failed\\n" , disk ) ; exit ( 1 ) ; } inode ( ) ; printf ( "Before<S2SV_blank>get<S2SV_blank>line\\n" ) ; <S2SV_StartBug> getline ( name , 255 , stdin ...
<S2SV_ModStart> ; getline ( &
1,840
CWE-000 static int container_parse_envs ( struct hyper_exec * exec , char * json , jsmntok_t * toks ) { int i = 0 , j ; if ( toks [ i ] . type != JSMN_ARRAY ) { fprintf ( stdout , "encs<S2SV_blank>need<S2SV_blank>array\\n" ) ; return - 1 ; } exec -> envs = calloc ( toks [ i ] . size , sizeof ( * exec -> envs ) ) ; if (...
<S2SV_ModStart> } else { char * buf = json_token_str ( json , & toks [ i ] ) ; <S2SV_ModStart> , "get<S2SV_blank>unknown<S2SV_blank>section<S2SV_blank>%s<S2SV_blank>in<S2SV_blank>envs\\n" , buf ) ; free ( buf <S2SV_ModEnd> ) ; return
1,841
CWE-000 enum ice_status ice_get_link_status ( struct ice_port_info * pi , bool * link_up ) { struct ice_phy_info * phy_info ; enum ice_status status = 0 ; <S2SV_StartBug> if ( ! pi ) <S2SV_EndBug> return ICE_ERR_PARAM ; phy_info = & pi -> phy ; if ( phy_info -> get_link_info ) { status = ice_update_link_info ( pi ) ; i...
<S2SV_ModStart> ( ! pi || ! link_up
1,842
CWE-000 gboolean <S2SV_StartBug> mono_w32file_read ( gpointer handle , gpointer buffer , guint32 numbytes , guint32 * bytesread ) <S2SV_EndBug> { FileHandle * filehandle ; gboolean ret ; if ( ! mono_fdhandle_lookup_and_ref ( GPOINTER_TO_INT ( handle ) , ( MonoFDHandle * * ) & filehandle ) ) { mono_w32error_set_last ( E...
<S2SV_ModStart> guint32 * bytesread , gint32 * win32error ) { return mono_w32file_read_or_write ( TRUE , handle <S2SV_ModEnd> , buffer , <S2SV_ModStart> numbytes , bytesread , win32error ) <S2SV_ModEnd> ; } <S2SV_null>
1,843
CWE-000 int inicbufs ( VOID ) { int i , num = AC . cbufList . num ; CBUF * C = cbuf ; for ( i = 0 ; i < num ; i ++ , C ++ ) { if ( C -> Buffer == 0 ) break ; } if ( i >= num ) C = ( CBUF * ) FromList ( & AC . cbufList ) ; else num = i ; C -> BufferSize = 2000 ; <S2SV_StartBug> C -> Buffer = ( WORD * ) Malloc1 ( C -> Bu...
<S2SV_ModStart> WORD ) , "compiler<S2SV_blank>buffer-1" <S2SV_ModEnd> ) ; C <S2SV_ModStart> * ) , "compiler<S2SV_blank>buffer-2" <S2SV_ModEnd> ) ; C <S2SV_ModStart> ) ) , "compiler<S2SV_blank>buffer-3" <S2SV_ModEnd> ) ; C
1,844
CWE-000 VOID CalculateResourceAperture ( IN PCI_RESOURCE_NODE * Bridge ) { UINT64 Aperture [ 2 ] ; LIST_ENTRY * CurrentLink ; PCI_RESOURCE_NODE * Node ; if ( Bridge == NULL ) { return ; } if ( Bridge -> ResType == PciBarTypeIo16 ) { CalculateApertureIo16 ( Bridge ) ; return ; } Aperture [ PciResUsageTypical ] = 0 ; Ape...
<S2SV_ModStart> Length ; } Aperture [ PciResUsageTypical ] = ALIGN_VALUE ( Aperture [ PciResUsageTypical ] , Bridge -> Alignment + 1 ) ; Aperture [ PciResUsagePadding ] = ALIGN_VALUE ( Aperture [ PciResUsagePadding ] , Bridge -> Alignment + 1 ) ; Bridge -> Length = MAX ( Aperture [ PciResUsageTypical ] , Aperture [ Pci...
1,845
CWE-000 int qta_rmt_enqueue_policy ( struct rmt_ps * ps , struct rmt_n1_port * n1_port , struct pdu * pdu ) { struct qta_queue_set * qset ; struct q_qos * q ; int i ; qos_id_t qos_id ; const struct pci * pci ; struct q_entry * entry ; uint_t mlength ; uint_t mbacklog ; uint_t w ; if ( ! ps || ! n1_port || ! pdu ) { LOG...
<S2SV_ModStart> ( "Dropped<S2SV_blank>PDU:<S2SV_blank>th<S2SV_blank>exceeded<S2SV_blank>%u" , qset ->
1,846
CWE-000 int peer_local_as_unset ( struct peer * peer ) { struct peer_group * group ; struct listnode * node , * nnode ; if ( peer_group_active ( peer ) ) return BGP_ERR_INVALID_FOR_PEER_GROUP_MEMBER ; if ( ! peer -> change_local_as ) return 0 ; peer -> change_local_as = 0 ; UNSET_FLAG ( peer -> flags , PEER_FLAG_LOCAL_...
<S2SV_ModStart> { if ( BGP_IS_VALID_STATE_FOR_NOTIF ( <S2SV_ModStart> peer -> status ) <S2SV_ModEnd> ) { peer <S2SV_ModStart> ; if ( BGP_IS_VALID_STATE_FOR_NOTIF ( <S2SV_ModStart> peer -> status ) <S2SV_ModEnd> ) { peer
1,847
CWE-000 void SYS_Init ( void ) { SYS_UnlockReg ( ) ; CLK_EnableXtalRC ( CLK_PWRCTL_HXTEN_Msk ) ; CLK_WaitClockReady ( CLK_STATUS_HXTSTB_Msk ) ; CLK_SetHCLK ( CLK_CLKSEL0_HCLKSEL_HXT , CLK_CLKDIV0_HCLK ( 1 ) ) ; CLK -> PLLCTL |= CLK_PLLCTL_PD_Msk ; CLK -> PLLCTL = PLLCON_SETTING ; CLK_WaitClockReady ( CLK_STATUS_PLLSTB_...
<S2SV_ModStart> SYS -> GPG_MFPL |= <S2SV_ModEnd> SYS_GPG_MFPL_PG1MFP_UART0_RXD | SYS_GPG_MFPL_PG2MFP_UART0_TXD <S2SV_ModStart> SYS -> GPC_MFPL |= <S2SV_ModEnd> ( SYS -> <S2SV_ModStart> SYS -> GPE_MFPL |= <S2SV_ModEnd> ( SYS ->
1,848
CWE-000 static const char * selections_minus ( Vis * vis , const char * keys , const Arg * arg ) { <S2SV_StartBug> Text * txt = vis_text ( vis ) ; <S2SV_EndBug> View * view = vis_view ( vis ) ; enum VisMark mark = vis_mark_used ( vis ) ; Array a = view_selections_get_all ( view ) ; <S2SV_StartBug> Array b = vis_mark_ge...
<S2SV_ModStart> txt = vis_text ( vis ) ; Win * win = vis_window <S2SV_ModStart> = vis_mark_get ( win <S2SV_ModEnd> , mark )
1,849
CWE-000 int main ( int argc , char * * argv ) { if ( argc < 2 ) { exit ( EXIT_FAILURE ) ; } struct sigaction act ; act . sa_flags = SA_SIGINFO ; sigemptyset ( & act . sa_mask ) ; act . sa_sigaction = sigchld_handler ; sigaction ( SIGCHLD , & act , NULL ) ; char * cmd ; char * args [ argc ] ; loginfo_t * loginfo ; int p...
<S2SV_ModStart> args ) ; fprintf ( stdout , "Error:<S2SV_blank>command<S2SV_blank>not<S2SV_blank>found.\\n" ) ;
1,850
CWE-000 static void BattleAICmd_if_has_move ( void ) { s32 i ; const u16 * movePtr = ( u16 * ) ( gAIScriptPtr + 2 ) ; switch ( gAIScriptPtr [ 1 ] ) { case AI_USER : <S2SV_StartBug> for ( i = 0 ; i < 4 ; i ++ ) <S2SV_EndBug> { if ( gBattleMons [ sBattler_AI ] . moves [ i ] == * movePtr ) break ; } <S2SV_StartBug> if ( i...
<S2SV_ModStart> ; i < MAX_MON_MOVES <S2SV_ModEnd> ; i ++ <S2SV_ModStart> ( i == MAX_MON_MOVES <S2SV_ModEnd> ) gAIScriptPtr += <S2SV_ModStart> ; i < MAX_MON_MOVES <S2SV_ModEnd> ; i ++ <S2SV_ModStart> ( i == MAX_MON_MOVES ) gAIScriptPtr += 8 ; else gAIScriptPtr = T1_READ_PTR ( gAIScriptPtr + 4 ) <S2SV_ModEnd> ; break ; <...
1,851
CWE-000 void client_send_code ( struct Client * client , int code , const char * message ) { <S2SV_StartBug> char * buffer = client -> server_ptr -> buffer_control ; <S2SV_EndBug> size_t len = sprintf ( buffer , "%d<S2SV_blank>%s\\r\\n" , code , message ) ; if ( send ( client -> socket_control , buffer , len , 0 ) < 0 ...
<S2SV_ModStart> buffer = client <S2SV_ModEnd> -> buffer_control ;
1,852
CWE-000 void deleteProcess ( ROW * row , ROW * prevRow ) { if ( E . cx > 0 ) { deletechar ( E . cx + E . coloff , row ) ; } else if ( E . cy > 1 ) { prevRow -> chars = resizeString ( prevRow -> chars , prevRow -> length + row -> length - 1 ) ; memmove ( prevRow -> chars + prevRow -> length - 1 , row -> chars , row -> l...
<S2SV_ModStart> length ) ; if ( prevRow -> length - 1 > E . screen_cols ) E . coloff = prevRow -> length - E . screen_cols ; E . cx = prevRow -> length - E . coloff - 1 <S2SV_ModEnd> ; prevRow -> <S2SV_ModStart> 1 ) ; <S2SV_ModEnd> int i ;
1,853
CWE-000 static int decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) { FMVCContext * s = avctx -> priv_data ; GetByteContext * gb = & s -> gb ; PutByteContext * pb = & s -> pb ; AVFrame * frame = data ; int ret , y , x ; if ( ( ret = ff_get_buffer ( avctx , frame , 0 ) ) < 0 ) r...
<S2SV_ModStart> if ( offset >= <S2SV_ModEnd> s -> nb_blocks
1,854
CWE-000 static void ad_initialize_port ( struct port * port , int lacp_fast ) { static const struct port_params tmpl = { . system_priority = 0xffff , . key = 1 , . port_number = 1 , . port_priority = 0xff , . port_state = 1 , } ; static const struct lacpdu lacpdu = { . subtype = 0x01 , . version_number = 0x01 , . tlv_t...
<S2SV_ModStart> = 0xff ; eth_zero_addr ( <S2SV_ModStart> port -> actor_system . mac_addr_value ) <S2SV_ModEnd> ; port ->
1,855
CWE-000 unsigned int random_near_color ( unsigned int color , char dr_max , char db_max , char dg_max ) { unsigned char r = extract_red ( color ) ; unsigned char b = extract_blue ( color ) ; unsigned char g = extract_green ( color ) ; srandom ( ( unsigned int ) time ( NULL ) ) ; char dr = ( char ) ( random ( ) % ( 2 * ...
<S2SV_ModStart> ( r , b , g <S2SV_ModEnd> ) ; }
1,856
CWE-000 static int __curfile_reserve ( WT_CURSOR * cursor ) { WT_CURSOR_BTREE * cbt ; WT_DECL_RET ; WT_SESSION_IMPL * session ; cbt = ( WT_CURSOR_BTREE * ) cursor ; CURSOR_UPDATE_API_CALL_BTREE ( cursor , session , reserve , cbt -> btree ) ; WT_ERR ( __cursor_checkkey ( cursor ) ) ; WT_ERR ( __wt_txn_context_check ( se...
<S2SV_ModStart> ( session , F_ISSET ( cbt , WT_CBT_ACTIVE ) &&
1,857
CWE-000 static void Init ( TestSuite_t * suite ) { suite -> name = suiteName ; AddTestCase ( suite , GetSymTest00 , "GetSym<S2SV_blank>Test01" ) ; AddTestCase ( suite , GetSymTest01 , "GetSym<S2SV_blank>Test02" ) ; AddTestCase ( suite , GetSymTest_term , "only<S2SV_blank>term<S2SV_blank>name" ) ; AddTestCase ( suite , ...
<S2SV_ModStart> "GetSym<S2SV_blank>Test<S2SV_blank>[QueteErr02]" ) ; AddTestCase ( suite , GetAssingErr , "GetSym<S2SV_blank>Test<S2SV_blank>[Assign<S2SV_blank>Error]" ) ;
1,858
CWE-000 <S2SV_StartBug> void * fileMemoryMap ( char * tPath ) { <S2SV_EndBug> <S2SV_StartBug> return fs_mmap ( tPath ) ; <S2SV_EndBug> }
<S2SV_ModStart> * fileMemoryMap ( int tHandler <S2SV_ModEnd> ) { return <S2SV_ModStart> return fs_mmap ( tHandler <S2SV_ModEnd> ) ; }
1,859
CWE-000 static PyObject * led ( PyObject * self , PyObject * args ) { const Py_UNICODE * s ; const Py_UNICODE * t ; int ss ; int st ; int match = 1 ; int mismatch = - 1 ; <S2SV_StartBug> int gap = - 1 ; <S2SV_EndBug> int result = 0 ; <S2SV_StartBug> if ( ! PyArg_ParseTuple ( args , "u#u#|iii" , & s , & ss , & t , & st ...
<S2SV_ModStart> 1 ; int insert = - 1 ; int delete <S2SV_ModEnd> = - 1 <S2SV_ModStart> ( args , "u#u#|iiii" <S2SV_ModEnd> , & s <S2SV_ModStart> mismatch , & insert , & delete <S2SV_ModEnd> ) ) { <S2SV_ModStart> <= mismatch && ( match >= insert || match >= delete ) ) || ( <S2SV_ModEnd> ( match <= <S2SV_ModStart> ( match ...
1,860
CWE-000 struct request * blk_mq_alloc_request_hctx ( struct request_queue * q , unsigned int op , blk_mq_req_flags_t flags , unsigned int hctx_idx ) { struct blk_mq_alloc_data alloc_data = { . flags = flags } ; struct request * rq ; unsigned int cpu ; int ret ; if ( WARN_ON_ONCE ( ! ( flags & BLK_MQ_REQ_NOWAIT ) ) ) re...
<S2SV_ModStart> } cpu = cpumask_first <S2SV_ModEnd> ( alloc_data . <S2SV_ModStart> hctx -> cpumask <S2SV_ModEnd> ) ; alloc_data
1,861
CWE-000 static void draw_running ( ) { { time_t cached_duration = ifinfo . duration ; int seconds = cached_duration % 60 ; int minutes = ( cached_duration / 60 ) % 60 ; int hours = cached_duration / 60 / 60 ; <S2SV_StartBug> printf ( "%d:%02d:%02d\\n" , hours , minutes , seconds ) ; <S2SV_EndBug> } { int i ; <S2SV_Star...
<S2SV_ModStart> / 60 ; printw <S2SV_ModEnd> ( "%d:%02d:%02d\\n" , <S2SV_ModStart> < window_height - 5 <S2SV_ModEnd> && i < <S2SV_ModStart> ] ) ; printw ( "\\n" <S2SV_ModEnd> ) ; } <S2SV_ModStart> < window_height - 4 <S2SV_ModEnd> ) { for <S2SV_ModStart> < window_height - 4 <S2SV_ModEnd> ; i ++ <S2SV_ModStart> i ++ ) pr...
1,862
CWE-000 static void _gsb_data_import_rule_free ( ImportRule * import_rule ) { if ( ! import_rule ) return ; if ( import_rule -> charmap ) g_free ( import_rule -> charmap ) ; if ( import_rule -> last_file_name ) g_free ( import_rule -> last_file_name ) ; if ( import_rule -> rule_name ) g_free ( import_rule -> rule_name ...
<S2SV_ModStart> ( import_rule -> csv_fields_str ) g_free ( import_rule -> csv_fields_str ) ; if ( import_rule ->
1,863
CWE-000 int B_echo ( int argc , char * argv [ ] , Shbltin_t * context ) { static char bsd_univ ; struct print prdata ; prdata . options = sh_optecho + 5 ; prdata . raw = prdata . echon = 0 ; prdata . sh = context -> shp ; UNUSED ( argc ) ; if ( ! prdata . sh -> universe ) { char * universe ; universe = astconf ( "UNIVE...
<S2SV_ModStart> = 1 ; <S2SV_ModEnd> else if ( <S2SV_ModStart> 1 ; } <S2SV_ModEnd> else { break
1,864
CWE-000 w_root_t * resolve_root_or_err ( struct watchman_client * client , json_t * args , int root_index , bool create ) { w_root_t * root ; const char * root_name ; char * errmsg = NULL ; json_t * ele ; ele = json_array_get ( args , root_index ) ; if ( ! ele ) { send_error_response ( client , "wrong<S2SV_blank>number...
<S2SV_ModStart> } else { if ( ! client -> client_is_owner ) { create = false ; } <S2SV_ModStart> root ) { if ( ! client -> client_is_owner ) { send_error_response ( client , "unable<S2SV_blank>to<S2SV_blank>resolve<S2SV_blank>root<S2SV_blank>%s:<S2SV_blank>%s<S2SV_blank>(this<S2SV_blank>may<S2SV_blank>be<S2SV_blank>" "...
1,865
CWE-000 static int put_v4l2_window32 ( struct v4l2_window __user * kp , struct v4l2_window32 __user * up ) { <S2SV_StartBug> struct v4l2_clip __user * kclips = kp -> clips ; <S2SV_EndBug> struct v4l2_clip32 __user * uclips ; compat_caddr_t p ; u32 clipcount ; if ( copy_in_user ( & up -> w , & kp -> w , sizeof ( kp -> w...
<S2SV_ModStart> __user * kclips <S2SV_ModEnd> ; struct v4l2_clip32 <S2SV_ModStart> ( get_user ( kclips , & kp -> clips ) ) return - EFAULT ; if ( get_user (
1,866
CWE-000 int print_elements_print ( DB * * dbp , DB_ENV * * envp , FILE * fp , FILE * fpcumul ) { int ret , init = 1 , final = 10 , max = 0 ; int dups_len = 50 ; <S2SV_StartBug> unsigned long long int * dups = calloc ( dups_len , sizeof ( unsigned long long int ) ) ; <S2SV_EndBug> memset ( dups , 0 , sizeof ( unsigned l...
<S2SV_ModStart> long int ) <S2SV_ModEnd> ) ; DBT <S2SV_ModStart> -> cont ) ; dups [ 0 ] = ( unsigned long long int ) ( ( struct hash_value * ) data . data ) -> cont <S2SV_ModStart> ) { } free ( dups <S2SV_ModEnd> ) ; return
1,867
CWE-000 <S2SV_StartBug> void read_file ( char * filename ) <S2SV_EndBug> { <S2SV_StartBug> char * buffer ; <S2SV_EndBug> char * line ; <S2SV_StartBug> size_t i ; <S2SV_EndBug> stack_t * * stack ; int line_count = 1 ; instruct_func s ; int check ; int read ; FILE * file = fopen ( filename , "r" ) ; if ( file == NULL ) {...
<S2SV_ModStart> char * filename , stack_t * * stack <S2SV_ModStart> char * buffer = NULL <S2SV_ModStart> ; size_t i = 0 <S2SV_ModEnd> ; int line_count <S2SV_ModStart> 1 ) { <S2SV_ModEnd> line = parse_line
1,868
CWE-000 static int lpL_tmpdir ( lua_State * L ) { struct stat buf ; const char * prefix = luaL_optstring ( L , 1 , "lua_" ) ; const char * s = "/tmp/" , * dir ; srand ( ( int ) ( ptrdiff_t ) & L ) ; do { int magic = ( ( unsigned ) rand ( ) << 16 | rand ( ) ) % LP_MAX_TMPNUM ; lua_settop ( L , 2 ) ; <S2SV_StartBug> lua_...
<S2SV_ModStart> ( L , "%s%s%d/" <S2SV_ModEnd> , s ,
1,869
CWE-000 static int connect_un_socket ( int fd , const char * path ) { struct sockaddr_un addr = { . sun_family = AF_UNIX } ; strncpy ( addr . sun_path , path , sizeof ( addr . sun_path ) - 1 ) ; if ( connect ( fd , ( struct sockaddr * ) & addr , sizeof ( addr ) ) == - 1 ) { <S2SV_StartBug> pk_log_anno ( LOG_ERR , "conn...
<S2SV_ModStart> 1 ) { PK_LOG_ANNO <S2SV_ModEnd> ( LOG_ERR ,
1,870
CWE-000 int func_live ( t_env * env , t_process * current ) { unsigned int id ; int i ; i = 0 ; id = get_data_dir ( env , M ( ( current -> pc + 1 ) ) , 4 ) ; current -> live ++ ; env -> nb_lives += 1 ; while ( i < env -> nb_players ) { if ( env -> player [ i ] . nb == ( int ) id ) { env -> player [ i ] . live ++ ; env ...
<S2SV_ModStart> = i ; if ( ! env -> visu ) { ft_printf ( "Un<S2SV_blank>processus<S2SV_blank>dit<S2SV_blank>que<S2SV_blank>le<S2SV_blank>joueur<S2SV_blank>%d(%s)" <S2SV_ModEnd> , env -> <S2SV_ModStart> prog_name ) ; ft_printf ( "<S2SV_blank>est<S2SV_blank>en<S2SV_blank>vie\\n" ) ; }
1,871
CWE-000 void respawnpid ( pid_t pid ) { if ( disable ) { return ; } struct respawn_node * node ; if ( ( node = get ( pid ) ) != NULL ) { pid_t newpid = runapp ( node ) ; <S2SV_StartBug> if ( unlikely ( newpid <= 0 ) ) { <S2SV_EndBug> ueld_print ( "Respwan<S2SV_blank>process<S2SV_blank>\'%s\'<S2SV_blank>failed,<S2SV_bla...
<S2SV_ModStart> unlikely ( newpid == <S2SV_ModEnd> 0 ) ) <S2SV_ModStart> cmd ) ; delete_node_without_index ( node <S2SV_ModEnd> ) ; } <S2SV_ModStart> node ) ; delete_node_without_index ( node <S2SV_ModEnd> ) ; node
1,872
CWE-000 void keyboard_task ( void ) { static matrix_row_t matrix_prev [ MATRIX_ROWS ] ; # ifdef MATRIX_HAS_GHOST # endif static uint8_t led_status = 0 ; matrix_row_t matrix_row = 0 ; matrix_row_t matrix_change = 0 ; # ifdef QMK_KEYS_PER_SCAN uint8_t keys_processed = 0 ; # endif matrix_scan ( ) ; if ( is_keyboard_master...
<S2SV_ModStart> ; # endif # ifdef MIDI_ENABLE midi_task ( ) ; # endif
1,873
CWE-000 void final_cost_hashjoin ( PlannerInfo * root , HashPath * path , JoinCostWorkspace * workspace , JoinPathExtraData * extra ) { Path * outer_path = path -> jpath . outerjoinpath ; Path * inner_path = path -> jpath . innerjoinpath ; double outer_path_rows = outer_path -> rows ; double inner_path_rows = inner_pat...
<S2SV_ModStart> . jointype == JOIN_ANTI ) <S2SV_ModEnd> hashjointuples = outer_path_rows <S2SV_ModStart> - outer_matched_rows ; else hashjointuples = outer_matched_rows ;
1,874
CWE-000 void net_link_free ( net_link_t link ) { net_schedule_t schedule = link -> m_local -> m_driver -> m_schedule ; assert ( link -> m_local -> m_link == link ) ; link -> m_local -> m_link = NULL ; if ( link -> m_local_is_tie ) { if ( net_endpoint_set_state ( link -> m_local , net_endpoint_state_disable ) != 0 ) { <...
<S2SV_ModStart> ( link -> m_local <S2SV_ModEnd> , net_endpoint_state_deleting )
1,875
CWE-000 int sfs_read ( const char * path , char * buf , size_t size , off_t offset , struct fuse_file_info * fi ) { int retstat = 0 ; log_msg ( "\\nsfs_read(path=\\"%s\\",<S2SV_blank>buf=0x%08x,<S2SV_blank>size=%d,<S2SV_blank>offset=%lld,<S2SV_blank>fi=0x%08x)\\n" , path , buf , size , offset , fi ) ; <S2SV_StartBug> i...
<S2SV_ModStart> u = 1 ; int amountRead = 0 <S2SV_ModStart> = firstBlock ; <S2SV_ModEnd> for ( i <S2SV_ModStart> } } } } return amountRead <S2SV_ModEnd> ; } <S2SV_null>
1,876
CWE-000 static gboolean concat_entries ( FILE * src_stream , FILE * dest_stream , RpmOstreePasswdMigrateKind kind , GHashTable * seen_names , GError * * error ) { gboolean ret = FALSE ; errno = 0 ; while ( TRUE ) { struct passwd * pw = NULL ; struct group * gr = NULL ; int r ; const char * name ; if ( kind == RPM_OSTRE...
<S2SV_ModStart> ENOENT ) { glnx_set_prefix_error_from_errno <S2SV_ModEnd> ( error , <S2SV_ModStart> ( error , "%s" , "fgetpwent" <S2SV_ModEnd> ) ; goto <S2SV_ModStart> 1 ) { glnx_set_prefix_error_from_errno <S2SV_ModEnd> ( error , <S2SV_ModStart> ( error , "%s" , "putpwent" <S2SV_ModEnd> ) ; goto
1,877
CWE-000 void printBoard ( pid_t pid , Board b ) { <S2SV_StartBug> for ( int i = 0 ; i < b . _y ; ++ i ) { <S2SV_EndBug> printf ( "PID<S2SV_blank>%d:<S2SV_blank><S2SV_blank><S2SV_blank>%s\\n" , pid , b . _grid [ i ] ) ; } }
<S2SV_ModStart> < b . _cols <S2SV_ModEnd> ; ++ i
1,878
CWE-000 static int cx25821_dev_setup ( struct cx25821_dev * dev ) { static unsigned int cx25821_devcount ; int i ; mutex_init ( & dev -> lock ) ; dev -> nr = ++ cx25821_devcount ; sprintf ( dev -> name , "cx25821[%d]" , dev -> nr ) ; <S2SV_StartBug> if ( dev -> pci -> device != 0x8210 ) { <S2SV_EndBug> pr_info ( "%s():...
<S2SV_ModStart> ( dev -> nr >= ARRAY_SIZE ( card ) ) { CX25821_INFO ( "dev->nr<S2SV_blank>>=<S2SV_blank>%zd" , ARRAY_SIZE ( card ) ) ; return - ENODEV ; } if ( dev -> <S2SV_ModStart> ] ; } <S2SV_ModEnd> dev -> board
1,879
CWE-000 LogicalDecodingContext * CreateInitDecodingContext ( char * plugin , List * output_plugin_options , bool need_full_snapshot , XLogPageReadCB read_page , LogicalOutputPluginWriterPrepareWrite prepare_write , LogicalOutputPluginWriterWrite do_write , LogicalOutputPluginWriterUpdateProgress update_progress ) { Tra...
<S2SV_ModStart> need_full_snapshot ) ; SpinLockAcquire ( & slot -> mutex ) ; <S2SV_ModStart> effective_xmin = xmin_horizon ; SpinLockRelease ( & slot -> mutex )
1,880
CWE-000 int work_pool_shutdown ( struct work_pool * pool ) { <S2SV_StartBug> struct timespec ts = { <S2SV_EndBug> <S2SV_StartBug> . tv_sec = 5 , <S2SV_EndBug> . tv_nsec = 0 , } ; pool -> params . thrd_max = pool -> params . thrd_min = 0 ; <S2SV_StartBug> pthread_mutex_lock ( & pool -> pqh . qmutex ) ; <S2SV_EndBug> <S2...
<S2SV_ModStart> ) { struct work_pool_thread * wpt ; struct <S2SV_ModStart> . tv_sec = 1 <S2SV_ModEnd> , . tv_nsec <S2SV_ModStart> = 0 ; while ( pool -> n_threads > 0 ) { __warnx ( TIRPC_DEBUG_FLAG_WORKER , "%s()<S2SV_blank>%s<S2SV_blank>%" PRIu32 , __func__ , pool -> name , pool -> n_threads ) ; <S2SV_ModStart> qmutex ...
1,881
CWE-000 void symbolic_constant_print ( const struct symbol_table * tbl , const struct expr * expr , bool quotes ) { unsigned int len = div_round_up ( expr -> len , BITS_PER_BYTE ) ; const struct symbolic_constant * s ; uint64_t val = 0 ; assert ( expr -> len / BITS_PER_BYTE <= sizeof ( val ) ) ; mpz_export_data ( const...
<S2SV_ModStart> ) printf ( "\\"" ) ; if ( numeric_output > NUMERIC_ALL ) printf ( "%lu" , val <S2SV_ModEnd> ) ; else <S2SV_ModStart> identifier ) ; if ( quotes ) printf ( "\\"" ) ;
1,882
CWE-000 <S2SV_StartBug> unsigned short getPortFromUri ( const char * uri ) { <S2SV_EndBug> <S2SV_StartBug> unsigned short port ; <S2SV_EndBug> <S2SV_StartBug> if ( sscanf ( uri , "http://localhost:%hu" , & port ) != 1 ) { <S2SV_EndBug> <S2SV_StartBug> if ( sscanf ( uri , "http://localhost:%hu/" , & port ) != 1 ) { <S2S...
<S2SV_ModStart> <S2SV_null> <S2SV_null> unsigned int <S2SV_ModEnd> getPortFromUri ( const <S2SV_ModStart> ) { unsigned int <S2SV_ModEnd> port ; if <S2SV_ModStart> ( uri , "http://localhost:%du" <S2SV_ModEnd> , & port <S2SV_ModStart> ( uri , "http://localhost:%du/" <S2SV_ModEnd> , & port
1,883
CWE-000 <S2SV_StartBug> u64 kallsyms__get_function_start ( const char * kallsyms_filename , <S2SV_EndBug> <S2SV_StartBug> const char * symbol_name ) <S2SV_EndBug> { struct process_symbol_args args = { . name = symbol_name , } ; if ( kallsyms__parse ( kallsyms_filename , & args , find_symbol_cb ) <= 0 ) <S2SV_StartBug> ...
<S2SV_ModStart> <S2SV_null> <S2SV_null> <S2SV_null> int <S2SV_ModEnd> kallsyms__get_function_start ( const <S2SV_ModStart> char * symbol_name , u64 * addr <S2SV_ModStart> 0 ) return - 1 ; * addr = <S2SV_ModEnd> args . start <S2SV_ModStart> . start ; return 0 ;
1,884
CWE-000 int append_file_content ( int file_uid , char * append ) { int i , j , adresa , delka ; char * ret ; MFT_LIST * mft_itemy ; struct mft_fragment mftf ; FILE * fw ; ret = ( char * ) malloc ( CLUSTER_SIZE ) ; char * soucasny_obsah = get_file_content ( file_uid ) ; printf ( "Soucasny<S2SV_blank>obsah<S2SV_blank>sou...
<S2SV_ModStart> ; printf ( "Dokoncuji<S2SV_blank>editaci<S2SV_blank>clusteru<S2SV_blank>/%s/;<S2SV_blank>strlen=%d\\n" <S2SV_ModEnd> , ret ,
1,885
CWE-000 GString * process_query_command ( GString * command , gpointer user_data ) { GString * result = g_string_new ( "" ) ; gchar * * cmds = g_strsplit ( command -> str , "<S2SV_blank>" , 3 ) ; g_assert ( g_str_equal ( cmds [ CMD_STR ] , "QUERY" ) ) ; _dispatch_query ( _command_str_to_id ( cmds [ QUERY_CMD_STR ] ) , ...
<S2SV_ModStart> cmds ) ; if ( result -> len == 0 ) g_string_assign ( result , "\\n" ) ;
1,886
CWE-000 <S2SV_StartBug> PHP_METHOD ( FastDFS , storage_set_metadata1 ) <S2SV_EndBug> { zval * object = getThis ( ) ; php_fdfs_t * i_obj ; i_obj = ( php_fdfs_t * ) fdfs_get_object ( object ) ; <S2SV_StartBug> php_fdfs_storage_set_metadata_impl ( INTERNAL_FUNCTION_PARAM_PASSTHRU , & ( i_obj -> context ) , true ) ; <S2SV_...
<S2SV_ModStart> ( FastDFS , storage_get_metadata <S2SV_ModEnd> ) { zval <S2SV_ModStart> object ) ; php_fdfs_storage_get_metadata_impl <S2SV_ModEnd> ( INTERNAL_FUNCTION_PARAM_PASSTHRU , <S2SV_ModStart> context ) , false <S2SV_ModEnd> ) ; }
1,887
CWE-000 static void loadSingleFace ( int i , MugenDefScript * tScript ) { char name [ 1024 ] ; Face * face = & gData . mFaces [ i ] ; Position basePosition ; sprintf ( name , "p%d.pos" , i + 1 ) ; basePosition = getMugenDefVectorOrDefault ( tScript , "Face" , name , makePosition ( 0 , 0 , 0 ) ) ; <S2SV_StartBug> basePo...
<S2SV_ModStart> . z = UI_BASE_Z <S2SV_ModEnd> ; DreamPlayer *
1,888
CWE-000 static void tcg_target_qemu_prologue ( TCGContext * s ) { int i ; # ifdef _CALL_AIX void * * desc = ( void * * ) s -> code_ptr ; desc [ 0 ] = desc + 2 ; desc [ 1 ] = 0 ; s -> code_ptr = ( void * ) ( desc + 2 ) ; # endif tcg_set_frame ( s , TCG_REG_CALL_STACK , REG_SAVE_BOT - CPU_TEMP_BUF_SIZE , CPU_TEMP_BUF_SIZ...
<S2SV_ModStart> code_ptr ; } tcg_debug_assert <S2SV_ModEnd> ( tb_ret_addr ==
1,889
CWE-000 static int osmo_stream_cli_write ( struct osmo_stream_cli * cli ) { # ifdef HAVE_LIBSCTP struct sctp_sndrcvinfo sinfo ; # endif struct msgb * msg ; struct llist_head * lh ; int ret ; LOGP ( DLINP , LOGL_DEBUG , "sending<S2SV_blank>data\\n" ) ; if ( llist_empty ( & cli -> tx_queue ) ) { cli -> ofd . when &= ~ BS...
<S2SV_ModStart> . sinfo_ppid = htonl <S2SV_ModEnd> ( msgb_sctp_ppid (
1,890
CWE-000 static void if_tag_stat_update ( const char * ifname , uid_t uid , const struct sock * sk , enum ifs_tx_rx direction , int proto , int bytes ) { struct tag_stat * tag_stat_entry ; tag_t tag , acct_tag ; tag_t uid_tag ; struct data_counters * uid_tag_counters ; struct sock_tag * sock_tag_entry ; struct iface_sta...
<S2SV_ModStart> { pr_err_ratelimited ( "qtaguid:<S2SV_blank>tag_stat:<S2SV_blank>stat_update()<S2SV_blank>" <S2SV_ModEnd> "%s<S2SV_blank>not<S2SV_blank>found\\n" , ifname <S2SV_ModStart> } MT_DEBUG ( "qtaguid:<S2SV_blank>tag_stat:<S2SV_blank>stat_update()<S2SV_blank>dev=%s<S2SV_blank>entry=%p\\n" <S2SV_ModEnd> , ifname...
1,891
CWE-000 void radeon_crtc_handle_vblank ( struct radeon_device * rdev , int crtc_id ) { struct radeon_crtc * radeon_crtc = rdev -> mode_info . crtcs [ crtc_id ] ; u32 update_pending ; int vpos , hpos ; if ( radeon_crtc == NULL ) return ; if ( ( radeon_use_pflipirq == 2 ) && ASIC_IS_DCE4 ( rdev ) ) return ; lockmgr ( & r...
<S2SV_ModStart> -> ddev , crtc_id , USE_REAL_VBLANKSTART <S2SV_ModEnd> , & vpos
1,892
CWE-000 PHP_INI_MH ( OnUpdate_stackdriver_debugger_whitelisted_functions ) { <S2SV_StartBug> if ( new_value ) { <S2SV_EndBug> char * key = NULL , * last = NULL ; HashTable * ht = user_whitelisted_functions ; char * tmp = estrndup ( ZSTR_VAL ( new_value ) , ZSTR_LEN ( new_value ) ) ; if ( user_whitelisted_functions == N...
<S2SV_ModStart> OnUpdate_stackdriver_debugger_whitelisted_functions ) { <S2SV_ModEnd> return SUCCESS ;
1,893
CWE-000 PROCESS_THREAD ( app_proc_post , ev , data ) { PROCESS_BEGIN ( ) ; static uint8_t node_info_sent = 0 ; adc_init ( ) ; REFCTL0 &= ~ REFON ; lwb_start ( & app_proc_pre , & app_proc_post ) ; process_start ( & app_proc_pre , NULL ) ; if ( ! nvcfg_load ( ( uint8_t * ) & cfg ) ) { DEBUG_PRINT_MSG_NOW ( "WARNING:<S2SV...
<S2SV_ModStart> ; } # <S2SV_ModEnd> endif if (
1,894
CWE-000 void OTA__init ( void ) { uC__nvsInitStorage ( "otaSwVersion" , & nvsHandle_otaSwVersion ) ; <S2SV_StartBug> if ( uC__nvsReadByte ( "otaSwVersion" , nvsHandle_otaSwVersion , & otaSwVersion_NVS ) == TRUE ) <S2SV_EndBug> { ota_config . current_software_version = otaSwVersion_NVS ; } else { OTA__setCurrentSwVersio...
<S2SV_ModStart> nvsHandle_otaSwVersion ) ; ota_config . current_software_version = <S2SV_ModEnd> uC__nvsReadByte ( "otaSwVersion" <S2SV_ModStart> & otaSwVersion_NVS ) ; <S2SV_ModEnd> ota_config . server_host_name
1,895
CWE-000 RTC_Error_e RTCEnableComparingReg ( NRF_RTC_Type * RTC , uint8_t registerNumber ) { switch ( registerNumber ) { case 0 : { <S2SV_StartBug> RTC -> EVTENSET |= RTC_EVTENSET_COMPARE0_Enabled << RTC_EVTENSET_COMPARE0_Pos ; <S2SV_EndBug> <S2SV_StartBug> RTC -> INTENSET |= RTC_INTENSET_COMPARE0_Enabled << RTC_INTENSE...
<S2SV_ModStart> RTC -> EVTENSET = <S2SV_ModEnd> RTC_EVTENSET_COMPARE0_Enabled << RTC_EVTENSET_COMPARE0_Pos <S2SV_ModStart> RTC -> INTENSET = <S2SV_ModEnd> RTC_INTENSET_COMPARE0_Enabled << RTC_INTENSET_COMPARE0_Pos <S2SV_ModStart> RTC -> EVTENSET = <S2SV_ModEnd> RTC_EVTENSET_COMPARE1_Enabled << RTC_EVTENSET_COMPARE1_Pos...
1,896
CWE-000 SQLITE_PRIVATE Btree * sqlite3DbNameToBtree ( sqlite3 * db , const char * zDbName ) { <S2SV_StartBug> int i ; <S2SV_EndBug> for ( i = 0 ; i < db -> nDb ; i ++ ) { <S2SV_StartBug> if ( db -> aDb [ i ] . pBt <S2SV_EndBug> && ( zDbName == 0 || sqlite3StrICmp ( zDbName , db -> aDb [ i ] . zName ) == 0 ) ) { return ...
<S2SV_ModStart> ) { int iDb = zDbName ? sqlite3FindDbName ( db , zDbName ) : 0 ; return iDb < 0 ? 0 : <S2SV_ModEnd> db -> aDb <S2SV_ModStart> -> aDb [ iDb <S2SV_ModEnd> ] . pBt <S2SV_ModStart> pBt ; } <S2SV_ModEnd> <S2SV_null> <S2SV_null> <S2SV_null>
1,897
CWE-000 static int ath10k_mac_tx ( struct ath10k * ar , struct ieee80211_vif * vif , enum ath10k_hw_txrx_mode txmode , enum ath10k_mac_tx_path txpath , <S2SV_StartBug> struct sk_buff * skb ) <S2SV_EndBug> { struct ieee80211_hw * hw = ar -> hw ; struct ieee80211_tx_info * info = IEEE80211_SKB_CB ( skb ) ; int ret ; if (...
<S2SV_ModStart> sk_buff * skb , bool noque_offchan <S2SV_ModStart> } if ( ( ! noque_offchan ) && <S2SV_ModStart> , ATH10K_DBG_MAC , "no-tx-frm-has-freq:<S2SV_blank>queued<S2SV_blank>offchannel<S2SV_blank>skb<S2SV_blank>%pK,<S2SV_blank>len:<S2SV_blank>%d\\n" , skb , skb -> len <S2SV_ModEnd> ) ; skb_queue_tail
1,898
CWE-000 static inline bool check_size_impl ( uint32_t oprsz , uint32_t lnsz ) <S2SV_StartBug> { <S2SV_EndBug> uint32_t lnct = oprsz / lnsz ; return lnct >= 1 && lnct <= MAX_UNROLL ; <S2SV_StartBug> } <S2SV_EndBug>
<S2SV_ModStart> uint32_t lnsz ) { if ( oprsz % lnsz == 0 ) <S2SV_ModStart> MAX_UNROLL ; } return false ; }
1,899
CWE-000 void dns_transaction_process_reply ( DnsTransaction * t , DnsPacket * p ) { usec_t ts ; int r ; assert ( t ) ; assert ( p ) ; assert ( t -> scope ) ; assert ( t -> scope -> manager ) ; if ( t -> state != DNS_TRANSACTION_PENDING ) return ; log_debug ( "Processing<S2SV_blank>incoming<S2SV_blank>packet<S2SV_blank>...
<S2SV_ModStart> -> current_feature_level , <S2SV_ModEnd> p -> size