Unnamed: 0
int64
0
535k
source
stringlengths
50
89.8k
target
stringlengths
23
37.7k
4,600
CWE-000 static void i440fx_write ( int func , int addr , uint8_t val , void * priv ) { if ( func ) return ; if ( ( addr >= 0x10 ) && ( addr < 0x4f ) ) return ; switch ( addr ) { case 0x00 : case 0x01 : case 0x02 : case 0x03 : case 0x08 : case 0x09 : case 0x0a : case 0x0b : case 0x0c : case 0x0e : return ; case 0x04 : v...
<S2SV_ModStart> ; break ; case 0x72 : if ( ( card_i440fx [ 0x72 ] ^ val ) & 0x48 ) i440fx_map ( 0xa0000 , 0x20000 , ( ( val & 0x48 ) == 0x48 ) ? 3 : 0 ) ; break ;
4,601
CWE-000 void userinit ( void ) { struct proc * p ; extern char _binary_initcode_start [ ] , _binary_initcode_size [ ] ; p = allocproc ( ) ; initproc = p ; if ( ( p -> pgdir = setupkvm ( ) ) == 0 ) panic ( "userinit:<S2SV_blank>out<S2SV_blank>of<S2SV_blank>memory?" ) ; inituvm ( p -> pgdir , _binary_initcode_start , ( i...
<S2SV_ModStart> = RUNNABLE ; # ifdef FRR <S2SV_ModEnd> insert ( p <S2SV_ModStart> p ) ; # endif
4,602
CWE-000 <S2SV_StartBug> static uint16_t circ_remove ( circbuf_t * buf ) { <S2SV_EndBug> if ( buf -> start == buf -> end ) return CIRC_EOF ; uint8_t c = buf -> data [ buf -> start ] ; buf -> start ++ ; if ( buf -> start == buf -> capacity ) { buf -> start = 0 ; } return c ; }
<S2SV_ModStart> uint16_t circ_remove ( volatile
4,603
CWE-000 void ftpserver_main_loop ( void ) { int serverSocket = 0 ; int cmd = 0 ; bool network_down = false ; serverSocket = network_create_serversocket ( TCP_PORT ) ; if ( serverSocket >= 0 ) console_printf ( "Listening<S2SV_blank>on<S2SV_blank>port<S2SV_blank>%d" , TCP_PORT ) ; <S2SV_StartBug> while ( serverSocket >= ...
<S2SV_ModStart> TCP_PORT ) ; else { console_printf ( "Failed<S2SV_blank>to<S2SV_blank>create<S2SV_blank>server<S2SV_blank>socket<S2SV_blank>(%d),<S2SV_blank>terminating..." , serverSocket ) ; } <S2SV_ModStart> ftp_network_handler ( serverSocket ) ; if ( network_down ) console_printf ( "encountered<S2SV_blank>a<S2SV_bla...
4,604
CWE-000 int rmnet_set_link_ingress_data_format_tailspace ( rmnetctl_hndl_t * hndl , uint32_t ingress_flags , uint8_t tail_spacing , const char * dev_name , uint16_t * error_code ) { struct rmnet_nl_msg_s request , response ; int str_len = - 1 , return_code = RMNETCTL_LIB_ERR ; do { <S2SV_StartBug> if ( ( ! hndl ) || ( ...
<S2SV_ModStart> ( dev_name ) || ( ( ~ INGRESS_FLAGS_MASK ) & ingress_flags )
4,605
CWE-000 bool check_deps ( cell_t * c ) { <S2SV_StartBug> bool ret = true ; <S2SV_EndBug> if ( c && is_cell ( c ) ) { traverse ( c , { <S2SV_StartBug> if ( * p && ( * p ) -> expr . arg [ 0 ] != c ) { <S2SV_EndBug> printf ( "bad<S2SV_blank>dep<S2SV_blank>%d<S2SV_blank>-><S2SV_blank>%d,<S2SV_blank>should<S2SV_blank>be<S2S...
<S2SV_ModStart> ret = true ; c = clear_ptr ( c ) <S2SV_ModStart> c , { cell_t * x = clear_ptr <S2SV_ModEnd> ( * p <S2SV_ModStart> * p ) ; if ( x && x <S2SV_ModStart> int ) ( x <S2SV_ModEnd> - cells ) <S2SV_ModStart> int ) ( x <S2SV_ModEnd> -> expr .
4,606
CWE-000 void RB_RenderDrawSurfList ( drawSurf_t * drawSurfs , int numDrawSurfs ) { shader_t * shader , * oldShader ; int fogNum , oldFogNum ; int entityNum , oldEntityNum ; int frontFace ; int dlighted , oldDlighted ; qboolean depthRange , oldDepthRange ; int i ; drawSurf_t * drawSurf ; int oldSort ; double originalTim...
<S2SV_ModStart> oldSort ) { if ( * drawSurf -> surface < SF_NUM_SURFACE_TYPES ) { <S2SV_ModStart> surface ) ; } else { Com_Printf ( "^3Warning:<S2SV_blank>RB_RenderDrawSurfList<S2SV_blank>skipping<S2SV_blank>invalid<S2SV_blank>surface<S2SV_blank>[%i]<S2SV_blank>-<S2SV_blank>i<S2SV_blank>[%i]\\n" , * drawSurf -> surface...
4,607
CWE-000 int SemV ( int semaphore ) { USLOSS_Sysargs sysArg ; CHECKMODE ; sysArg . number = SYS_SEMV ; <S2SV_StartBug> sysArg . arg1 = ( void * ) semaphore ; <S2SV_EndBug> USLOSS_Syscall ( & sysArg ) ; <S2SV_StartBug> return ( int ) ( ( long ) sysArg . arg4 ) ; <S2SV_EndBug> }
<S2SV_ModStart> void * ) ( ( long ) semaphore ) <S2SV_ModEnd> ; USLOSS_Syscall ( <S2SV_ModStart> ; return ( <S2SV_ModEnd> long ) sysArg <S2SV_ModStart> sysArg . arg4 <S2SV_ModEnd> ; } <S2SV_null>
4,608
CWE-000 LogProtoServer * log_proto_multiline_server_new ( LogTransport * transport , const LogProtoMultiLineServerOptions * options ) { switch ( options -> mode ) { case MLM_INDENTED : return log_proto_indented_multiline_server_new ( transport , & options -> super ) ; case MLM_PREFIX_GARBAGE : return log_proto_prefix_g...
<S2SV_ModStart> super ) ; default : g_assert_not_reached ( ) ; break ;
4,609
CWE-000 int intel_huc_auth ( struct intel_huc * huc ) { struct drm_i915_private * i915 = huc_to_i915 ( huc ) ; struct intel_guc * guc = & i915 -> guc ; struct i915_vma * vma ; u32 status ; int ret ; if ( huc -> fw . load_status != INTEL_UC_FIRMWARE_SUCCESS ) return - ENOEXEC ; vma = i915_gem_object_ggtt_pin ( huc -> fw...
<S2SV_ModStart> , PIN_OFFSET_BIAS | i915 -> ggtt . pin_bias <S2SV_ModEnd> ) ; if
4,610
CWE-000 static gboolean handle_8021x_or_psk_auth_fail ( NMDeviceWifi * self , <S2SV_StartBug> guint32 new_state , <S2SV_EndBug> guint32 old_state , int disconnect_reason ) { NMDevice * device = NM_DEVICE ( self ) ; NMActRequest * req ; const char * setting_name = NULL ; gboolean handled = FALSE ; g_return_val_if_fail (...
<S2SV_ModStart> * self , NMSupplicantInterfaceState new_state , NMSupplicantInterfaceState <S2SV_ModEnd> old_state , int
4,611
CWE-000 void redirectInputFile ( char * cmd [ MAX_ARGS ] , char * fileName ) { int fd2 = stdinToFile ( fileName ) ; if ( fd2 == - 1 ) { return ; } checkCmd ( cmd ) ; stdinToNormal ( fd2 ) ; <S2SV_StartBug> addVar ( "EXITCODE" , "0" ) ; <S2SV_EndBug> }
<S2SV_ModStart> fd2 ) ; <S2SV_ModEnd> } <S2SV_null> <S2SV_null>
4,612
CWE-000 shape * shapeCreateSphere ( scalar r ) { sphere * ret = ( sphere * ) malloc ( sizeof ( sphere ) ) ; ret -> s . type = SHAPE_SPHERE ; <S2SV_StartBug> ret -> s . restitution = 0.5f ; <S2SV_EndBug> <S2SV_StartBug> ret -> s . friction = 0.4f ; <S2SV_EndBug> ret -> radius = r ; sphereMass ( ret , 1 ) ; return ( shap...
<S2SV_ModStart> . restitution = 0.6f <S2SV_ModEnd> ; ret -> <S2SV_ModStart> . friction = 0.1f <S2SV_ModEnd> ; ret ->
4,613
CWE-000 ParsingElement * Token_new ( const char * expr ) { TokenConfig * config = ( TokenConfig * ) malloc ( sizeof ( TokenConfig ) ) ; assert ( config != NULL ) ; ; ParsingElement * this = ParsingElement_new ( NULL ) ; this -> type = 'T' ; this -> recognize = Token_recognize ; this -> freeMatch = TokenMatch_free ; con...
<S2SV_ModStart> ) { ; } ; if ( this != NULL ) { <S2SV_ModEnd> ; } ; <S2SV_ModStart> ) { ; } ; if ( this != NULL ) { <S2SV_ModEnd> ; } ;
4,614
CWE-000 static int function_check_flow ( bytecode_t * code , word len , word numvars , byte * checktable , word index , word * max_index , word * max_string , word recur , word exception_var ) { int err = 0 ; word found = 0 ; byte block_empty = 1 ; word val1 ; word val2 ; word val3 ; if ( recur > MAX_RECUR ) { ERROR ( ...
<S2SV_ModStart> ) ; } if ( val3 >= ( 1 << PARAM_MAX ) ) { ERROR ( - ERROR_PARAM ) ; }
4,615
CWE-000 void sqlite3EndTable ( Parse * pParse , Token * pCons , Token * pEnd , Select * pSelect ) { Table * p ; sqlite3 * db = pParse -> db ; int iDb ; Index * pIdx ; if ( ( pEnd == 0 && pSelect == 0 ) || db -> mallocFailed ) { return ; } p = pParse -> pNewTable ; if ( p == 0 ) return ; assert ( ! db -> init . busy || ...
<S2SV_ModStart> ( db , "tbl_name=\'%q\'<S2SV_blank>AND<S2SV_blank>type!=\'trigger\'" <S2SV_ModEnd> , p ->
4,616
CWE-000 static gboolean gst_vaapi_window_wayland_render ( GstVaapiWindow * window , GstVaapiSurface * surface , const GstVaapiRectangle * src_rect , const GstVaapiRectangle * dst_rect , guint flags ) { GstVaapiWindowWaylandPrivate * const priv = GST_VAAPI_WINDOW_WAYLAND_GET_PRIVATE ( window ) ; GstVaapiDisplay * const ...
<S2SV_ModStart> ) ) { if ( priv -> need_vpp && window -> has_vpp ) gst_vaapi_video_pool_put_object ( window -> surface_pool , surface ) ;
4,617
CWE-000 static int cpufreq_stats_create_table ( struct cpufreq_policy * policy , <S2SV_StartBug> struct cpufreq_frequency_table * table , int count ) <S2SV_EndBug> { unsigned int i , j , ret = 0 ; struct cpufreq_stats * stat ; struct cpufreq_policy * data ; <S2SV_StartBug> unsigned int alloc_size ; <S2SV_EndBug> unsign...
<S2SV_ModStart> * policy , int cpu , <S2SV_ModStart> unsigned int alloc_size <S2SV_ModEnd> ; struct cpufreq_stats <S2SV_ModStart> & stats_attr_group ) <S2SV_ModEnd> ; stat ->
4,618
CWE-000 static boolean stw_st_framebuffer_validate ( struct st_context_iface * stctx , struct st_framebuffer_iface * stfb , const enum st_attachment_type * statts , unsigned count , struct pipe_resource * * out ) { struct stw_st_framebuffer * stwfb = stw_st_framebuffer ( stfb ) ; unsigned statt_mask , i ; statt_mask = ...
<S2SV_ModStart> i ++ ) <S2SV_ModEnd> pipe_resource_reference ( & <S2SV_ModStart> ] ) ; <S2SV_ModEnd> stw_framebuffer_unlock ( stwfb
4,619
CWE-000 static int mcp3021_probe ( struct i2c_client * client , const struct i2c_device_id * id ) { int err ; struct mcp3021_data * data = NULL ; if ( ! i2c_check_functionality ( client -> adapter , I2C_FUNC_I2C ) ) return - ENODEV ; data = devm_kzalloc ( & client -> dev , sizeof ( struct mcp3021_data ) , GFP_KERNEL ) ...
<S2SV_ModStart> = MCP3021_OUTPUT_RES ; <S2SV_ModEnd> break ; case <S2SV_ModStart> output_res = MCP3221_OUTPUT_RES <S2SV_ModEnd> ; break ;
4,620
CWE-000 static void blk_set_cmd_filter_defaults ( struct blk_cmd_filter * filter ) { __set_bit ( TEST_UNIT_READY , filter -> read_ok ) ; __set_bit ( REQUEST_SENSE , filter -> read_ok ) ; __set_bit ( READ_6 , filter -> read_ok ) ; __set_bit ( READ_10 , filter -> read_ok ) ; __set_bit ( READ_12 , filter -> read_ok ) ; __...
<S2SV_ModStart> ; __set_bit ( WRITE_SAME , filter -> write_ok ) ; __set_bit ( WRITE_SAME_16 , filter -> write_ok ) ; __set_bit ( WRITE_SAME_32 , filter -> write_ok ) ; __set_bit (
4,621
CWE-000 static int get_frame_info ( struct mips_frame_info * info ) { <S2SV_StartBug> # ifdef CONFIG_CPU_MICROMIPS <S2SV_EndBug> <S2SV_StartBug> union mips_instruction * ip = ( void * ) ( ( ( char * ) info -> func ) - 1 ) ; <S2SV_EndBug> # else union mips_instruction * ip = info -> func ; # endif unsigned max_insns = i...
<S2SV_ModStart> info ) { <S2SV_ModEnd> union mips_instruction * <S2SV_ModStart> mips_instruction * ip ; <S2SV_ModEnd> unsigned max_insns = <S2SV_ModStart> frame_size = 0 ; ip = ( void * ) msk_isa16_mode ( ( ulong ) info -> func )
4,622
CWE-000 int main ( int argc , char * argv [ ] ) { sc_MPI_Comm mpicomm ; PetscInitialize ( & argc , & argv , ( char * ) 0 , NULL ) ; mpicomm = PETSC_COMM_WORLD ; int proc_size ; int proc_rank ; MPI_Comm_size ( mpicomm , & proc_size ) ; MPI_Comm_rank ( mpicomm , & proc_rank ) ; p4est_init ( NULL , SC_LP_ERROR ) ; d4est_g...
<S2SV_ModStart> - 1 , 1 <S2SV_ModEnd> , 1 )
4,623
CWE-000 static int _ses_sg_paths_get ( char * err_msg , char * * * sg_paths , uint32_t * sg_count ) { int rc = LSM_ERR_OK ; uint32_t i = 0 ; DIR * dir = NULL ; struct dirent * dp = NULL ; lsm_string_list * sg_name_list = NULL ; const char * sg_name = NULL ; char * sysfs_sg_type_path = NULL ; char sg_dev_type [ _LINUX_S...
<S2SV_ModStart> ) * ( strlen <S2SV_ModEnd> ( _SYSFS_SG_ROOT_PATH ) <S2SV_ModStart> "/" ) + strlen <S2SV_ModEnd> ( sg_name )
4,624
CWE-000 static void arm_memio_stm ( arm_memio_t op ) { <S2SV_StartBug> arm_memio_mult ( op , ARM_MEMIO_STORE ) ; <S2SV_EndBug> }
<S2SV_ModStart> op ) { bool first = true ; uint8_t i ; for ( i = 0 ; i < 16 ; i ++ ) { if ( op . regs & ( 1 << i ) ) { arm_write_s ( op . addr , arm_r . r [ i ] ) ; if ( first ) { arm_r . r [ op . rn ] += op . disp ; first = false ; } op . addr += 4 ; } } <S2SV_ModEnd> } <S2SV_null> <S2SV_null>
4,625
CWE-000 static void btree_xlog_insert ( bool isleaf , bool ismeta , XLogReaderState * record ) { XLogRecPtr lsn = record -> EndRecPtr ; xl_btree_insert * xlrec = ( xl_btree_insert * ) XLogRecGetData ( record ) ; Buffer buffer , ulogbuf = InvalidBuffer ; Page page ; if ( ! isleaf ) _bt_clear_incomplete_split ( record , ...
<S2SV_ModStart> ; Assert ( ULogRecPtrEquals ( uba , <S2SV_ModEnd> xlrec -> uba <S2SV_ModStart> -> uba ) )
4,626
CWE-000 static void bbr_init ( struct sock * sk ) { struct tcp_sock * tp = tcp_sk ( sk ) ; struct bbr * bbr = inet_csk_ca ( sk ) ; bbr -> prior_cwnd = 0 ; tp -> snd_ssthresh = TCP_INFINITE_SSTHRESH ; bbr -> rtt_cnt = 0 ; bbr -> next_rtt_delivered = 0 ; bbr -> prev_ca_state = TCP_CA_Open ; bbr -> packet_conservation = 0...
<S2SV_ModStart> ; bbr -> <S2SV_ModEnd> round_start = 0
4,627
CWE-000 <S2SV_StartBug> void omsu_free_osu_data ( omsi_t * omsi_data , <S2SV_EndBug> const omsi_callback_free_memory freeMemory ) { omsi_unsigned_int i , j = 0 ; omsi_unsigned_int size ; real_var_attribute_t * attribute ; freeMemory ( ( omsi_string ) omsi_data -> model_data -> modelGUID ) ; size = omsi_data -> model_da...
<S2SV_ModStart> omsi_t * omsi_data ) { omsu_free_model_data <S2SV_ModEnd> ( omsi_data -> <S2SV_ModStart> omsi_data -> model_data ) ; omsu_free_sim_data <S2SV_ModEnd> ( omsi_data -> <S2SV_ModStart> omsi_data -> sim_data ) ; global_callback -> <S2SV_ModEnd> freeMemory ( ( <S2SV_ModStart> solver_name ) ; global_callback -...
4,628
CWE-000 <S2SV_StartBug> static int stripe_status ( struct dm_target * ti , <S2SV_EndBug> status_type_t type , char * result , unsigned int maxlen ) { struct stripe_c * sc = ( struct stripe_c * ) ti -> private ; char buffer [ sc -> stripes + 1 ] ; unsigned int sz = 0 ; unsigned int i ; switch ( type ) { case STATUSTYPE_...
<S2SV_ModStart> <S2SV_null> <S2SV_null> static void <S2SV_ModEnd> stripe_status ( struct <S2SV_ModStart> break ; } <S2SV_ModEnd> } <S2SV_null> <S2SV_null>
4,629
CWE-000 int mpu_memory_write ( struct inv_mpu_state * st , u8 mpu_addr , u16 mem_addr , u32 len , u8 const * data ) { u8 bank [ 2 ] ; u8 addr [ 2 ] ; u8 buf [ 513 ] ; struct i2c_msg msgs [ 3 ] ; int res ; if ( ! data || ! st ) return - EINVAL ; if ( len >= ( sizeof ( buf ) - 1 ) ) return - ENOMEM ; bank [ 0 ] = REG_BAN...
<S2SV_ModStart> ) ; # ifdef <S2SV_ModEnd> CONFIG_DYNAMIC_DEBUG { char
4,630
CWE-000 void playWeek ( int n , player_t * players , int size , team_t * teams ) { game_t * games ; int m = getGames ( & games ) ; game_t gameShouldPlay [ 8 ] ; int k = 0 ; for ( int i = 0 ; i < m ; i ++ ) { if ( games [ i ] . week == n ) { gameShouldPlay [ k ] . id = games [ i ] . id ; gameShouldPlay [ k ] . team1id =...
<S2SV_ModStart> } playGameCC ( & <S2SV_ModStart> 1 ] , &
4,631
CWE-000 static void test_hci_timeout ( void * * state ) { HCIAction action [ 1 ] ; <S2SV_StartBug> hci_override_now ( manager , 0.0 ) ; <S2SV_EndBug> hci_init ( manager , prefix , 10.0 , 1.0 ) ; <S2SV_StartBug> hci_override_now ( manager , 4.0 ) ; <S2SV_EndBug> hci_query ( manager , action ) ; assert_true ( manager -> ...
<S2SV_ModStart> ( manager , 1.0 <S2SV_ModEnd> ) ; hci_init <S2SV_ModStart> ( manager , 5.0 <S2SV_ModEnd> ) ; hci_query
4,632
CWE-000 <S2SV_StartBug> const char * gear_token_as_string ( const enum TokenType token_type ) <S2SV_EndBug> { switch ( token_type ) { case GEAR_TOKEN_LCURLYB : return "{" ; case GEAR_TOKEN_RCURLYB : return "}" ; case GEAR_TOKEN_LBRACE : return "[" ; case GEAR_TOKEN_RBRACE : return "]" ; case GEAR_TOKEN_LPAREN : return ...
<S2SV_ModStart> gear_token_as_string ( const gear_token_type <S2SV_ModEnd> token_type ) {
4,633
CWE-000 static PyObject * PyPhotonClient_reconstruct_object ( PyObject * self , PyObject * args ) { object_id object_id ; <S2SV_StartBug> if ( ! PyArg_ParseTuple ( args , "O&" , & PyObjectToUniqueID , & object_id ) ) { <S2SV_EndBug> return NULL ; } photon_reconstruct_object ( ( ( PyPhotonClient * ) self ) -> photon_con...
<S2SV_ModStart> , "O&" , PyStringToUniqueID <S2SV_ModEnd> , & object_id
4,634
CWE-000 int main ( int argc , char * * argv ) { char * path ; int c ; int fd ; int secsize ; uint64_t blksectors = 0 ; struct stat sb ; int verbose = 0 ; uint64_t offset = 0ul ; uint32_t length = DEF_REPORT_LEN ; static const struct option longopts [ ] = { <S2SV_StartBug> { "help" , 0 , 0 , 'h' } , <S2SV_EndBug> { "ver...
<S2SV_ModStart> { "help" , no_argument , NULL , 'h' } , { "version" , no_argument , NULL , 'V' } , { "zone" , required_argument , NULL , 'z' } , { "count" , required_argument , NULL , 'c' } , { "verbose" , no_argument , NULL , 'v' } , { NULL , 0 , NULL <S2SV_ModEnd> , 0 }
4,635
CWE-000 void PortE_Init ( ) { volatile unsigned long delay ; SYSCTL_RCGC2_R |= 0x10 ; delay = SYSCTL_RCGC2_R ; GPIO_PORTE_LOCK_R = 0x4C4F434B ; <S2SV_StartBug> GPIO_PORTE_CR_R = 0x1F ; <S2SV_EndBug> GPIO_PORTE_AMSEL_R = 0x00 ; GPIO_PORTE_PCTL_R = 0x00000000 ; <S2SV_StartBug> GPIO_PORTE_DIR_R = 0x0E ; <S2SV_EndBug> GPIO...
<S2SV_ModStart> ; GPIO_PORTE_CR_R = 0x5F <S2SV_ModEnd> ; GPIO_PORTE_PCTL_R = <S2SV_ModStart> ; GPIO_PORTE_DIR_R = 0x2E <S2SV_ModEnd> ; GPIO_PORTE_AFSEL_R = <S2SV_ModStart> ; GPIO_PORTE_DEN_R = 0x2F <S2SV_ModEnd> ; } <S2SV_null>
4,636
CWE-000 static void <S2SV_StartBug> print_intel_add_smart ( void * buf , uint32_t size __unused ) <S2SV_EndBug> { uint8_t * walker = buf ; uint8_t * end = walker + 150 ; const char * name ; uint64_t raw ; uint8_t normalized ; static struct kv_name kv [ ] = { { 0xab , "Program<S2SV_blank>Fail<S2SV_blank>Count" } , { 0xa...
<S2SV_ModStart> void print_intel_add_smart ( const struct nvme_controller_data * cdata __unused ,
4,637
CWE-000 int lua_git_branch_upstream ( lua_State * L ) { luagit2_reference * lua_ref ; const luagit2_reference * lua_branch_base = ( luagit2_reference * ) lua_touserdata ( L , 1 ) ; lua_ref = ( luagit2_reference * ) lua_newuserdata ( L , sizeof ( * lua_ref ) ) ; lua_ref -> reference = NULL ; luaL_newmetatable ( L , "lua...
<S2SV_ModStart> = local_ref ; <S2SV_ModEnd> return 1 ;
4,638
CWE-000 void debugPrintMemoryStack ( ) { <S2SV_StartBug> printMemoryListStack ( & gMemoryHandler . mMemoryStack ) ; <S2SV_EndBug> }
<S2SV_ModStart> ( ) { logError ( "Unimplemented." ) ; abortSystem ( <S2SV_ModEnd> ) ; }
4,639
CWE-000 void __watcher_handle_event ( struct inotify_event * event ) { pthread_mutex_lock ( & __event_handling_mutex ) ; __is_event_processing = 1 ; char path [ FILE_PATH_LENGTH ] ; if ( event -> len ) { if ( event -> name [ 0 ] != '.' ) { if ( event -> mask & IN_MODIFY ) { if ( ! ( event -> mask & IN_ISDIR ) ) { log_d...
<S2SV_ModStart> -> mask & <S2SV_ModEnd> IN_MOVED_TO ) {
4,640
CWE-000 continent_t * free_all_continents ( continent_t * continents , uint nb_continents ) { <S2SV_StartBug> for ( uint i = nb_continents ; i > 0 ; i -- ) { <S2SV_EndBug> free_continent ( & continents [ i ] ) ; } return NULL ; }
<S2SV_ModStart> uint i = 0 ; i < <S2SV_ModStart> nb_continents ; i ++ ) { fprintf ( stderr , "Free<S2SV_blank>-><S2SV_blank>%s<S2SV_blank>\\n" , continents [ i ] . name ) ; <S2SV_ModEnd> free_continent ( &
4,641
CWE-000 void visit_type_sizeList ( Visitor * v , const char * name , sizeList * * obj , Error * * errp ) { Error * err = NULL ; sizeList * tail ; size_t size = sizeof ( * * obj ) ; visit_start_list ( v , name , ( GenericList * * ) obj , size , & err ) ; if ( err ) { goto out ; } for ( tail = * obj ; tail ; tail = ( siz...
<S2SV_ModStart> v ) ; if ( err && visit_is_input ( v ) ) { qapi_free_sizeList ( * obj ) ; * obj = NULL ; }
4,642
CWE-000 int usbnet_stop ( struct net_device * net ) { struct usbnet * dev = netdev_priv ( net ) ; struct driver_info * info = dev -> driver_info ; <S2SV_StartBug> int retval ; <S2SV_EndBug> clear_bit ( EVENT_DEV_OPEN , & dev -> flags ) ; netif_stop_queue ( net ) ; netif_info ( dev , ifdown , dev -> net , "stop<S2SV_bla...
<S2SV_ModStart> ; int retval , pm <S2SV_ModStart> tx_errors ) ; pm = usb_autopm_get_interface ( dev -> intf ) ; <S2SV_ModStart> dev -> bh_w ) ; if ( ! pm ) usb_autopm_put_interface ( dev -> intf
4,643
CWE-000 BijiInfoSet * <S2SV_StartBug> biji_info_set_new ( ) <S2SV_EndBug> { BijiInfoSet * retval ; retval = g_slice_new0 ( BijiInfoSet ) ; retval -> url = NULL ; retval -> title = NULL ; retval -> content = NULL ; retval -> datasource_urn = NULL ; retval -> tracker_urn = NULL ; retval -> user_data = NULL ; return retva...
<S2SV_ModStart> * biji_info_set_new ( void
4,644
CWE-000 static void khttpd_file_location_get ( struct khttpd_location * location , struct khttpd_mbuf_json * output ) { char buf [ 64 ] ; struct sbuf sbuf ; struct khttpd_file_location_data * location_data ; KHTTPD_ENTRY ( "khttpd_file_location_get(%p)" , location ) ; mtx_lock ( & khttpd_file_lock ) ; KHTTPD_ENTRY ( "k...
<S2SV_ModStart> ( output , "fsPath" <S2SV_ModEnd> ) ; khttpd_mbuf_json_cstr
4,645
CWE-000 static bool maybe_suggest_missing_std_header ( location_t location , tree name ) { gcc_assert ( TREE_CODE ( name ) == IDENTIFIER_NODE ) ; const char * name_str = IDENTIFIER_POINTER ( name ) ; <S2SV_StartBug> const char * header_hint = get_std_name_hint ( name_str ) ; <S2SV_EndBug> if ( ! header_hint ) return fa...
<S2SV_ModStart> ) ; const std_name_hint <S2SV_ModEnd> * header_hint = <S2SV_ModStart> location ) ; if ( cxx_dialect >= header_hint -> min_dialect ) { const char * header = header_hint -> header ; <S2SV_ModStart> & richloc , header <S2SV_ModEnd> ) ; inform <S2SV_ModStart> , name_str , header , header ) ; } else { inform...
4,646
CWE-000 void CL_ParseBinding ( int key , qboolean down , unsigned time ) { char buf [ MAX_STRING_CHARS ] , * p = buf , * end ; qboolean allCommands , allowUpCmds ; if ( ( clc . state == CA_DISCONNECTED || * clc . downloadName ) && Key_GetCatcher ( ) == 0 ) return ; if ( ! keys [ key ] . binding || ! keys [ key ] . bind...
<S2SV_ModStart> allCommands = ( ( Key_GetCatcher ( ) & ~ KEYCATCH_RADIO <S2SV_ModEnd> ) == 0
4,647
CWE-000 void bus_selinux_deinit_global ( void ) { if ( ! is_selinux_enabled ( ) ) return ; <S2SV_StartBug> avc_destroy ( ) ; <S2SV_EndBug> <S2SV_StartBug> } <S2SV_EndBug>
<S2SV_ModStart> ) return ; if ( bus_selinux_avc_open ) { <S2SV_ModStart> ( ) ; bus_selinux_avc_open = false ; }
4,648
CWE-000 static int dev_close ( struct sr_dev_inst * sdi ) { struct dev_context * devc ; struct sr_usb_dev_inst * usb ; int ret ; devc = sdi -> priv ; usb = sdi -> conn ; if ( devc -> acquisition ) { sr_err ( "Cannot<S2SV_blank>close<S2SV_blank>device<S2SV_blank>during<S2SV_blank>acquisition!" ) ; devc -> cancel_request...
<S2SV_ModStart> "Unable<S2SV_blank>to<S2SV_blank>shut<S2SV_blank>down<S2SV_blank>device." ) ; if ( usb -> devhdl )
4,649
CWE-000 NodeValues closenessCentrality ( Graph g ) { NodeValues * centrality = newCentralityStruct ( g -> nV ) ; double closeness = 0 ; int reach = 0 ; int dsum = 0 ; int i = 0 ; ShortestPaths * paths ; <S2SV_StartBug> for ( int v = 0 ; v < g -> nV ; v ++ ; ) { <S2SV_EndBug> reach = numReach ( g , v ) ; paths = & paths...
<S2SV_ModStart> ; v ++ <S2SV_ModEnd> ) { reach <S2SV_ModStart> ; i ++ <S2SV_ModEnd> ) { dsum
4,650
CWE-000 static VALUE <S2SV_StartBug> rb_file_join ( VALUE ary , VALUE sep ) <S2SV_EndBug> { long len , i ; VALUE result , tmp ; const char * name , * tail ; int checked = TRUE ; rb_encoding * enc ; if ( RARRAY_LEN ( ary ) == 0 ) return rb_str_new ( 0 , 0 ) ; len = 1 ; for ( i = 0 ; i < RARRAY_LEN ( ary ) ; i ++ ) { tmp...
<S2SV_ModStart> ( VALUE ary <S2SV_ModEnd> ) { long <S2SV_ModStart> ; } } len += <S2SV_ModEnd> RARRAY_LEN ( ary <S2SV_ModStart> ) - 1 ; <S2SV_ModEnd> result = rb_str_buf_new <S2SV_ModStart> } else { <S2SV_ModEnd> tmp = rb_exec_recursive <S2SV_ModStart> , ary , tmp <S2SV_ModEnd> ) ; } <S2SV_ModStart> ; } else <S2SV_ModEn...
4,651
CWE-000 dentry_t * dentry_alloc ( const char * name ) { dentry_t * new = cache_alloc ( dentry_cache ) ; new -> name = name ; new -> inode = NULL ; new -> flags = 0 ; <S2SV_StartBug> hashtable_init ( new -> children_tab ) ; <S2SV_EndBug> list_init ( & new -> children_list ) ; return new ; }
<S2SV_ModStart> = 0 ; new -> parent = 0 ;
4,652
CWE-000 void command_issue ( uint32_t command_part ) { static cmd_state state = CMD_START ; switch ( state ) { case CMD_START : if ( command_part == SYS_CLEAR ) { command_clear ( ) ; state = CMD_START ; } else { curr_op . act = ( int ) command_part ; state = CMD_MID ; } break ; case CMD_MID : <S2SV_StartBug> state = CM...
<S2SV_ModStart> case CMD_MID : curr_op . data = command_part ;
4,653
CWE-000 bool check_for_recommission ( int8_t bat ) { uint32_t time_since_decommission = get_current_timestamp_wrapped ( ) - charging_data . decommissioned_timestamp [ bat ] ; print ( "\\tdecomissioned<S2SV_blank>at<S2SV_blank>%d,<S2SV_blank>now<S2SV_blank>%d\\n" , charging_data . decommissioned_timestamp [ bat ] , get_...
<S2SV_ModStart> bat ] = ( uint32_t )
4,654
CWE-000 <S2SV_StartBug> void JR_cc ( CPU * c , BYTE cond ) { <S2SV_EndBug> <S2SV_StartBug> if ( CPU_CheckFlag ( c , cond ) ) { <S2SV_EndBug> c -> pc = c -> pc + ( SIGNED_BYTE ) IMM8 ( c ) ; CPU_UpdateClockTimer ( c , CYCLES ( 3 ) ) ; } else { c -> pc += 2 ; CPU_UpdateClockTimer ( c , CYCLES ( 2 ) ) ; } }
<S2SV_ModStart> , BYTE cond , bool not <S2SV_ModStart> , cond ) != not
4,655
CWE-000 STATIC int xfs_free_file_space ( xfs_inode_t * ip , xfs_off_t offset , xfs_off_t len , int attr_flags ) { int committed ; int done ; xfs_fileoff_t endoffset_fsb ; int error ; xfs_fsblock_t firstfsb ; xfs_bmap_free_t free_list ; xfs_bmbt_irec_t imap ; xfs_off_t ioffset ; xfs_extlen_t mod = 0 ; xfs_mount_t * mp ;...
<S2SV_ModStart> uint resblks ; xfs_off_t <S2SV_ModEnd> rounding ; int <S2SV_ModStart> = max_t ( xfs_off_t <S2SV_ModEnd> , 1 <<
4,656
CWE-000 int main ( int argc , char * argv [ ] ) { int rc ; int fd ; scmp_filter_ctx ctx = NULL ; fd = 1 ; ctx = seccomp_init ( SCMP_ACT_ALLOW ) ; if ( ctx == NULL ) { rc = ENOMEM ; goto out ; } rc = seccomp_arch_remove ( ctx , SCMP_ARCH_NATIVE ) ; if ( rc < 0 ) goto out ; rc = seccomp_arch_add ( ctx , SCMP_ARCH_X86_64 ...
<S2SV_ModStart> ; rc = seccomp_syscall_priority ( ctx , SCMP_SYS ( poll ) , 255 ) ; if ( rc < 0 ) goto out ; rc =
4,657
CWE-000 struct bstrList * get_replay_list ( ) { DIR * replay_dir = opendir ( "replay" ) ; check ( replay_dir != NULL , "Could<S2SV_blank>not<S2SV_blank>open<S2SV_blank>replay<S2SV_blank>directory<S2SV_blank>for<S2SV_blank>reading" ) ; struct dirent * d = NULL ; struct bstrList * b = malloc ( sizeof ( struct bstrList ) ...
<S2SV_ModStart> ) break ; <S2SV_ModEnd> num ++ ;
4,658
CWE-000 static void Ai_Wander ( g_entity_t * self , pm_cmd_t * cmd ) { ai_locals_t * ai = Ai_GetLocals ( self ) ; vec3_t forward ; AngleVectors ( ( const vec3_t ) { 0 , ai -> wander_angle , 0 } , forward , NULL , NULL ) ; vec3_t end ; VectorMA ( self -> s . origin , ( self -> maxs [ 0 ] - self -> mins [ 0 ] ) * 2.0 , f...
<S2SV_ModStart> no_movement_frames >= QUETOO_TICK_RATE <S2SV_ModEnd> ) { vec_t <S2SV_ModStart> 0 ; } else if ( ai -> no_movement_frames >= QUETOO_TICK_RATE / 2.0 ) { cmd -> up = PM_SPEED_JUMP ; } } else <S2SV_ModEnd> { ai ->
4,659
CWE-000 void unmask_threaded_irq ( struct irq_desc * desc ) { struct irq_chip * chip = desc -> irq_data . chip ; if ( chip -> flags & IRQCHIP_EOI_THREADED ) chip -> irq_eoi ( & desc -> irq_data ) ; <S2SV_StartBug> if ( chip -> irq_unmask ) { <S2SV_EndBug> chip -> irq_unmask ( & desc -> irq_data ) ; irq_state_clr_masked...
<S2SV_ModStart> irq_data ) ; unmask_irq <S2SV_ModEnd> ( desc ) <S2SV_ModStart> ) ; } <S2SV_ModEnd> <S2SV_null> <S2SV_null> <S2SV_null>
4,660
CWE-000 int save_mino ( char * str , t_mino * mino , int id ) { t_mino * last ; t_mino * new ; new = mino ; if ( new -> pos == '\\0' ) new -> pos = mino_pos ( str ) ; else { while ( new -> next ) new = new -> next ; new -> next = ( t_mino * ) ft_memalloc ( sizeof ( t_mino ) ) ; if ( new -> next == NULL ) return ( 0 ) ;...
<S2SV_ModStart> -> pos ; printf ( "mino<S2SV_blank>pos:<S2SV_blank>%d,<S2SV_blank>%d,<S2SV_blank>%d,<S2SV_blank>%d\\n" , new -> pos [ 0 ] , new -> pos [ 1 ] , new -> pos [ 2 ] , new -> pos [ 3 ] ) ;
4,661
CWE-000 int command_add ( t_core * core , t_process * process ) { if ( ARGS [ 0 ] . type == REG_CODE && ARGS [ 1 ] . type == REG_CODE && ARGS [ 2 ] . type == REG_CODE && ARGS [ 0 ] . arg <= REG_NUMBER && ARGS [ 0 ] . arg > 0 && ARGS [ 1 ] . arg <= REG_NUMBER && ARGS [ 1 ] . arg > 0 && ARGS [ 2 ] . arg <= REG_NUMBER && ...
<S2SV_ModStart> 1 ; } FLAGS -> visual ? 0 :
4,662
CWE-000 static gboolean parse_file_contents ( GnomeBGSlideShow * self , const char * contents , gsize len , GError * * error ) { GMarkupParser parser = { handle_start_element , handle_end_element , handle_text , NULL , NULL , } ; GMarkupParseContext * context = NULL ; time_t t ; gboolean failed = FALSE ; threadsafe_loc...
<S2SV_ModStart> failed ) { guint <S2SV_ModEnd> len ; t
4,663
CWE-000 int bond_parse_conf ( FILE * fp , char * conf_buff , int buff_len ) { if ( fp == NULL || conf_buff == NULL || buff_len < 1 ) { printf ( "Invalid<S2SV_blank>parameter\\n" ) ; return - 1 ; } PORT_CACHE port_conf ; int res = 0x00 ; while ( ! feof ( fp ) ) { memset ( conf_buff , 0x00 , buff_len ) ; if ( fgets ( con...
<S2SV_ModStart> } DEBUG_INFO ( "Totally<S2SV_blank>%d<S2SV_blank>bond<S2SV_blank>port(s)<S2SV_blank>configured<S2SV_blank>correctly,<S2SV_blank>" "%d<S2SV_blank>bond<S2SV_blank>port(s)<S2SV_blank>configured<S2SV_blank>error" <S2SV_ModEnd> , bond_count ,
4,664
CWE-000 static void * esdi_init ( ) { int i = 0 ; esdi_t * esdi = malloc ( sizeof ( esdi_t ) ) ; memset ( esdi , 0 , sizeof ( esdi_t ) ) ; <S2SV_StartBug> rom_init_interleaved ( & esdi -> bios_rom , "roms/90x8970.bin" , "roms/90x8969.bin" , 0xc8000 , 0x4000 , 0x3fff , 0 , MEM_MAPPING_EXTERNAL ) ; <S2SV_EndBug> mem_mapp...
<S2SV_ModStart> -> bios_rom , L"roms/90x8970.bin" , L"roms/90x8969.bin" <S2SV_ModEnd> , 0xc8000 ,
4,665
CWE-000 void * w_input_thread ( __attribute__ ( ( unused ) ) void * t_id ) { logreader * current ; int i = 0 , r = 0 , j = - 1 ; int f_check = 0 ; IT_control f_control = 0 ; time_t curr_time = 0 ; # ifndef WIN32 int int_error = 0 ; struct timeval fp_timeout ; # endif while ( 1 ) { # ifndef WIN32 fp_timeout . tv_sec = l...
<S2SV_ModStart> 2 ) ; if ( pthread_mutex_trylock ( & win_el_mutex ) == 0 ) { <S2SV_ModStart> ( ) ; pthread_mutex_unlock ( & win_el_mutex ) ; }
4,666
CWE-000 int load_file ( const char * path , off_t offset , size_t size , char * out_data ) { log_trace ( "Loading<S2SV_blank>file:<S2SV_blank>%s<S2SV_blank>at<S2SV_blank>offset<S2SV_blank>%lu<S2SV_blank>with<S2SV_blank>size<S2SV_blank>%lu" , <S2SV_StartBug> path , offset , size ) ; <S2SV_EndBug> if ( size == 0 ) return...
<S2SV_ModStart> , size ) <S2SV_ModEnd> ; unsigned char <S2SV_ModStart> 1 ; } if ( size == 0 ) return 0 ;
4,667
CWE-000 bfd_reloc_code_real_type return_reloc ( fusion_opc_info_t * insn , char * str ) { insn_t opc = insn -> opc ; insn_t dsel = insn -> index ; insn_t usereg = insn -> index ; unsigned cpid_value = insn -> cpid ; bfd_reloc_code_real_type ret_reloc = BFD_RELOC_UNUSED ; switch ( opc ) { case OPC_INT : break ; case OPC...
<S2SV_ModStart> case 5 : case 11 : case 12 : case 13 : <S2SV_ModStart> : case 2 : case 8 : case 9 : case 10
4,668
CWE-000 int tpm_get_random ( struct tpm_chip * chip , u8 * out , size_t max ) { struct tpm_cmd_t tpm_cmd ; u32 recd , num_bytes = min_t ( u32 , max , TPM_MAX_RNG_DATA ) , rlength ; int err , total = 0 , retries = 5 ; u8 * dest = out ; if ( ! out || ! num_bytes || max > TPM_MAX_RNG_DATA ) return - EINVAL ; chip = tpm_fi...
<S2SV_ModStart> ( rlength < TPM_HEADER_SIZE +
4,669
CWE-000 <S2SV_StartBug> void rs_free_sta ( void * mvm_r , struct ieee80211_sta * sta , void * mvm_sta ) <S2SV_EndBug> { struct iwl_op_mode * op_mode __maybe_unused = mvm_r ; struct iwl_mvm * mvm __maybe_unused = IWL_OP_MODE_GET_MVM ( op_mode ) ; IWL_DEBUG_RATE ( mvm , "enter\\n" ) ; IWL_DEBUG_RATE ( mvm , "leave\\n" ) ...
<S2SV_ModStart> <S2SV_null> <S2SV_null> <S2SV_null> static
4,670
CWE-000 corto_object _corto_mount_resume ( corto_mount this , corto_string parent , corto_string name , corto_object o ) { if ( this -> policy . ownership != CORTO_LOCAL_OWNER ) { return NULL ; } corto_attr prevAttr = corto_setAttr ( CORTO_ATTR_PERSISTENT | corto_getAttr ( ) ) ; corto_object prevOwner = corto_setOwner ...
<S2SV_ModStart> result ) { corto_debug <S2SV_ModEnd> ( "mount:<S2SV_blank>resumed<S2SV_blank>\'%s/%s\'<S2SV_blank>from<S2SV_blank>\'%s\'" ,
4,671
CWE-000 void zdb_record_score ( Oid index_relid , ItemPointer ctid , ZDBScore score ) { MemoryContext oldContext = MemoryContextSwitchTo ( TopTransactionContext ) ; bool found ; ZDBBitmapScoreKey key ; ZDBBitmapScoreEntry * entry ; if ( bitmapScores == NULL ) { HASHCTL ctl ; <S2SV_StartBug> ctl . keysize = sizeof ( ZDB...
<S2SV_ModStart> HASHCTL ctl ; memset ( & ctl , 0 , sizeof ( ctl ) ) ; <S2SV_ModStart> & ctl , HASH_ELEM |
4,672
CWE-000 static int unforce_rtp_proxy1_f ( struct sip_msg * msg , char * str1 , char * str2 ) { str flags ; <S2SV_StartBug> if ( str1 ) <S2SV_EndBug> <S2SV_StartBug> get_str_fparam ( & flags , msg , ( fparam_t * ) str1 ) ; <S2SV_EndBug> else <S2SV_StartBug> flags . s = NULL ; <S2SV_EndBug> return unforce_rtp_proxy ( msg...
<S2SV_ModStart> ( str1 ) { if ( <S2SV_ModStart> ) str1 ) < 0 ) { LM_ERR ( "failed<S2SV_blank>to<S2SV_blank>get<S2SV_blank>flags<S2SV_blank>parameter\\n" ) ; return - 1 ; } } else { <S2SV_ModEnd> flags . s <S2SV_ModStart> = NULL ; }
4,673
CWE-000 static void uvc_video_clock_decode ( struct uvc_streaming * stream , struct uvc_buffer * buf , const __u8 * data , int len ) { struct uvc_clock_sample * sample ; unsigned int header_size ; bool has_pts = false ; bool has_scr = false ; unsigned long flags ; struct timespec ts ; u16 host_sof ; u16 dev_sof ; switc...
<S2SV_ModStart> udev ) ; uvc_video_get_ts <S2SV_ModEnd> ( & ts
4,674
CWE-000 void print_expression ( const Exp * n ) { <S2SV_StartBug> print_expression_parens ( n , false ) ; <S2SV_EndBug> <S2SV_StartBug> err_msg ( lg_Debug , "\\n" ) ; <S2SV_EndBug> }
<S2SV_ModStart> n ) { dyn_str * e = dyn_str_new ( ) ; char * s = dyn_str_take ( print_expression_parens ( e , <S2SV_ModEnd> n , false <S2SV_ModStart> n , false ) <S2SV_ModStart> ( lg_Debug , "%s\\n" , s ) ; free ( s <S2SV_ModEnd> ) ; }
4,675
CWE-000 static int wd_standby ( struct wd_softc * wd , int flags ) { struct ata_xfer * xfer ; int error ; xfer = ata_get_xfer ( wd -> drvp -> chnl_softc ) ; if ( xfer == NULL ) return EINTR ; xfer -> c_ata_c . r_command = WDCC_STANDBY_IMMED ; xfer -> c_ata_c . r_st_bmask = WDCS_DRDY ; xfer -> c_ata_c . r_st_pmask = WDC...
<S2SV_ModStart> xfer ) ; <S2SV_ModEnd> return error ;
4,676
CWE-000 int vpx_rb_read_bit ( struct vpx_read_bit_buffer * rb ) { const size_t off = rb -> bit_offset ; const size_t p = off >> 3 ; const int q = 7 - ( int ) ( off & 0x7 ) ; if ( rb -> bit_buffer + p < rb -> bit_buffer_end ) { const int bit = ( rb -> bit_buffer [ p ] >> q ) & 1 ; rb -> bit_offset = off + 1 ; return bit...
<S2SV_ModStart> } else { if ( rb -> error_handler != NULL )
4,677
CWE-000 bool status_exists ( struct view * view , struct status * status , enum line_type type ) { unsigned long lineno ; refresh_view ( view ) ; for ( lineno = 0 ; lineno < view -> lines ; lineno ++ ) { struct line * line = & view -> line [ lineno ] ; struct status * pos = line -> data ; if ( line -> type != type ) co...
<S2SV_ModStart> ( pos && status &&
4,678
CWE-000 static int hammer2_strategy_write ( struct vop_strategy_args * ap ) { hammer2_xop_strategy_t * xop ; hammer2_pfs_t * pmp ; struct bio * bio ; struct buf * bp ; hammer2_inode_t * ip ; bio = ap -> a_bio ; bp = bio -> bio_buf ; ip = VTOI ( ap -> a_vp ) ; <S2SV_StartBug> pmp = ip -> pmp ; <S2SV_EndBug> hammer2_lwin...
<S2SV_ModStart> ip -> pmp ; atomic_set_int ( & ip -> flags , HAMMER2_INODE_DIRTYDATA )
4,679
CWE-000 static int mdp3_iommu_map_iommu ( struct mdp3_iommu_meta * meta , unsigned long align , unsigned long iova_length , unsigned int padding , unsigned long flags ) { struct iommu_domain * domain ; int ret = 0 ; unsigned long size ; unsigned long unmap_size ; struct sg_table * table ; int prot = IOMMU_WRITE | IOMMU...
<S2SV_ModStart> { pr_err ( "%s:<S2SV_blank>could<S2SV_blank>not<S2SV_blank>map<S2SV_blank>%pa<S2SV_blank>in<S2SV_blank>domain<S2SV_blank>%pK\\n" <S2SV_ModEnd> , __func__ ,
4,680
CWE-000 uint8_t i2cReadDataAck ( ) { <S2SV_StartBug> sbi ( TWCR , TWEA ) ; <S2SV_EndBug> <S2SV_StartBug> return i2cReadData ( ) ; <S2SV_EndBug> <S2SV_StartBug> } <S2SV_EndBug>
<S2SV_ModStart> ( ) { TWCR = ( 1 << TWINT ) | ( 1 << TWEN ) | ( 1 << <S2SV_ModEnd> TWEA ) ; <S2SV_ModStart> TWEA ) ; i2cWait <S2SV_ModEnd> ( ) ; <S2SV_ModStart> ( ) ; return TWDR ;
4,681
CWE-000 static void event_exit ( void ) { dr_fprintf ( STDERR , "Saw<S2SV_blank>%s<S2SV_blank>bb<S2SV_blank>events\\n" , num_bbs > 0 ? "some" : "no" ) ; <S2SV_StartBug> dr_fprintf ( STDERR , "Saw<S2SV_blank>%d<S2SV_blank>signal(s)\\n" , num_signals ) ; <S2SV_EndBug> }
<S2SV_ModStart> ( STDERR , "Saw<S2SV_blank>%s<S2SV_blank>signals\\n" , num_signals > 2 ? ">2" : "<=2" <S2SV_ModEnd> ) ; }
4,682
CWE-000 int Connect1 ( int interface , int n_ssid , int freq ) { interface ++ ; char ssid [ 128 ] ; if ( n_ssid == 0 ) { strcpy ( ssid , "XIA_Tenda_2" ) ; } else if ( n_ssid == 1 ) { strcpy ( ssid , "XIA-TP-LINK_2.4G" ) ; } else { strcpy ( ssid , "XIA-TP-LINK_5G" ) ; } int rtn ; long begin_time , end_time , total_time ...
<S2SV_ModStart> ( ) ; say <S2SV_ModEnd> ( "-------------connect<S2SV_blank>begin<S2SV_blank>at<S2SV_blank>%ld<S2SV_blank>\\n" , <S2SV_ModStart> - begin_time ; say <S2SV_ModEnd> ( "-------------connect<S2SV_blank>using<S2SV_blank>time<S2SV_blank>=<S2SV_blank>%ld<S2SV_blank>\\n" ,
4,683
CWE-000 static int nextprev ( TINFO * tinfo , WT_CURSOR * cursor , bool next ) { WT_DECL_RET ; WT_ITEM key , value ; uint64_t keyno ; uint8_t bitfield ; int cmp ; const char * which ; bool incrementing ; keyno = 0 ; which = next ? "WT_CURSOR.next" : "WT_CURSOR.prev" ; switch ( ret = ( next ? cursor -> next ( cursor ) :...
<S2SV_ModStart> , "nextprev:<S2SV_blank>get_key/get_value" ) ; if ( DATASOURCE ( "lsm" ) ) break
4,684
CWE-000 QDF_STATUS cds_decr_active_session ( enum tQDF_ADAPTER_MODE mode , uint8_t session_id ) { hdd_context_t * hdd_ctx ; cds_context_type * cds_ctx ; hdd_adapter_t * sap_adapter ; QDF_STATUS qdf_status ; <S2SV_StartBug> cds_ctx = cds_get_context ( QDF_MODULE_ID_QDF ) ; <S2SV_EndBug> if ( ! cds_ctx ) { cds_err ( "Inv...
<S2SV_ModStart> QDF_STATUS qdf_status ; bool mcc_mode ; <S2SV_ModStart> ( ) ; if ( mode == QDF_STA_MODE || mode == QDF_SAP_MODE ) { qdf_mutex_acquire ( & cds_ctx -> qdf_conc_list_lock ) ; mcc_mode = cds_current_concurrency_is_mcc ( ) ; qdf_mutex_release ( & cds_ctx -> qdf_conc_list_lock ) ; if ( cds_ctx -> hdd_ipa_set_...
4,685
CWE-000 static Node * preprocess_expression ( PlannerInfo * root , Node * expr , int kind ) { if ( expr == NULL ) return NULL ; if ( root -> hasJoinRTEs && ! ( kind == EXPRKIND_RTFUNC || kind == EXPRKIND_VALUES || kind == EXPRKIND_TABLESAMPLE || kind == EXPRKIND_TABLEFUNC ) ) expr = flatten_join_alias_vars ( root , exp...
<S2SV_ModStart> * ) expr , false
4,686
CWE-000 int osmo_bsc_sigtran_init ( struct llist_head * mscs ) { struct bsc_msc_data * msc ; char msc_name [ 256 ] ; OSMO_ASSERT ( mscs ) ; osmo_ss7_init ( ) ; msc_list = mscs ; llist_for_each_entry ( msc , msc_list , entry ) { snprintf ( msc_name , sizeof ( msc_name ) , "MSC<S2SV_blank>No.:<S2SV_blank>%u" , msc -> nr ...
<S2SV_ModStart> msc_con -> reset = a_reset_alloc ( NULL , msc_name , osmo_bsc_sigtran_reset_cb , msc <S2SV_ModEnd> ) ; }
4,687
CWE-000 void check_for_messages ( ) { uint8_t message ; uint8_t type ; uint8_t args ; uint8_t continued = 0 ; uint8_t value = 0 ; if ( receive ( ) != 0xFF ) { return ; } while ( 1 ) { message = receive ( ) ; if ( message == 0x00 ) { return ; } if ( continued == 0 ) { type = message & 0xF0 ; args = message & 0x0F ; swit...
<S2SV_ModStart> case END_TRANSM : return <S2SV_ModEnd> ; } }
4,688
CWE-000 int main ( void ) { setupGPIO ( ) ; setupDAC ( ) ; <S2SV_StartBug> setupTimer ( SAMPLE_PERIOD ) ; <S2SV_EndBug> setupNVIC ( ) ; while ( 1 ) ; return 0 ; }
<S2SV_ModStart> ; setupTimer ( SAMPLE_PERIOD_CYCLES <S2SV_ModEnd> ) ; setupNVIC
4,689
CWE-000 void dslink_node_tree_free ( DSLink * link , DSNode * root ) { <S2SV_StartBug> if ( link && link -> _ws && root -> parent && root -> parent -> name ) { <S2SV_EndBug> ref_t * rrid = dslink_map_get ( link -> responder -> list_subs , ( void * ) root -> parent -> path ) ; if ( ! rrid ) { goto cleanup ; } uint32_t *...
<S2SV_ModStart> _ws && root && root
4,690
CWE-000 void printLine ( ZlineFile zf , i64 line_no , char * * buf , size_t * buf_size ) { i64 line_len = ZlineFile_line_length ( zf , line_no ) ; if ( line_len < 0 ) { fprintf ( stderr , "Invalid<S2SV_blank>line<S2SV_blank>number:<S2SV_blank>%" PRIi64 "\\n" , line_no ) ; exit ( 1 ) ; } <S2SV_StartBug> if ( * buf_size ...
<S2SV_ModStart> buf_size < line_len + 1 <S2SV_ModStart> 2 , line_len + 1
4,691
CWE-000 int swConnection_onSendfile ( swConnection * conn , swBuffer_trunk * chunk ) { int ret ; swTask_sendfile * task = chunk -> store . ptr ; # ifdef HAVE_TCP_NOPUSH if ( task -> offset == 0 && conn -> tcp_nopush == 0 ) { if ( conn -> tcp_nodelay ) { int tcp_nodelay = 0 ; if ( setsockopt ( conn -> fd , IPPROTO_TCP ,...
<S2SV_ModStart> return SW_ERR ; case SW_WAIT : conn -> send_wait = 1 ; return SW_ERR ;
4,692
CWE-000 <S2SV_StartBug> draw_dict * heatmap_nonLRU ( READER * reader , struct_cache * cache , char mode , long time_interval , int plot_type , int num_of_threads ) { <S2SV_EndBug> if ( plot_type == hit_rate_start_time_end_time ) { <S2SV_StartBug> return heatmap_hit_rate_start_time_end_time ( reader , cache , mode , tim...
<S2SV_ModStart> , char mode <S2SV_ModEnd> , int plot_type <S2SV_ModStart> cache , mode <S2SV_ModEnd> , plot_type ,
4,693
CWE-000 int main ( int argc , char * * argv ) { printf ( "rivr<S2SV_blank>is<S2SV_blank>running\\n" ) ; <S2SV_StartBug> return 0 ; <S2SV_EndBug> }
<S2SV_ModStart> "rivr<S2SV_blank>is<S2SV_blank>running\\n" ) ; Register_File rfile ; init_Register_File ( & rfile ) ; Operation halt_op = encode_operation ( I_HALT , 0x0 ) ; const byte * mprog = ( const byte * ) & ( halt_op . bytes ) ; Thread thread ; init_Thread ( & thread , & rfile , mprog , 2 , 0 ) ; run_thread ( & ...
4,694
CWE-000 void amdgpu_dm_connector_funcs_reset ( struct drm_connector * connector ) { struct dm_connector_state * state = to_dm_connector_state ( connector -> state ) ; if ( connector -> state ) __drm_atomic_helper_connector_destroy_state ( connector -> state ) ; kfree ( state ) ; state = kzalloc ( sizeof ( * state ) , G...
<S2SV_ModStart> = 0 ; state -> max_bpc = 8 ;
4,695
CWE-000 int dirtree_recurse ( struct dirtree * node , <S2SV_StartBug> int ( * callback ) ( struct dirtree * node ) , int flags ) <S2SV_EndBug> { struct dirtree * new , * * ddt = & ( node -> child ) ; struct dirent * entry ; <S2SV_StartBug> DIR * dir ; <S2SV_EndBug> if ( node -> dirfd == - 1 || ! ( dir = fdopendir ( nod...
<S2SV_ModStart> ) , int dirfd , int <S2SV_ModStart> DIR * dir ; node -> dirfd = dirfd
4,696
CWE-000 static void intel_lvds_destroy ( struct drm_connector * connector ) { struct intel_lvds_connector * lvds_connector = <S2SV_StartBug> to_lvds_connector ( connector ) ; <S2SV_EndBug> if ( lvds_connector -> lid_notifier . notifier_call ) acpi_lid_notifier_unregister ( & lvds_connector -> lid_notifier ) ; if ( ! IS...
<S2SV_ModStart> to_lvds_connector ( connector <S2SV_ModEnd> ) ; if
4,697
CWE-000 OCEntityHandlerResult NSEntityHandlerSyncCb ( OCEntityHandlerFlag flag , OCEntityHandlerRequest * entityHandlerRequest , void * callback ) { NS_LOG ( DEBUG , "NSEntityHandlerSyncCb<S2SV_blank>-<S2SV_blank>IN" ) ; OCEntityHandlerResult ehResult = OC_EH_ERROR ; char * reqInterface = NULL ; OCRepPayload * payload ...
<S2SV_ModStart> "Invalid<S2SV_blank>interface" ) ; NSOICFree ( reqInterface ) ;
4,698
CWE-000 static void insert_key_hashed ( struct hash_map * table , uint32_t hash_key , void * key , void * val ) { <S2SV_StartBug> uint32_t index ; <S2SV_EndBug> for ( uint32_t i = 0 ; i < table -> size ; ++ i ) { index = p ( hash_key , i , table -> size ) ; struct bin * bin = & table -> table [ index ] ; if ( bin -> is...
<S2SV_ModStart> val ) { bool contains = contains_key_hashed ( table , hash_key , key ) ; <S2SV_ModStart> bin -> is_deleted && ! contains
4,699
CWE-000 <S2SV_StartBug> void store_set_possible_score ( ) { <S2SV_EndBug> time_t break_freq_seconds = enamel_get_break_freq ( ) * SECONDS_PER_MINUTE ; int diff = e_launch_time - time_start_of_today ( ) - enamel_get_daily_start_time ( ) ; if ( diff <= 0 ) { s_possible_score = 0 ; } else { s_possible_score = diff / break...
<S2SV_ModStart> ( ) { APP_LOG ( APP_LOG_LEVEL_INFO , "in<S2SV_blank>store_set_possible_score" ) ;