Unnamed: 0 int64 0 535k | source stringlengths 50 89.8k | target stringlengths 23 37.7k |
|---|---|---|
1,600 | CWE-000 CAResult_t CALEClientSendUnicastMessageImpl ( const char * address , const uint8_t * data , const uint32_t dataLen ) { OIC_LOG_V ( INFO , TAG , "CALEClientSendUnicastMessageImpl,<S2SV_blank>address:<S2SV_blank>%s,<S2SV_blank>data:<S2SV_blank>%p" , address , data ) ; VERIFY_NON_NULL ( address , TAG , "address<S2... | <S2SV_ModStart> jni_setAddress ) ; CALEDeleteSendBuffer ( env ) ; <S2SV_ModEnd> if ( data |
1,601 | CWE-000 static int dt2w_input_connect ( struct input_handler * handler , struct input_dev * dev , const struct input_device_id * id ) { struct input_handle * handle ; <S2SV_StartBug> int error ; <S2SV_EndBug> printk ( KERN_DEBUG "dt2w<S2SV_blank>:<S2SV_blank>dt2w_input_connect" ) ; if ( input_dev_filter ( dev ) ) retur... | <S2SV_ModStart> ; int error <S2SV_ModEnd> ; if ( |
1,602 | CWE-000 int read_pir ( void ) { FILE * fp ; if ( wiringPiSetup ( ) == - 1 ) return 1 ; pinMode ( 25 , INPUT ) ; delay ( 2000 ) ; printf ( "Process<S2SV_blank>2<S2SV_blank>:<S2SV_blank>Process<S2SV_blank>initialized!\\n" ) ; while ( 1 ) { if ( digitalRead ( 25 ) ) { printf ( "Process<S2SV_blank>2<S2SV_blank>:<S2SV_blank... | <S2SV_ModStart> 20 ] ; snprintf ( time_str , 20 , "%d" , <S2SV_ModEnd> ( int ) <S2SV_ModStart> ( NULL ) <S2SV_ModEnd> ) ; printf |
1,603 | CWE-000 int import_cylindrical ( ndom , filename ) int ndom ; char * filename ; { FILE * fopen ( ) , * fptr ; char line [ LINELEN ] ; int n , icell , jcell , ncell , inwind ; double q1 , q2 , q3 , q4 , q5 , q6 , q7 ; int jz , jx ; double delta ; Log ( "Reading<S2SV_blank>a<S2SV_blank>model<S2SV_blank>in<S2SV_blank>cyli... | <S2SV_ModStart> jx ) ; zdom [ ndom ] . ndim = xx_cyl . ndim ; zdom [ ndom ] . mdim = xx_cyl . mdim ; zdom [ ndom ] . ndim2 = xx_cyl . ndim * xx_cyl . mdim ; |
1,604 | CWE-000 bool hexBitstr2List ( char * bitstr , char * * list , size_t * listSize ) { size_t len ; int32_t next , count = 0 ; if ( ! bitstr ) { mlog ( "%s:<S2SV_blank>invalid<S2SV_blank>bitstring\\n" , __func__ ) ; return false ; } if ( ! strncmp ( bitstr , "0x" , 2 ) ) bitstr += 2 ; len = strlen ( bitstr ) ; while ( len... | <S2SV_ModStart> tmp ) , "%i" <S2SV_ModEnd> , count ) <S2SV_ModStart> tmp ) , "%i" <S2SV_ModEnd> , count ) <S2SV_ModStart> tmp ) , "%i" <S2SV_ModEnd> , count ) <S2SV_ModStart> tmp ) , "%i" <S2SV_ModEnd> , count ) |
1,605 | CWE-000 static int nkcfs_remove ( struct _file * filp ) { int cjddrive , jddrive ; char * pfilename , * pc1 , * pc2 ; struct ioctl_nkc_blk args ; pc1 = filp -> pname ; pc2 = pfilename = ( char * ) malloc ( strlen ( pc1 ) ) ; * pc2 = 0 ; if ( ! pfilename ) { printf ( "<S2SV_blank>error,<S2SV_blank>out<S2SV_blank>of<S2SV... | <S2SV_ModStart> # ifdef USE_JADOS jd_remove <S2SV_ModEnd> ( pfilename ) |
1,606 | CWE-000 <S2SV_StartBug> char * quickwhich ( char * command , struct pathelement * pathlist , bool freePath ) <S2SV_EndBug> { bool found = false ; <S2SV_StartBug> pathlist = get_path ( ) ; <S2SV_EndBug> freePath = true ; while ( pathlist ) { char str [ 256 ] ; strcpy ( str , pathlist -> element ) ; strcat ( str , "/" ) ... | <S2SV_ModStart> pathelement * pathlist <S2SV_ModEnd> ) { bool <S2SV_ModStart> ; pathlist = pathlist -> head <S2SV_ModEnd> ; while ( |
1,607 | CWE-000 static int read_abbrevs ( struct backtrace_state * state , uint64_t abbrev_offset , const unsigned char * dwarf_abbrev , size_t dwarf_abbrev_size , int is_bigendian , backtrace_error_callback error_callback , void * data , struct abbrevs * abbrevs ) { struct dwarf_buf abbrev_buf ; struct dwarf_buf count_buf ; s... | <S2SV_ModStart> ; abbrevs -> <S2SV_ModEnd> abbrevs = ( <S2SV_ModStart> return 0 ; abbrevs -> num_abbrevs = num_abbrevs ; |
1,608 | CWE-000 static struct netvsc_device * alloc_net_device ( void ) { struct netvsc_device * net_device ; net_device = kzalloc ( sizeof ( struct netvsc_device ) , GFP_KERNEL ) ; if ( ! net_device ) return NULL ; init_waitqueue_head ( & net_device -> wait_drain ) ; net_device -> destroy = false ; net_device -> max_pkt = RND... | <S2SV_ModStart> -> subchan_work , netvsc_subchan_work <S2SV_ModEnd> ) ; return |
1,609 | CWE-000 static void sighandler_kill ( int sig , siginfo_t * info , void * ucontext ) { debug ( "killed<S2SV_blank>by<S2SV_blank>%s\\n" , signal_name ( sig ) ) ; if ( ! info -> si_pid ) switch ( sig ) { case SIGTERM : case SIGINT : shim_do_kill ( - 1 , sig ) ; break ; } <S2SV_StartBug> try_process_exit ( 0 ) ; <S2SV_End... | <S2SV_ModStart> try_process_exit ( 0 , sig |
1,610 | CWE-000 qboolean SV_Push ( edict_t * pusher , vec3_t move , vec3_t amove ) { int i , e ; edict_t * check , * block ; vec3_t mins , maxs ; pushed_t * p ; <S2SV_StartBug> vec3_t org , org2 , move2 , forward , right , up ; <S2SV_EndBug> for ( i = 0 ; i < 3 ; i ++ ) { float temp ; temp = move [ i ] * 8.0 ; if ( temp > 0.0 ... | <S2SV_ModStart> right , up ; vec3_t realmins , realmaxs <S2SV_ModStart> pusher ) ; SV_RealBoundingBox ( pusher , realmins , realmaxs ) ; <S2SV_ModStart> 0 ] >= realmaxs <S2SV_ModEnd> [ 0 ] <S2SV_ModStart> 1 ] >= realmaxs <S2SV_ModEnd> [ 1 ] <S2SV_ModStart> 2 ] >= realmaxs <S2SV_ModEnd> [ 2 ] <S2SV_ModStart> 0 ] <= real... |
1,611 | CWE-000 BT_HIDDEN struct bt_ctf_packet * debug_info_new_packet ( struct debug_info_iterator * debug_it , struct bt_ctf_packet * packet ) { struct bt_ctf_stream * stream = NULL , * writer_stream = NULL ; struct bt_ctf_field * writer_packet_context = NULL ; <S2SV_StartBug> struct bt_ctf_packet * writer_packet = NULL ; <S... | <S2SV_ModStart> bt_ctf_packet * writer_packet = NULL ; struct bt_ctf_field * packet_context <S2SV_ModStart> error ; } packet_context = bt_ctf_packet_get_context ( packet ) ; if ( packet_context ) { <S2SV_ModStart> -> err , packet , <S2SV_ModEnd> writer_stream ) ; <S2SV_ModStart> error ; } BT_PUT ( packet_context ) ; } ... |
1,612 | CWE-000 int command_handle ( char * * argument_list ) { <S2SV_StartBug> int child1 = fork ( ) ; <S2SV_EndBug> if ( ! child1 ) { <S2SV_StartBug> execvp ( argument_list [ 0 ] , argument_list ) ; <S2SV_EndBug> if ( execvp ( * argument_list , argument_list ) < 0 ) { printf ( "ERROR<S2SV_blank>MESSAGE:<S2SV_blank>Zoo<S2SV_b... | <S2SV_ModStart> argument_list ) { if ( ! <S2SV_ModEnd> fork ( ) <S2SV_ModStart> fork ( ) ) { if ( <S2SV_ModEnd> execvp ( argument_list <S2SV_ModStart> [ 0 ] <S2SV_ModEnd> , argument_list ) <S2SV_ModStart> "ERROR<S2SV_blank>MESSAGE:<S2SV_blank>Zoo<S2SV_blank>Wee<S2SV_blank>Mama!<S2SV_blank><S2SV_blank>Invalid<S2SV_blank... |
1,613 | CWE-000 void tableRemoveWhite ( Table * table ) { <S2SV_StartBug> } <S2SV_EndBug> | <S2SV_ModStart> table ) { for ( int i = 0 ; i <= table -> capacityMask ; i ++ ) { Entry * entry = & table -> entries [ i ] ; if ( entry -> key != NULL && ! entry -> key -> object . isDark ) { tableDelete ( table , entry -> key ) ; } } |
1,614 | CWE-000 void DMAPageWrite ( uint32_t PhysAddress , const void * DataWrite , uint32_t TotalSize ) { <S2SV_StartBug> memcpy ( & ram [ PhysAddress ] , DataWrite , TotalSize ) ; <S2SV_EndBug> <S2SV_StartBug> mem_invalidate_range ( PhysAddress , PhysAddress + TotalSize - 1 ) ; <S2SV_EndBug> DataWrite -= TotalSize ; } | <S2SV_ModStart> TotalSize ) { mem_invalidate_range ( PhysAddress , PhysAddress + TotalSize - 1 ) ; <S2SV_ModStart> TotalSize ) ; <S2SV_ModEnd> DataWrite -= TotalSize |
1,615 | CWE-000 static void gst_xv_image_sink_class_init ( GstXvImageSinkClass * klass ) { GObjectClass * gobject_class ; GstElementClass * gstelement_class ; GstBaseSinkClass * gstbasesink_class ; GstVideoSinkClass * videosink_class ; gobject_class = ( GObjectClass * ) klass ; gstelement_class = ( GstElementClass * ) klass ; ... | <S2SV_ModStart> gst_xv_image_sink_show_frame ) ; GST_DEBUG_CATEGORY_GET ( GST_CAT_PERFORMANCE , "GST_PERFORMANCE" ) ; |
1,616 | CWE-000 static void resolve_assoc_var ( gfc_symbol * sym , bool resolve_target ) { gfc_expr * target ; gcc_assert ( sym -> assoc ) ; gcc_assert ( sym -> attr . flavor == FL_VARIABLE ) ; target = sym -> assoc -> target ; if ( ! target ) return ; gcc_assert ( ! sym -> assoc -> dangling ) ; if ( resolve_target && ! gfc_re... | <S2SV_ModStart> } if ( target -> expr_type == EXPR_NULL ) { gfc_error ( "Selector<S2SV_blank>at<S2SV_blank>%L<S2SV_blank>cannot<S2SV_blank>be<S2SV_blank>NULL()" , & target -> where ) ; return ; } else if ( target -> ts . type == BT_UNKNOWN ) { gfc_error ( "Selector<S2SV_blank>at<S2SV_blank>%L<S2SV_blank>has<S2SV_blank>... |
1,617 | CWE-000 <S2SV_StartBug> void rotateMe ( float * angle ) { <S2SV_EndBug> if ( abs ( * angle ) > 0.01 ) { <S2SV_StartBug> telega . leftwheel . task = ( * angle ) / 57.2958 * ( DISTANCEBTWWHEELS / 2 ) * TICKSPERROTATION * 2 * PI ; <S2SV_EndBug> telega . rightwheel . task = telega . leftwheel . task ; * angle = 0 ; } <S2SV... | <S2SV_ModStart> float * angle ) { if ( telega . traekenable == 1 <S2SV_ModStart> angle ) / 360 * PI * DISTANCEBTWWHEELS <S2SV_ModEnd> ; telega . <S2SV_ModStart> ; } } } |
1,618 | CWE-000 void qla2x00_async_iocb_timeout ( void * data ) { srb_t * sp = data ; fc_port_t * fcport = sp -> fcport ; struct srb_iocb * lio = & sp -> u . iocb_cmd ; struct event_arg ea ; if ( fcport ) { ql_dbg ( ql_dbg_disc , fcport -> vha , 0x2071 , "Async-%s<S2SV_blank>timeout<S2SV_blank>-<S2SV_blank>hdl=%x<S2SV_blank>po... | <S2SV_ModStart> case SRB_LOGIN_CMD : if ( ! fcport ) break ; <S2SV_ModStart> case SRB_LOGOUT_CMD : if ( ! fcport ) break ; |
1,619 | CWE-000 static long uvc_v4l2_ioctl ( struct file * file , unsigned int cmd , unsigned long arg ) { if ( uvc_trace_param & UVC_TRACE_IOCTL ) { uvc_printk ( KERN_DEBUG , "uvc_v4l2_ioctl(" ) ; <S2SV_StartBug> v4l_printk_ioctl ( cmd ) ; <S2SV_EndBug> printk ( ")\\n" ) ; } return video_usercopy ( file , cmd , arg , uvc_v4l2... | <S2SV_ModStart> "uvc_v4l2_ioctl(" ) ; <S2SV_ModEnd> printk ( ")\\n" |
1,620 | CWE-000 int rating ( char * nick , char sim_w_l ) { users mmr [ 20 ] ; users tmp ; int ind = 0 ; int size = 0 ; int sw = 0 ; FILE * pf = fopen ( "rating.txt" , "r" ) ; for ( int i = 0 ; addstr ( pf , & mmr [ i ] ) != - 1 ; i ++ ) { size = i + 1 ; } fclose ( pf ) ; ind = prow ( nick , mmr ) ; if ( ind != - 1 ) { if ( si... | <S2SV_ModStart> nick ) ; size ++ ; <S2SV_ModStart> nick ) ; size ++ ; <S2SV_ModStart> char menu ; system ( "clear" ) ; <S2SV_ModStart> printf ( "Желаете<S2SV_blank>вывести<S2SV_blank>статистику?\\n" <S2SV_ModEnd> "y/n\\n" ) ; <S2SV_ModStart> ) ; } else <S2SV_ModEnd> { system ( |
1,621 | CWE-000 void iemgui_label_font ( void * x , t_iemgui * iemgui , t_symbol * s , int ac , t_atom * av ) { int zoom = glist_getzoom ( iemgui -> x_glist ) ; int f = ( int ) atom_getfloatarg ( 0 , ac , av ) ; if ( f == 1 ) strcpy ( iemgui -> x_font , "helvetica" ) ; else if ( f == 2 ) strcpy ( iemgui -> x_font , "times" ) ;... | <S2SV_ModStart> ; if ( gobj_shouldvis ( & iemgui -> x_obj . te_g , <S2SV_ModEnd> iemgui -> x_glist |
1,622 | CWE-000 static void init_layers ( void ) { new_empty_layer ( & graphics . video_layers [ BOARD_LAYER ] , 0 , 0 , SCREEN_W , SCREEN_H , LAYER_DRAWORDER_BOARD ) ; new_empty_layer ( & graphics . video_layers [ OVERLAY_LAYER ] , <S2SV_StartBug> 0 , 0 , SCREEN_W , SCREEN_H , LAYER_DRAWORDER_OVERLAY ) ; <S2SV_EndBug> new_emp... | <S2SV_ModStart> SCREEN_H , LAYER_DRAWORDER_OVERLAY ) ; new_empty_layer ( & graphics . video_layers [ GAME_UI_LAYER ] , 0 , 0 , SCREEN_W , SCREEN_H , LAYER_DRAWORDER_GAME_UI <S2SV_ModStart> . video_layers [ GAME_UI_LAYER ] . mode = graphics . screen_mode ; graphics . video_layers [ <S2SV_ModStart> . layer_count = 4 <S2S... |
1,623 | CWE-000 <S2SV_StartBug> static void cciss_map_sg_chain_block ( ctlr_info_t * h , CommandList_struct * c , <S2SV_EndBug> SGDescriptor_struct * chain_block , int len ) { SGDescriptor_struct * chain_sg ; u64bit temp64 ; chain_sg = & c -> SG [ h -> max_cmd_sgentries - 1 ] ; chain_sg -> Ext = CCISS_SG_CHAIN ; chain_sg -> Le... | <S2SV_ModStart> <S2SV_null> <S2SV_null> static int <S2SV_ModEnd> cciss_map_sg_chain_block ( ctlr_info_t <S2SV_ModStart> PCI_DMA_TODEVICE ) ; if ( dma_mapping_error ( & h -> pdev -> dev , temp64 . val ) ) { dev_warn ( & h -> pdev -> dev , "%s:<S2SV_blank>error<S2SV_blank>mapping<S2SV_blank>chain<S2SV_blank>block<S2SV_bl... |
1,624 | CWE-000 static void addMugenFont1 ( int tKey , char * tPath ) { setMugenFontDirectory ( tPath ) ; MugenFontHeader header ; Buffer b = fileToBuffer ( tPath ) ; BufferPointer p = getBufferPointer ( b ) ; readFromBufferPointer ( & header , & p , sizeof ( MugenFontHeader ) ) ; Buffer textureBuffer = makeBuffer ( ( void * )... | <S2SV_ModStart> MugenDefScript script = loadMugenDefScriptFromBufferAndFreeBuffer <S2SV_ModEnd> ( textBuffer ) <S2SV_ModStart> ; script = loadMugenDefScriptFromBufferAndFreeBuffer <S2SV_ModEnd> ( textBuffer ) |
1,625 | CWE-000 void <S2SV_StartBug> PREFIX ( stop_numeric ) ( int32_t stop_code ) <S2SV_EndBug> { fprintf ( stderr , "STOP<S2SV_blank>%d\\n" , stop_code ) ; terminate_internal ( STAT_STOPPED_IMAGE , stop_code ) ; } | <S2SV_ModStart> stop_numeric ) ( int <S2SV_ModEnd> stop_code ) { |
1,626 | CWE-000 static int ses_recv_diag ( struct scsi_device * sdev , int page_code , void * buf , int bufflen ) { int ret ; unsigned char cmd [ ] = { RECEIVE_DIAGNOSTIC , 1 , page_code , bufflen >> 8 , bufflen & 0xff , 0 } ; unsigned char recv_page_code ; ret = scsi_execute_req ( sdev , cmd , DMA_FROM_DEVICE , buf , bufflen ... | <S2SV_ModStart> ( unlikely ( <S2SV_ModEnd> ret ) ) |
1,627 | CWE-000 <S2SV_StartBug> void SRV_msgHeader_t_copy ( SRV_msgHeader * to , const SRV_msgHeader * from ) { <S2SV_EndBug> to -> msgNo = from -> msgNo ; to -> sender . idType = from -> sender . idType ; <S2SV_StartBug> SRV_String_copy ( & to -> sender . idSpec , & from -> sender . idSpec ) ; <S2SV_EndBug> <S2SV_StartBug> to... | <S2SV_ModStart> <S2SV_null> <S2SV_null> <S2SV_null> SRV_msgHeader * <S2SV_ModEnd> SRV_msgHeader_t_copy ( SRV_msgHeader <S2SV_ModStart> ( SRV_msgHeader * header ) { SRV_msgHeader * this = SRV_msgHeader_t_new ( ) ; memcpy ( this , header , sizeof ( SRV_msgHeader ) ) <S2SV_ModEnd> ; SRV_String_copy ( <S2SV_ModStart> SRV_S... |
1,628 | CWE-000 int parse_args ( int argc , char * * argv , Arg * arg , Argpdb * argpdb ) { int c ; <S2SV_StartBug> const char usage [ ] = "\\npops<S2SV_blank>[--pdb<S2SV_blank>...<S2SV_blank>|<S2SV_blank>--pdbml<S2SV_blank>...]<S2SV_blank>[OPTIONS<S2SV_blank>...]\\n\\\n<S2SV_blank><S2SV_blank><S2SV_blank>INPUT<S2SV_blank>OPTI... | <S2SV_ModStart> [ ] = "\\npops<S2SV_blank>[--pdb<S2SV_blank>...<S2SV_blank>|<S2SV_blank>--pdbml<S2SV_blank>...]<S2SV_blank>[OPTIONS<S2SV_blank>...]\\n\\\n<S2SV_blank><S2SV_blank>INPUT<S2SV_blank>OPTIONS\\n\\\n<S2SV_blank><S2SV_blank><S2SV_blank><S2SV_blank><S2SV_blank><S2SV_blank><S2SV_blank>Input<S2SV_blank>is<S2SV_bl... |
1,629 | CWE-000 SYSCALL_DEFINE2 ( pivot_root , const char __user * , new_root , const char __user * , put_old ) { struct vfsmount * tmp ; struct path new , old , parent_path , root_parent , root ; int error ; if ( ! capable ( CAP_SYS_ADMIN ) ) return - EPERM ; error = user_path_dir ( new_root , & new ) ; if ( error ) goto out0... | <S2SV_ModStart> goto out4 ; if ( ! is_path_reachable ( new . mnt , new . dentry , & root ) ) goto out4 ; |
1,630 | CWE-000 static void dp_test_send_phy_test_pattern ( struct dc_link * link ) { union phy_test_pattern dpcd_test_pattern ; union lane_adjust dpcd_lane_adjustment [ 2 ] ; unsigned char dpcd_post_cursor_2_adjustment = 0 ; unsigned char test_80_bit_pattern [ ( DP_TEST_80BIT_CUSTOM_PATTERN_79_72 - DP_TEST_80BIT_CUSTOM_PATTER... | <S2SV_ModStart> test_pattern = ( link -> dc -> caps . force_dp_tps4_for_cp2520 <S2SV_ModEnd> == 1 ) <S2SV_ModStart> test_pattern = ( link -> dc -> caps . force_dp_tps4_for_cp2520 <S2SV_ModEnd> == 1 ) |
1,631 | CWE-000 static int process_in_file ( accel_t accel , const char * in_f , <S2SV_StartBug> uint8_t * ibuf , int ibuf_size , <S2SV_EndBug> int check_result , int use_sglist , int use_adler ) { int rc , size_f ; struct stat st ; FILE * i_fp ; uint32_t crc = 0 , m_crc32 = 0 ; uint32_t m_adler32 = 1 ; uint32_t m_inp_processe... | <S2SV_ModStart> * ibuf , void * obuf , <S2SV_ModStart> , ibuf , obuf , <S2SV_ModStart> ) ; } else pr_info ( "<S2SV_blank><S2SV_blank>RETC:<S2SV_blank>%03x<S2SV_blank>%s<S2SV_blank>ATTN:<S2SV_blank>%x<S2SV_blank>PROGR:<S2SV_blank>%x\\n" "<S2SV_blank><S2SV_blank>from<S2SV_blank>card<S2SV_blank>CRC32:<S2SV_blank>%08x<S2SV... |
1,632 | CWE-000 int psh_execute ( char * * args ) { int i ; if ( args [ 0 ] == NULL ) { return 1 ; } <S2SV_StartBug> for ( i = 0 ; i < psh_num_builtins ( ) ; i ++ ) <S2SV_EndBug> { if ( ( i = isbuildin ( args [ 0 ] ) ) != NO ) { return runbuildin ( i , args ) ; } <S2SV_StartBug> } <S2SV_EndBug> return psh_launch ( args ) ; } | <S2SV_ModStart> 1 ; } <S2SV_ModEnd> if ( ( <S2SV_ModStart> ) ; } <S2SV_ModEnd> return psh_launch ( |
1,633 | CWE-000 static inline struct page * __alloc_pages_slowpath ( gfp_t gfp_mask , unsigned int order , struct alloc_context * ac ) { bool can_direct_reclaim = gfp_mask & __GFP_DIRECT_RECLAIM ; struct page * page = NULL ; unsigned int alloc_flags ; unsigned long did_some_progress ; <S2SV_StartBug> enum compact_priority comp... | <S2SV_ModStart> enum compact_priority compact_priority <S2SV_ModEnd> ; enum compact_result <S2SV_ModStart> ; int compaction_retries <S2SV_ModEnd> ; int no_progress_loops <S2SV_ModStart> ; int no_progress_loops <S2SV_ModEnd> ; unsigned long <S2SV_ModStart> * HZ ; unsigned int cpuset_mems_cookie ; <S2SV_ModStart> &= ~ __... |
1,634 | CWE-000 void displayDLL ( FILE * fp , dll * items ) { if ( items -> size == 0 ) { printf ( "[]" ) ; } else if ( items -> size == 1 ) { printf ( "[" ) ; <S2SV_StartBug> items -> display ( fp , items -> head -> value ) ; <S2SV_EndBug> } else { printf ( "[" ) ; dllnode * spot = items -> head ; int counter = 0 ; while ( co... | <S2SV_ModStart> head -> value ) ; printf ( "]" |
1,635 | CWE-000 int main ( int argc , char * argv [ ] ) { struct u_task * tsk = ( struct u_task * ) malloc ( sizeof ( struct u_task ) ) ; memset ( tsk , 0 , sizeof ( struct u_task ) ) ; tsk -> _stack = malloc ( U_STACK_SIZE ) ; tsk -> _stack_size = U_STACK_SIZE ; tsk -> _func = test_task_func ; <S2SV_StartBug> run_task ( tsk )... | <S2SV_ModStart> = test_task_func ; asm_run_task <S2SV_ModEnd> ( tsk ) <S2SV_ModStart> ; i < 100 <S2SV_ModEnd> ; i ++ <S2SV_ModStart> resume_task ( tsk ) ; sleep ( 1 |
1,636 | CWE-000 static int find_check_entry ( struct ipt_entry * e , struct net * net , const char * name , unsigned int size ) { struct xt_entry_target * t ; struct xt_target * target ; int ret ; unsigned int j ; struct xt_mtchk_param mtpar ; struct xt_entry_match * ematch ; <S2SV_StartBug> e -> counters . pcnt = xt_percpu_co... | <S2SV_ModStart> * ematch ; unsigned long pcnt ; <S2SV_ModEnd> pcnt = xt_percpu_counter_alloc <S2SV_ModStart> ( IS_ERR_VALUE ( <S2SV_ModEnd> pcnt ) ) <S2SV_ModStart> return - ENOMEM ; e -> counters . pcnt = pcnt |
1,637 | CWE-000 void do_invalid_op ( struct cpu_user_regs * regs ) { const struct bug_frame * bug = NULL ; u8 bug_insn [ 2 ] ; const char * prefix = "" , * filename , * predicate , * eip = ( char * ) regs -> rip ; unsigned long fixup ; int id = - 1 , lineno ; const struct virtual_region * region ; if ( debugger_trap_entry ( TR... | <S2SV_ModStart> search_exception_table ( regs <S2SV_ModEnd> ) ) != |
1,638 | CWE-000 static const char * set_outdir ( const char * prefix , const char * output_directory ) { if ( output_directory && is_absolute_path ( output_directory ) ) return output_directory ; if ( ! prefix || ! * prefix ) { if ( output_directory ) return output_directory ; outdir_offset = 2 ; return "./" ; } outdir_offset ... | <S2SV_ModStart> prefix ; return <S2SV_ModEnd> prefix_filename ( prefix <S2SV_ModStart> ( prefix , output_directory <S2SV_ModEnd> ) ; } |
1,639 | CWE-000 void __list_add ( struct list_head * new , struct list_head * prev , struct list_head * next ) { WARN ( next -> prev != prev , "list_add<S2SV_blank>corruption.<S2SV_blank>next->prev<S2SV_blank>should<S2SV_blank>be<S2SV_blank>" "prev<S2SV_blank>(%p),<S2SV_blank>but<S2SV_blank>was<S2SV_blank>%p.<S2SV_blank>(next=... | <S2SV_ModStart> next ) ; <S2SV_ModEnd> next -> prev |
1,640 | CWE-000 void ModifyScore ( COURSE * course ) { char studentID [ 10 ] ; double midtermScore ; double finalScore ; int studentIndex = - 1 ; printf ( "Input<S2SV_blank>student<S2SV_blank>ID<S2SV_blank>to<S2SV_blank>modify<S2SV_blank>score:<S2SV_blank>" ) ; scanf ( "%s" , studentID ) ; getchar ( ) ; printf ( "\\n" ) ; for ... | <S2SV_ModStart> ; printf ( "----------------Changed<S2SV_blank>Scores-------------------------\\n" <S2SV_ModEnd> ) ; printf |
1,641 | CWE-000 static SANE_Status finish_pass ( Test_Device * test_device ) { SANE_Status return_status = SANE_STATUS_GOOD ; DBG ( 2 , "finish_pass:<S2SV_blank>test_device=%p\\n" , ( void * ) test_device ) ; test_device -> scanning = SANE_FALSE ; if ( test_device -> pipe >= 0 ) { DBG ( 2 , "finish_pass:<S2SV_blank>closing<S2S... | <S2SV_ModStart> ) ; } sanei_thread_invalidate ( test_device -> reader_pid ) <S2SV_ModEnd> ; } if |
1,642 | CWE-000 int32_t rtapi_app_main ( void ) { int32_t mem_fd ; uint32_t vrt_offset = 0 ; off_t phy_block_addr = 0 ; int32_t n , retval ; int8_t * data , * token ; int32_t pin ; comp_id = hal_init ( "hal_gpio_h3" ) ; if ( comp_id < 0 ) { rtapi_print_msg ( RTAPI_MSG_ERR , "hal_gpio_h3:<S2SV_blank>ERROR:<S2SV_blank>hal_init()... | <S2SV_ModStart> ; for ( n <S2SV_ModEnd> = GPIO_A ; <S2SV_ModStart> = GPIO_A ; n <S2SV_ModEnd> <= GPIO_I ; <S2SV_ModStart> GPIO_I ; ++ n <S2SV_ModEnd> ) { _GPIO_port_reg <S2SV_ModStart> { _GPIO_port_reg [ n <S2SV_ModEnd> ] = ( <S2SV_ModStart> + vrt_offset + n <S2SV_ModEnd> * 0x24 ) |
1,643 | CWE-000 int main ( void ) { const char * a = "abc" ; const char * b = a ; <S2SV_StartBug> strpbrk ( b ++ , "" ) ; <S2SV_EndBug> if ( b != a + 1 ) return 1 ; return 0 ; } | <S2SV_ModStart> = a ; DIAG_PUSH_NEEDS_COMMENT ; DIAG_IGNORE_NEEDS_COMMENT ( 9 , "-Wunused-value" ) ; <S2SV_ModStart> , "" ) ; DIAG_POP_NEEDS_COMMENT |
1,644 | CWE-000 SRes decode ( unsigned int input_base , unsigned int output_base , unsigned int file_size ) { UInt64 unpackSize = 0 ; int i ; SRes res = 0 ; CLzmaDec state ; int header_size = LZMA_PROPS_SIZE + 8 ; Byte ( * header ) [ header_size ] = ( Byte ( * ) [ header_size ] ) input_base ; <S2SV_StartBug> int hex = 0 ; <S2S... | <S2SV_ModStart> ) input_base ; <S2SV_ModEnd> for ( i <S2SV_ModStart> 1 ) ; <S2SV_ModEnd> LzmaDec_Construct ( & <S2SV_ModStart> , & g_Alloc <S2SV_ModEnd> ) ; Byte |
1,645 | CWE-000 static int qat_sym_do_precomputes ( enum icp_qat_hw_auth_algo hash_alg , const uint8_t * auth_key , uint16_t auth_keylen , uint8_t * p_state_buf , uint16_t * p_state_len , uint8_t aes_cmac ) { int block_size ; uint8_t ipad [ qat_hash_get_block_size ( ICP_QAT_HW_AUTH_ALGO_DELIMITER ) ] ; uint8_t opad [ qat_hash_... | <S2SV_ModStart> if ( block_size < 0 ) return block_size <S2SV_ModEnd> ; memset ( |
1,646 | CWE-000 static int dsi_event_thread ( void * data ) { struct mdss_dsi_event * ev ; struct dsi_event_q * evq ; struct mdss_dsi_ctrl_pdata * ctrl ; unsigned long flag ; struct sched_param param ; u32 todo = 0 , ln_status ; u32 arg ; int ret ; param . sched_priority = 16 ; ret = sched_setscheduler_nocheck ( current , SCHE... | <S2SV_ModStart> ( todo & DSI_EV_DLNx_FIFO_UNDERFLOW <S2SV_ModEnd> ) { mutex_lock |
1,647 | CWE-000 int tcaps ( t_env * e ) { if ( ! tcaps_check_key ( BUF , 27 , 91 , 65 ) && ! tcaps_check_key ( BUF , 27 , 91 , 66 ) ) TCAPS . hist_move = - 1 ; if ( BUF [ 0 ] == 4 ) ft_exit ( e ) ; else if ( tcaps_check_read ( BUF ) ) tcaps_insert ( e ) ; else if ( tcaps_check_key ( BUF , 12 , 0 , 0 ) ) tcaps_clear ( e ) ; els... | <S2SV_ModStart> e ) ; else if ( tcaps_check_key ( BUF , 27 , 91 , 49 ) && TCAPS . nb_move ) tcaps_ctrl_mov ( e ) ; else if ( BUF [ 0 ] ) printf ( "\\n%d<S2SV_blank>|<S2SV_blank>%d<S2SV_blank>|<S2SV_blank>%d\\n" , BUF [ 0 ] , BUF [ 1 ] , BUF [ 2 ] ) ; |
1,648 | CWE-000 static void mca_btl_vader_sc_emu_afop_complete ( mca_btl_base_module_t * btl , mca_btl_base_endpoint_t * endpoint , mca_btl_base_descriptor_t * desc , int status ) { mca_btl_vader_frag_t * frag = ( mca_btl_vader_frag_t * ) desc ; mca_btl_vader_sc_emu_hdr_t * hdr ; void * local_address = frag -> rdma . local_add... | <S2SV_ModStart> . local_address ; void * context = frag -> rdma . context ; void * cbdata = frag -> rdma . cbdata ; mca_btl_base_rdma_completion_fn_t cbfunc = frag -> rdma . cbfunc ; <S2SV_ModStart> 0 ] ; MCA_BTL_VADER_FRAG_RETURN ( frag ) ; <S2SV_ModEnd> cbfunc ( btl <S2SV_ModStart> , NULL , context , <S2SV_ModEnd> cb... |
1,649 | CWE-000 ast * create_ast_expr ( int type , code_context * c ) { <S2SV_StartBug> ast * ast_expr = malloc ( sizeof ( ast ) ) ; <S2SV_EndBug> ast_expr -> type = type ; ast_expr -> val = NULL ; ast_expr -> child_count = 0 ; ast_expr -> children = NULL ; if ( c == NULL ) ast_expr -> context = c ; else ast_expr -> context = ... | <S2SV_ModStart> * ast_expr = calloc ( 1 , <S2SV_ModEnd> sizeof ( ast |
1,650 | CWE-000 u8 bch2_btree_key_recalc_oldest_gen ( struct bch_fs * c , struct bkey_s_c k ) { const struct bch_extent_ptr * ptr ; u8 max_stale = 0 ; if ( bkey_extent_is_data ( k . k ) ) { struct bkey_s_c_extent e = bkey_s_c_to_extent ( k ) ; extent_for_each_ptr ( e , ptr ) { <S2SV_StartBug> struct bch_dev * ca = c -> devs [ ... | <S2SV_ModStart> * ca = bch_dev_bkey_exists ( c , <S2SV_ModEnd> ptr -> dev <S2SV_ModStart> ptr -> dev ) <S2SV_ModEnd> ; size_t b |
1,651 | CWE-000 static void hdcp_lib_msg_recvd ( struct hdcp_lib_handle * handle ) { int rc = 0 ; struct hdmi_hdcp_wakeup_data cdata = { HDMI_HDCP_WKUP_CMD_INVALID } ; struct hdcp_rcvd_msg_req * req_buf ; struct hdcp_rcvd_msg_rsp * rsp_buf ; uint32_t msglen ; char * msg ; if ( ! handle || ! handle -> qseecom_handle || ! handle... | <S2SV_ModStart> 0 ) ) { <S2SV_ModStart> = true ; } |
1,652 | CWE-000 int BarCol_Size ( BarColObject * self ) { <S2SV_StartBug> if ( self -> size < 0 ) <S2SV_EndBug> self -> size = ( BarCol_Rows ( self ) ? glp_get_num_rows : glp_get_num_cols ) ( LP ) ; return self -> size ; } | <S2SV_ModStart> self ) { <S2SV_ModEnd> self -> size |
1,653 | CWE-000 static s32 ixgbe_get_phy_id_fw ( struct ixgbe_hw * hw ) { u32 info [ FW_PHY_ACT_DATA_COUNT ] = { 0 } ; u16 phy_speeds ; u16 phy_id_lo ; s32 rc ; u16 i ; rc = ixgbe_fw_phy_activity ( hw , FW_PHY_ACT_GET_PHY_INFO , & info ) ; if ( rc ) return rc ; hw -> phy . speeds_supported = 0 ; phy_speeds = info [ 0 ] & FW_PH... | <S2SV_ModStart> phy_speed ; } # if 0 <S2SV_ModStart> . speeds_supported ; # endif |
1,654 | CWE-000 static void print_flag_v ( t_core * core , t_process * process ) { if ( core -> flags -> v && core -> flags -> verbosity_four && 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_NU... | <S2SV_ModStart> { ft_printf ( "P<S2SV_blank>%4d<S2SV_blank>|<S2SV_blank>%s<S2SV_blank>" <S2SV_ModEnd> , process -> |
1,655 | CWE-000 void simulation ( ) { int p ; float win = 0 ; float lose = 0 ; float winrate ; for ( p = 0 ; p < 100000 ; p ++ ) { dummypower = 1700 ; dummystamina = 3060 ; dummyagility = 680 ; int countermax = 100 ; int playerNo ; int i ; int cycle ; int petcheck ; float dummytr ; float dummycounter = 0 ; float dummyinterval ... | <S2SV_ModStart> = 5 ; byleth ( 0 ) ; byleth <S2SV_ModEnd> ( 1 ) <S2SV_ModStart> 1 ) ; byleth <S2SV_ModEnd> ( 2 ) <S2SV_ModStart> 2 ) ; byleth <S2SV_ModEnd> ( 3 ) <S2SV_ModStart> 3 ) ; byleth <S2SV_ModEnd> ( 4 ) <S2SV_ModStart> ; printf ( "won<S2SV_blank>=<S2SV_blank>%f<S2SV_blank>lost<S2SV_blank>=<S2SV_blank>%f\\n" <S2... |
1,656 | CWE-000 static int host1x_probe ( struct platform_device * pdev ) { const struct of_device_id * id ; struct host1x * host ; struct resource * regs ; int syncpt_irq ; int err ; id = of_match_device ( host1x_of_match , & pdev -> dev ) ; if ( ! id ) return - EINVAL ; regs = platform_get_resource ( pdev , IORESOURCE_MEM , ... | <S2SV_ModStart> -> dev , "failed<S2SV_blank>to<S2SV_blank>get<S2SV_blank>IRQ:<S2SV_blank>%d\\n" , syncpt_irq ) ; return syncpt_irq <S2SV_ModEnd> ; } host |
1,657 | CWE-000 <S2SV_StartBug> static PHP_METHOD ( Phalcon_Mvc_Model_Relation , getReferencedModel ) { <S2SV_EndBug> zval * this_ptr = getThis ( ) ; RETURN_MEMBER ( getThis ( ) , "_referencedModel" ) ; } | <S2SV_ModStart> static PHP_METHOD ( Phalcon_Cache_Frontend_Msgpack , stop ) { <S2SV_ModEnd> } <S2SV_null> <S2SV_null> |
1,658 | CWE-000 Datum hypertable_create ( PG_FUNCTION_ARGS ) { Oid table_relid = PG_GETARG_OID ( 0 ) ; Name associated_schema_name = PG_ARGISNULL ( 4 ) ? NULL : PG_GETARG_NAME ( 4 ) ; Name associated_table_prefix = PG_ARGISNULL ( 5 ) ? NULL : PG_GETARG_NAME ( 5 ) ; bool create_default_indexes = PG_ARGISNULL ( 7 ) ? false : PG_... | <S2SV_ModStart> ) ) ; timescaledb_move_from_table_to_chunks <S2SV_ModEnd> ( ht , <S2SV_ModStart> ) ; } insert_blocker_trigger_add ( table_relid ) ; |
1,659 | CWE-000 NV_ID NV_Op_callArgs ( const NV_ID * tList , int index , const NV_ID * ctx ) { NV_ID t , r ; const NV_ID scope = NV_Context_getCurrentScope ( ctx ) ; int phase ; phase = NV_Op_Internal_getCurrentPhase ( tList ) ; t = NV_Array_getByIndex ( tList , index - 1 ) ; <S2SV_StartBug> t = NV_Term_tryReadAsVariable ( & t... | <S2SV_ModStart> ; t = NV_Term_tryReadAsVariableData <S2SV_ModEnd> ( & t |
1,660 | CWE-000 int ft_printf ( char * format , ... ) { va_list arglist ; <S2SV_StartBug> int len ; <S2SV_EndBug> <S2SV_StartBug> va_start ( arglist , format ) ; <S2SV_EndBug> len = 0 ; if ( format ) <S2SV_StartBug> len = read_format ( format , arglist ) ; <S2SV_EndBug> <S2SV_StartBug> va_end ( arglist ) ; <S2SV_EndBug> return... | <S2SV_ModStart> va_list arglist ; va_list copy ; <S2SV_ModStart> arglist , format ) ; va_copy ( copy , arglist <S2SV_ModStart> ( format ) { <S2SV_ModStart> arglist ) ; len += check_char_nulls ( format , copy ) ; } <S2SV_ModStart> va_end ( arglist ) ; va_end ( copy |
1,661 | CWE-000 ACPI_STATUS AcpiUtGetResourceEndTag ( ACPI_OPERAND_OBJECT * ObjDesc , UINT8 * * EndTag ) { ACPI_STATUS Status ; ACPI_FUNCTION_TRACE ( UtGetResourceEndTag ) ; <S2SV_StartBug> if ( ! ObjDesc -> Buffer . Length ) <S2SV_EndBug> { * EndTag = ObjDesc -> Buffer . Pointer ; return_ACPI_STATUS ( AE_OK ) ; } Status = Acp... | <S2SV_ModStart> UtGetResourceEndTag ) ; <S2SV_ModEnd> Status = AcpiUtWalkAmlResources <S2SV_ModStart> * ) EndTag , FALSE ) ; if ( Status == AE_AML_NO_RESOURCE_END_TAG ) { Status = AE_OK ; } <S2SV_ModEnd> return_ACPI_STATUS ( Status |
1,662 | CWE-000 void SimulateTagLowFrequency ( int period , int gap , int ledcontrol ) { int i ; uint8_t * tab = BigBuf_get_addr ( ) ; FpgaDownloadAndGo ( FPGA_BITSTREAM_LF ) ; FpgaWriteConfWord ( FPGA_MAJOR_MODE_LF_EDGE_DETECT ) ; AT91C_BASE_PIOA -> PIO_PER = GPIO_SSC_DOUT | GPIO_SSC_CLK ; AT91C_BASE_PIOA -> PIO_OER = GPIO_SS... | <S2SV_ModStart> ) ) { FpgaWriteConfWord ( FPGA_MAJOR_MODE_OFF ) ; <S2SV_ModStart> BUTTON_PRESS ( ) || ( usb_poll_validate_length ( ) ) <S2SV_ModStart> DbpString ( "Stopped" ) ; FpgaWriteConfWord ( FPGA_MAJOR_MODE_OFF |
1,663 | CWE-000 void transport_receiver ( unsigned char * buffer , size_t buffer_len ) { int i ; sml_file * file = sml_file_parse ( buffer + 8 , buffer_len - 16 ) ; sml_file_print ( file ) ; printf ( "OBIS<S2SV_blank>data\\n" ) ; for ( i = 0 ; i < file -> messages_len ; i ++ ) { sml_message * message = file -> messages [ i ] ;... | <S2SV_ModStart> "\\n" ) ; fflush ( stdout ) ; } } <S2SV_ModStart> file ) ; <S2SV_ModEnd> } <S2SV_null> <S2SV_null> |
1,664 | CWE-000 bool device_attach_att ( struct btd_device * dev , GIOChannel * io ) { GError * gerr = NULL ; GAttrib * attrib ; BtIOSecLevel sec_level ; uint16_t mtu ; uint16_t cid ; struct btd_gatt_database * database ; bt_io_get ( io , & gerr , BT_IO_OPT_SEC_LEVEL , & sec_level , BT_IO_OPT_IMTU , & mtu , BT_IO_OPT_CID , & c... | <S2SV_ModStart> dev -> att_mtu , false |
1,665 | CWE-000 void netcode_server_connect_client ( struct netcode_server_t * server , int client_index , struct netcode_address_t * address , uint64_t client_id , int encryption_index ) { assert ( server ) ; assert ( server -> running ) ; assert ( client_index >= 0 ) ; assert ( client_index < server -> max_clients ) ; assert... | <S2SV_ModStart> = client_index ; packet . max_clients = server -> max_clients ; |
1,666 | CWE-000 static Node * insertNode ( Node * tree , char * word , int file_num ) { if ( tree == NULL ) { return newNode ( word ) ; } if ( strcasecmp ( tree -> word , word ) < 0 ) { tree -> rightNode = insertNode ( tree -> rightNode , word , file_num ) ; } else if ( strcasecmp ( tree -> word , word ) > 0 ) { tree -> leftNo... | <S2SV_ModStart> { if ( file_num != 1 && |
1,667 | CWE-000 int main ( void ) { HAL_Init ( ) ; SystemClock_Config ( ) ; MX_GPIO_Init ( ) ; MX_I2C2_Init ( ) ; MX_RTC_Init ( ) ; MX_USART2_UART_Init ( ) ; pca9685_init ( ) ; pca9685_set_pin ( 1 , 2048 ) ; <S2SV_StartBug> while ( 1 ) <S2SV_EndBug> { <S2SV_StartBug> } <S2SV_EndBug> } | <S2SV_ModStart> 2048 ) ; HAL_GPIO_WritePin ( OutputEnable_GPIO_Port , OutputEnable_Pin , 0 ) ; <S2SV_ModStart> 1 ) { HAL_GPIO_WritePin ( OutputEnable_GPIO_Port , OutputEnable_Pin , 0 ) ; |
1,668 | CWE-000 int contemplate_new_session ( ) { if ( packd . hook == 3 ) return contemplate_new_session_output ( ) ; if ( packd . hook == 2 ) { if ( packd . nb_mptcp_options > 0 ) return contemplate_new_session_input ( ) ; else return contemplate_new_session_output ( ) ; } if ( packd . hook == 1 && packd . nb_mptcp_options >... | <S2SV_ModStart> msg_buf ) ; <S2SV_ModEnd> return 0 ; |
1,669 | CWE-000 static void bfq_exit_queue ( struct elevator_queue * e ) { struct bfq_data * bfqd = e -> elevator_data ; struct request_queue * q = bfqd -> queue ; struct bfq_queue * bfqq , * n ; bfq_shutdown_timer_wq ( bfqd ) ; spin_lock_irq ( q -> queue_lock ) ; BUG_ON ( bfqd -> in_service_queue ) ; list_for_each_entry_safe ... | <S2SV_ModStart> ; # else bfq_put_async_queues ( bfqd , bfqd -> root_group ) ; |
1,670 | CWE-000 void pchar ( stack_t * * stack , unsigned int line_number ) { int i ; if ( stack_len ( * stack ) < 1 || * stack == NULL ) { printf ( "L%u:<S2SV_blank>can\'t<S2SV_blank>pchar,<S2SV_blank>stack<S2SV_blank>empty\\n" , line_number ) ; exit ( EXIT_FAILURE ) ; } i = ( * stack ) -> n ; <S2SV_StartBug> if ( i <= 0 && i... | <S2SV_ModStart> i <= 0 || i >= 128 <S2SV_ModEnd> ) { printf |
1,671 | CWE-000 void USBD_Reset ( void ) { uint32_t i ; <S2SV_StartBug> for ( i = 1 ; i < 16 ; i ++ ) { <S2SV_EndBug> USB0 -> ENDPOINT [ i ] . ENDPT = 0x00 ; <S2SV_StartBug> } <S2SV_EndBug> BD [ IDX ( 0 , RX , ODD ) ] . bc = USBD_MAX_PACKET0 ; BD [ IDX ( 0 , RX , ODD ) ] . buf_addr = ( uint32_t ) & ( EPBuf [ IDX ( 0 , RX , ODD... | <S2SV_ModStart> uint32_t i ; NVIC_DisableIRQ ( USB0_IRQn ) ; <S2SV_ModStart> 0x00 ; } memset ( StatQueue , 0 , sizeof ( StatQueue ) ) ; StatQueueHead = 0 ; StatQueueTail = 0 ; LastIstat = 0 ; UsbSuspended = 0 ; <S2SV_ModStart> = 0x00 ; NVIC_EnableIRQ ( USB0_IRQn ) ; |
1,672 | CWE-000 int all_case_redirection ( t_word * list ) { int res ; res = 0 ; while ( list && ! is_logic ( list -> type ) && list -> type != SEMI_DOT && list -> type != PIPE ) { if ( list -> type == GREAT ) res = redi_great ( list ) ; else if ( list -> type == DGREAT ) res = redi_dgreat ( list ) ; else if ( list -> type == ... | <S2SV_ModStart> -> type == <S2SV_ModEnd> LESSAND ) res |
1,673 | CWE-000 static int sof_probe ( struct platform_device * pdev ) { struct snd_sof_pdata * plat_data = dev_get_platdata ( & pdev -> dev ) ; struct snd_sof_dev * sdev ; int ret ; sdev = devm_kzalloc ( & pdev -> dev , sizeof ( * sdev ) , GFP_KERNEL ) ; if ( sdev == NULL ) return - ENOMEM ; dev_dbg ( & pdev -> dev , "probing... | <S2SV_ModStart> sdev ) ; spin_lock_init ( & sdev -> ipc_lock ) ; spin_lock_init ( & sdev -> hw_lock ) ; |
1,674 | CWE-000 static void get_path ( t_ls_file * file , char * path ) { size_t path_len ; size_t name_len ; char * path_tmp ; char * name_tmp ; if ( ! * path ) <S2SV_StartBug> if ( ! ( file -> path = ft_strdup ( file -> name ) ) ) <S2SV_EndBug> ft_error ( "Error:<S2SV_blank>ft_strdup<S2SV_blank>failed" ) ; <S2SV_StartBug> pa... | <S2SV_ModStart> * path ) { <S2SV_ModStart> "Error:<S2SV_blank>ft_strdup<S2SV_blank>failed" ) ; return ; } <S2SV_ModStart> ( ! ( path_tmp <S2SV_ModEnd> = ( char <S2SV_ModStart> "Error:<S2SV_blank>malloc<S2SV_blank>failed." ) ; <S2SV_ModEnd> file -> path <S2SV_ModStart> file -> path = path_tmp |
1,675 | CWE-000 void init_globals ( void ) { gGameState = TITLE_SCREEN_STATE ; gDisplayLives = 0 ; gPpuCtrlBase = 0x94 ; gMusicOn = 0 ; <S2SV_StartBug> } <S2SV_EndBug> | <S2SV_ModStart> = 0 ; gSoundEffectCounter = 0xFF ; |
1,676 | CWE-000 int32_t LP_mypriceset ( int32_t * changedp , char * base , char * rel , double price ) { struct LP_priceinfo * basepp , * relpp ; struct LP_pubkeyinfo * pubp ; * changedp = 0 ; if ( base != 0 && rel != 0 && ( basepp = LP_priceinfofind ( base ) ) != 0 && ( relpp = LP_priceinfofind ( rel ) ) != 0 ) { if ( fabs ( ... | <S2SV_ModStart> = price ; <S2SV_ModEnd> } return ( |
1,677 | CWE-000 <S2SV_StartBug> static void CG_DoSaber ( vec3_t origin , vec3_t dir , float length , saber_colors_t color , int rfx ) <S2SV_EndBug> { vec3_t mid , rgb = { 1 , 1 , 1 } ; qhandle_t blade = 0 , glow = 0 ; refEntity_t saber ; float radiusmult ; if ( length < 0.5f ) { return ; } VectorMA ( origin , length * 0.5f , d... | <S2SV_ModStart> void CG_DoSaber ( const <S2SV_ModStart> vec3_t origin , const |
1,678 | CWE-000 static int d_demangle_callback ( const char * mangled , int options , demangle_callbackref callback , void * opaque ) { enum { DCT_TYPE , DCT_MANGLED , DCT_GLOBAL_CTORS , DCT_GLOBAL_DTORS } type ; struct d_info di ; struct demangle_component * dc ; int status ; if ( mangled [ 0 ] == '_' && mangled [ 1 ] == 'Z' ... | <S2SV_ModStart> ; # else # ifdef _MSC_VER di . comps = calloc ( di . num_comps * sizeof ( * di . comps ) , 1 ) ; di . subs = calloc ( di . num_subs * sizeof ( * di . subs ) , 1 ) ; # else <S2SV_ModStart> ) ) ; # endif |
1,679 | CWE-000 int msm_jpeg_hw_exec_cmds ( struct msm_jpeg_hw_cmd * hw_cmd_p , uint32_t m_cmds , uint32_t max_size , void * base ) { int is_copy_to_user = - 1 ; uint32_t data ; while ( m_cmds -- ) { <S2SV_StartBug> if ( hw_cmd_p -> offset > max_size ) { <S2SV_EndBug> JPEG_PR_ERR ( "%s:%d]<S2SV_blank>%d<S2SV_blank>exceed<S2SV_... | <S2SV_ModStart> hw_cmd_p -> offset >= <S2SV_ModEnd> max_size ) { |
1,680 | CWE-000 LinkedListValue linked_list_pop_element ( LinkedList * l ) { void * result = NULL ; <S2SV_StartBug> if ( LOCK_LIST ) { <S2SV_EndBug> pthread_mutex_lock ( & ( l -> mutex ) ) ; <S2SV_StartBug> } <S2SV_EndBug> LinkedListItem * li = l -> head ; if ( li != NULL ) { if ( li -> prev != NULL ) { li -> prev -> next = NU... | <S2SV_ModStart> = NULL ; <S2SV_ModEnd> pthread_mutex_lock ( & <S2SV_ModStart> ) ) ; <S2SV_ModEnd> LinkedListItem * li <S2SV_ModStart> ) ; } <S2SV_ModEnd> pthread_mutex_unlock ( & <S2SV_ModStart> ) ) ; <S2SV_ModEnd> return result ; |
1,681 | CWE-000 static void omap_hsmmc_soft_timeout ( unsigned long data ) { struct omap_hsmmc_host * host = ( struct omap_hsmmc_host * ) data ; hsmmc_command_incomplete ( host , - ETIMEDOUT , 0 ) ; <S2SV_StartBug> } <S2SV_EndBug> | <S2SV_ModStart> 0 ) ; host -> data_timeout = 0 ; |
1,682 | CWE-000 static int glusterBlockParseArgs ( int count , char * * options ) { int ret = 0 ; size_t opt = 0 ; int json = GB_JSON_NONE ; opt = glusterBlockCLIOptEnumParse ( options [ 1 ] ) ; if ( ! opt || opt >= GB_CLI_OPT_MAX ) { <S2SV_StartBug> MSG ( "Unknown<S2SV_blank>option:<S2SV_blank>%s\\n" , options [ 1 ] ) ; <S2SV... | <S2SV_ModStart> { MSG ( stderr , <S2SV_ModStart> { MSG ( stderr , <S2SV_ModStart> : MSG ( stdout , |
1,683 | CWE-000 static int cxd2841er_write_reg ( struct cxd2841er_priv * priv , u8 addr , u8 reg , u8 val ) { <S2SV_StartBug> return cxd2841er_write_regs ( priv , addr , reg , & val , 1 ) ; <S2SV_EndBug> } | <S2SV_ModStart> val ) { u8 tmp = val ; <S2SV_ModStart> reg , & tmp <S2SV_ModEnd> , 1 ) |
1,684 | CWE-000 char * _gwd ( ) { size_t size = 255 ; char * pwd ; while ( ( pwd = getcwd ( NULL , size ) ) == NULL ) { switch ( errno ) { case ERANGE : size = ( size * 3 ) / 2 ; continue ; <S2SV_StartBug> case EACCES : error ( ALARM_PERMDENY ) ; return NULL ; <S2SV_EndBug> <S2SV_StartBug> default : error ( "" ) ; return NULL ... | <S2SV_ModStart> case EACCES : pwd_error <S2SV_ModEnd> ( ALARM_PERMDENY ) <S2SV_ModStart> ; default : pwd_error <S2SV_ModEnd> ( "" ) |
1,685 | CWE-000 static int init_tx_pools ( struct net_device * netdev ) { struct ibmvnic_adapter * adapter = netdev_priv ( netdev ) ; struct device * dev = & adapter -> vdev -> dev ; struct ibmvnic_tx_pool * tx_pool ; int tx_subcrqs ; int i , j ; tx_subcrqs = be32_to_cpu ( adapter -> login_rsp_buf -> num_txsubm_subcrqs ) ; ada... | <S2SV_ModStart> - 1 ; adapter -> num_active_tx_pools = 0 ; <S2SV_ModStart> 0 ; } adapter -> num_active_tx_pools = tx_subcrqs ; |
1,686 | CWE-000 SPDConnection * spd_open2 ( const char * client_name , const char * connection_name , const char * user_name , SPDConnectionMode mode , SPDConnectionAddress * address , int autospawn , char * * error_result ) { SPDConnection * connection = NULL ; SPDConnectionAddress * defaultAddress = NULL ; char * set_client_... | <S2SV_ModStart> ( resolve_error ) ; free ( connection ) ; connection = NULL <S2SV_ModStart> socket ) ; free ( connection ) ; connection = NULL ; <S2SV_ModStart> socket ) ; free ( connection ) ; connection = NULL ; |
1,687 | CWE-000 int huge_ptep_set_access_flags ( struct vm_area_struct * vma , unsigned long addr , pte_t * ptep , pte_t pte , int dirty ) { pte_t * cpte ; if ( pte_cont ( pte ) ) { int ncontig , i , changed = 0 ; size_t pgsize = 0 ; unsigned long pfn = pte_pfn ( pte ) ; pgprot_t hugeprot = __pgprot ( pte_val ( pfn_pte ( pfn ,... | <S2SV_ModStart> , cpte , <S2SV_ModEnd> & pgsize ) |
1,688 | CWE-000 static <S2SV_StartBug> int loop ( unsigned int entry_point , unsigned int capacity ) <S2SV_EndBug> { unsigned int g = entry_point % capacity ; unsigned int res = ( g + capacity ) % capacity ; int s_res = ( int ) res ; <S2SV_StartBug> return s_res ; <S2SV_EndBug> } | <S2SV_ModStart> <S2SV_null> <S2SV_null> static unsigned <S2SV_ModStart> res ; return res <S2SV_ModEnd> ; } <S2SV_null> |
1,689 | CWE-000 static void f2fs_write_block ( struct f2fs_sb_info * sbi , nid_t ino , void * buffer , u64 count , pgoff_t offset ) { u64 start = F2FS_BYTES_TO_BLK ( offset ) ; u64 len = F2FS_BYTES_TO_BLK ( count ) ; u64 end_offset ; u64 off_in_block , len_in_block , len_already ; struct dnode_of_data dn = { 0 } ; void * data_... | <S2SV_ModStart> inode ; int idirty = 0 ; int <S2SV_ModStart> ) - off_in_block ; if ( len_in_block > count ) len_in_block = count <S2SV_ModStart> == NULL_ADDR ) { <S2SV_ModStart> CURSEG_WARM_DATA ) ; blkaddr = dn . data_blkaddr ; idirty |= dn . idirty ; } <S2SV_ModStart> ( data_blk , blkaddr <S2SV_ModEnd> ) ; ASSERT <S2... |
1,690 | CWE-000 int acqQueue ( const char * buf , int length ) { <S2SV_StartBug> # if 0 <S2SV_EndBug> ESP_LOGI ( TAG , "in<S2SV_blank>acqQueue<S2SV_blank><S2SV_blank><S2SV_blank><S2SV_blank>buf:%s,<S2SV_blank>length:%d" , buf , length ) ; for ( int i = 0 ; i < length ; i ++ ) { acqwrite_buffer [ ( acqwrite_index_in + i ) % ACQ... | <S2SV_ModStart> { # if 1 <S2SV_ModEnd> ESP_LOGI ( TAG <S2SV_ModStart> 0 ) ; xSemaphoreGive ( acq_file_mutex ) ; ESP_LOGI <S2SV_ModEnd> ( TAG , |
1,691 | CWE-000 static int netlink_release ( struct socket * sock ) { struct sock * sk = sock -> sk ; struct netlink_sock * nlk ; if ( ! sk ) return 0 ; netlink_remove ( sk ) ; sock_orphan ( sk ) ; nlk = nlk_sk ( sk ) ; sock -> sk = NULL ; wake_up_interruptible_all ( & nlk -> wait ) ; skb_queue_purge ( & sk -> sk_write_queue )... | <S2SV_ModStart> 0 ) { struct listeners * old ; old = nl_deref_protected ( nl_table [ sk -> sk_protocol ] . listeners ) ; RCU_INIT_POINTER ( nl_table [ sk -> sk_protocol ] . listeners , NULL ) ; kfree_rcu ( old , rcu <S2SV_ModEnd> ) ; nl_table |
1,692 | CWE-000 static gboolean lua_tcp_process_read_handler ( struct lua_tcp_cbdata * cbd , struct lua_tcp_read_handler * rh , gboolean eof ) { guint slen ; goffset pos ; if ( rh -> stop_pattern ) { slen = rh -> plen ; if ( cbd -> in -> len >= slen ) { if ( ( pos = rspamd_substring_search ( cbd -> in -> data , cbd -> in -> le... | <S2SV_ModStart> "NOT<S2SV_blank>found<S2SV_blank>TCP<S2SV_blank>stop<S2SV_blank>pattern" ) ; if ( ! cbd -> eof ) { <S2SV_ModStart> cbd ) ; } else { lua_tcp_push_error ( cbd , TRUE , "IO<S2SV_blank>read<S2SV_blank>error:<S2SV_blank>connection<S2SV_blank>terminated" ) ; } |
1,693 | CWE-000 static void sdma_load_firmware ( const struct firmware * fw , void * context ) { struct sdma_engine * sdma = context ; const struct sdma_firmware_header * header ; const struct sdma_script_start_addrs * addr ; unsigned short * ram_code ; <S2SV_StartBug> if ( ! fw ) { <S2SV_EndBug> dev_err ( sdma -> dev , "firmw... | <S2SV_ModStart> ! fw ) return ; <S2SV_ModEnd> if ( fw |
1,694 | CWE-000 bool srsMemStack_Push ( srsMEMSTACK * stack , const void * data ) { bool result = false ; void * top = NULL ; size_t count = 0 ; if ( stack == NULL ) { goto done ; } <S2SV_StartBug> if ( stack -> memory == NULL ) <S2SV_EndBug> { goto done ; } count = stack -> count ; <S2SV_StartBug> top = stack -> top ; <S2SV_E... | <S2SV_ModStart> } if ( data == NULL ) { goto done ; } if ( <S2SV_ModStart> -> count ; <S2SV_ModEnd> stack -> count <S2SV_ModStart> ) ; goto revert <S2SV_ModEnd> ; } top <S2SV_ModStart> ) ; goto revert <S2SV_ModEnd> ; } result |
1,695 | CWE-000 static void selection_buffer_read_cb ( GObject * object , GAsyncResult * result , gpointer user_data ) { SelectionBuffer * buffer = user_data ; gboolean finished = TRUE ; GError * error = NULL ; GBytes * bytes ; bytes = g_input_stream_read_bytes_finish ( buffer -> stream , result , & error ) ; if ( bytes ) { <S... | <S2SV_ModStart> ( bytes ) == 0 <S2SV_ModEnd> ; selection_buffer_append_data ( |
1,696 | CWE-000 static void CleanupTransaction ( void ) { TransactionState s = CurrentTransactionState ; if ( s -> state != TRANS_ABORT ) elog ( FATAL , "CleanupTransaction:<S2SV_blank>unexpected<S2SV_blank>state<S2SV_blank>%s" , TransStateAsString ( s -> state ) ) ; AtCleanup_Portals ( ) ; CurrentResourceOwner = NULL ; if ( T... | <S2SV_ModStart> ( ) ; AtEOXact_ResGroup ( false ) ; <S2SV_ModStart> true ) ; <S2SV_ModEnd> } <S2SV_null> <S2SV_null> |
1,697 | CWE-000 void ioreg_write ( byte r , byte b ) { if ( ! hw . cgb ) { switch ( r ) { case RI_VBK : case RI_BCPS : case RI_OCPS : case RI_BCPD : case RI_OCPD : case RI_SVBK : case RI_KEY1 : case RI_HDMA1 : case RI_HDMA2 : case RI_HDMA3 : case RI_HDMA4 : case RI_HDMA5 : return ; } } switch ( r ) { case RI_TIMA : case RI_TMA... | <S2SV_ModStart> ; } R_SC <S2SV_ModEnd> = b ; |
1,698 | CWE-000 const char * hsm_client_http_edge_get_trusted_certificates ( HSM_CLIENT_HANDLE handle ) { const char * trusted_certificates ; BUFFER_HANDLE http_response = NULL ; STRING_HANDLE uri_path = NULL ; if ( handle == NULL ) { LogError ( "Invalid<S2SV_blank>handle<S2SV_blank>value<S2SV_blank>specified<S2SV_blank>handle... | <S2SV_ModStart> http_response ) ) = = <S2SV_ModEnd> NULL ) { |
1,699 | CWE-000 void setDungeon ( Dungeon * d ) { printf ( "Initilizing<S2SV_blank>Dungeon...\\n" ) ; int row , col ; char topBorder = '-' ; char sideBorder = '|' ; char cornerBorder = '+' ; for ( row = 0 ; row < DUNGEON_HEIGHT ; row ++ ) { for ( col = 0 ; col < DUNGEON_WIDTH ; col ++ ) { if ( row == 0 || row == 20 ) { d -> ma... | <S2SV_ModStart> generateRange ( MIN_HARDNESS + 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.