Unnamed: 0
int64
0
535k
source
stringlengths
50
89.8k
target
stringlengths
23
37.7k
534,600
CWE-000 <S2SV_StartBug> int serial_read ( uint32_t sercom ) { <S2SV_EndBug> <S2SV_StartBug> int data = - 1 ; <S2SV_EndBug> if ( ioread8 ( sercom + USART_INTFLAG ) & INTFLAG_RXC ) { data = ioread16 ( sercom + USART_DATA ) ; } <S2SV_StartBug> return data ; <S2SV_EndBug> }
<S2SV_ModStart> <S2SV_null> <S2SV_null> <S2SV_null> uint8_t <S2SV_ModEnd> serial_read ( uint32_t <S2SV_ModStart> sercom ) { return <S2SV_ModEnd> ioread16 ( sercom <S2SV_ModStart> ) ; } <S2SV_ModEnd> <S2SV_null> <S2SV_null> <S2SV_null>
534,601
CWE-000 static JSON_Value * parse_number_value ( const char * * string ) { char * end ; double number = 0 ; # ifdef JSON_FIXED_NUMBER intmax_t fixed ; errno = 0 ; fixed = strtoimax ( * string , & end , 10 ) ; <S2SV_StartBug> if ( errno == 0 && INT64_MIN <= fixed && fixed <= INT64_MAX ) { <S2SV_EndBug> * string = end ; ...
<S2SV_ModStart> fixed <= INT64_MAX && end != NULL && ( * end == 0x00 || ( * end != '.' && * end != 'e' && * end != 'E' ) )
534,602
CWE-000 int shard_common_mknod_cbk ( call_frame_t * frame , void * cookie , xlator_t * this , int32_t op_ret , int32_t op_errno , inode_t * inode , struct iatt * buf , struct iatt * preparent , struct iatt * postparent , dict_t * xdata ) { int shard_block_num = ( long ) cookie ; int call_count = 0 ; shard_local_t * loc...
<S2SV_ModStart> EEXIST ) { LOCK ( & frame -> lock ) ; { <S2SV_ModStart> ++ ; } UNLOCK ( & frame -> lock ) ; }
534,603
CWE-000 <S2SV_StartBug> inline void <S2SV_EndBug> rpc_array_set_bool ( rpc_object_t array , size_t index , bool value ) { <S2SV_StartBug> rpc_array_set_value ( array , index , rpc_bool_create ( value ) ) ; <S2SV_EndBug> }
<S2SV_ModStart> <S2SV_null> <S2SV_null> inline int <S2SV_ModEnd> rpc_array_set_bool ( rpc_object_t <S2SV_ModStart> value ) { return ( <S2SV_ModStart> value ) ) )
534,604
CWE-000 int drm_fb_helper_restore_fbdev_mode_unlocked ( struct drm_fb_helper * fb_helper ) { bool do_delayed ; int ret ; if ( ! drm_fbdev_emulation ) <S2SV_StartBug> return - ENODEV ; <S2SV_EndBug> mutex_lock ( & fb_helper -> lock ) ; ret = restore_fbdev_mode ( fb_helper ) ; do_delayed = fb_helper -> delayed_hotplug ; ...
<S2SV_ModStart> return - ENODEV ; if ( READ_ONCE ( fb_helper -> deferred_setup ) ) return 0
534,605
CWE-000 void FlowInitConfig ( char quiet ) { SCLogDebug ( "initializing<S2SV_blank>flow<S2SV_blank>engine..." ) ; memset ( & flow_config , 0 , sizeof ( flow_config ) ) ; SC_ATOMIC_INIT ( flow_flags ) ; SC_ATOMIC_INIT ( flow_memuse ) ; SC_ATOMIC_INIT ( flow_prune_idx ) ; FlowQueueInit ( & flow_spare_q ) ; FlowQueueInit ...
<S2SV_ModStart> { if ( conf_val == NULL ) { SCLogError ( SC_ERR_INVALID_YAML_CONF_ENTRY , "Invalid<S2SV_blank>value<S2SV_blank>for<S2SV_blank>flow.memcap:<S2SV_blank>NULL" ) ; exit ( EXIT_FAILURE ) ; } if ( <S2SV_ModStart> { if ( conf_val == NULL ) { SCLogError ( SC_ERR_INVALID_YAML_CONF_ENTRY , "Invalid<S2SV_blank>val...
534,606
CWE-000 int voice_extn_compress_voip_close_input_stream ( struct audio_stream * stream ) { struct stream_in * in = ( struct stream_in * ) stream ; struct audio_device * adev = in -> dev ; int status = 0 ; ALOGD ( "%s:<S2SV_blank>enter" , __func__ ) ; if ( voip_data . in_stream_count > 0 ) { <S2SV_StartBug> adev -> acti...
<S2SV_ModStart> 0 ) { <S2SV_ModEnd> voip_data . in_stream_count <S2SV_ModStart> status = voip_stop_call ( adev ) ; adev -> active_input = get_next_active_input
534,607
CWE-000 void R_DrawBspLeafs ( void ) { const vec4_t leaf_colors [ ] = { { 0.2 , 0.2 , 0.2 , 0.4 } , { 0.8 , 0.2 , 0.2 , 0.4 } , { 0.2 , 0.8 , 0.2 , 0.4 } , { 0.2 , 0.2 , 0.8 , 0.4 } , { 0.8 , 0.8 , 0.2 , 0.4 } , { 0.2 , 0.8 , 0.8 , 0.4 } , { 0.8 , 0.2 , 0.8 , 0.4 } , { 0.8 , 0.8 , 0.8 , 0.4 } } ; if ( ! r_draw_bsp_leaf...
<S2SV_ModStart> R_EnablePolygonOffset ( true ) ; R_PolygonOffset ( R_OFFSET_FACTOR , R_OFFSET_UNITS
534,608
CWE-000 int create ( char * filename ) { unsigned long int seconds ; seconds = time ( NULL ) ; int inode_num ; char data [ BLK_SIZE ] ; int parent_inode_num = rootinode ; char * cwd ; cwd = present_working_directory ( ) ; inode_num = rfs_create ( seconds , F_TYPE ) ; struct dentry newfile , file ; newfile . inode_num =...
<S2SV_ModStart> = '\\0' ; if ( dentry_index != 0 ) { memcpy ( dirdata + dentry_index , & newfile , sizeof ( struct dentry ) ) ; dentry_index ++ ; }
534,609
CWE-000 void ipccb ( const gchar * line ) { gchar * * args = g_strsplit ( line , ":" , 3 ) ; Page * page = NULL ; long lid = atol ( args [ 0 ] ) ; for ( int i = 0 ; i < pages -> len ; i ++ ) if ( ( ( Page * ) pages -> pdata [ i ] ) -> id == lid ) page = pages -> pdata [ i ] ; if ( ! page ) return ; Coms type = * args [...
<S2SV_ModStart> pageon ( page , * arg == 'f'
534,610
CWE-000 static grub_err_t grub_cmd_initrd ( grub_command_t cmd __attribute__ ( ( unused ) ) , int argc , char * argv [ ] ) { grub_file_t * files = 0 ; int i , nfiles = 0 ; grub_size_t size = 0 ; grub_uint8_t * ptr ; if ( argc == 0 ) { grub_error ( GRUB_ERR_BAD_ARGUMENT , N_ ( "filename<S2SV_blank>expected" ) ) ; goto f...
<S2SV_ModStart> ! initrd_mem ) initrd_mem = grub_efi_allocate_pages_max ( 0x3fffffff , BYTES_TO_PAGES ( size ) ) ; if ( ! initrd_mem )
534,611
CWE-000 void HSD_AObjRemove ( HSD_AObj * aobj ) { if ( aobj ) { HSD_FObj * fobj = aobj -> fobj ; if ( fobj ) HSD_FObjRemoveAll ( fobj ) ; aobj -> fobj = NULL ; HSD_JObj * jobj = HSD_JOBJ ( aobj -> hsd_obj ) ; if ( jobj ) HSD_JObjUnref ( jobj ) ; <S2SV_StartBug> aobj -> jobj = NULL ; <S2SV_EndBug> HSD_AObjFree ( aobj ) ...
<S2SV_ModStart> ; aobj -> hsd_obj <S2SV_ModEnd> = NULL ;
534,612
CWE-000 static int set_dlr_clear_gateway_fault ( void * fd , u8 * err ) { struct ksz_request_actual req ; int rc ; set_dlr_req ( & req , DEV_CMD_PUT , SVC_DLR_CLEAR_GATEWAY_PARTIAL_FAULT , CLASS_DLR_OBJECT , 0 , 0 , NULL , 0 ) ; <S2SV_StartBug> rc = dlr_ioctl ( fd , & req ) ; <S2SV_EndBug> if ( ! rc ) rc = req . result...
<S2SV_ModStart> ; rc = sw_ioctl <S2SV_ModEnd> ( fd ,
534,613
CWE-000 static void ping6 ( struct in6_addr * addr , const struct interface * iface ) { struct sockaddr_in6 dest = { AF_INET6 , 0 , 0 , * addr , iface -> ifindex } ; struct icmp6_hdr echo = { . icmp6_type = ICMP6_ECHO_REQUEST } ; struct iovec iov = { & echo , sizeof ( echo ) } ; <S2SV_StartBug> if ( ! strncmp ( iface -...
<S2SV_ModStart> ; if ( iface -> support_slip &&
534,614
CWE-000 ansigraphic_image_RGB_t * ansigraphic_newImage_RGB ( int32_t width , int32_t height ) { ansigraphic_image_RGB_t * image = ( ansigraphic_image_RGB_t * ) malloc ( sizeof ( ansigraphic_image_RGB_t ) ) ; int32_t x , y ; char * pixel ; if ( image == 0 ) return 0 ; else if ( ( image -> pixels = ( ansigraphic_pixel_RG...
<S2SV_ModStart> 41 ] = '\\033' <S2SV_ModEnd> ; pixel [ <S2SV_ModStart> 42 ] = '_' <S2SV_ModEnd> ; } else
534,615
CWE-000 void * startPeerThread ( void * threadData ) { serverSysInfo_t * connectInfo = ( serverSysInfo_t * ) threadData ; char * servPassword = connectInfo -> conf . password ; char * servDownloadFolder = connectInfo -> conf . saveFilesFolder ; int inputConnectFd = connectInfo -> socketFd ; int inputMsgSize = 0 ; char ...
<S2SV_ModStart> inputConnectFd ) ; return EXIT_FAILURE <S2SV_ModEnd> ; } inputMsgSize <S2SV_ModStart> ) ) ; <S2SV_ModEnd> file_size_t remainData = <S2SV_ModStart> inputConnectFd ) ; <S2SV_ModEnd> free ( fileInfoMsgBuff
534,616
CWE-000 void ADIO_Init ( int * argc , char * * * argv , int * error_code ) { # if defined ( ROMIO_XFS ) || defined ( ROMIO_LUSTRE ) char * c ; # endif ADIOI_UNREFERENCED_ARG ( argc ) ; ADIOI_UNREFERENCED_ARG ( argv ) ; # ifdef ROMIO_INSIDE_MPICH MPIR_Ext_init ( ) ; # endif ADIOI_Flatlist = ( ADIOI_Flatlist_node * ) ADI...
<S2SV_ModStart> char * uuid_str = NULL <S2SV_ModStart> char * svcl_str = NULL <S2SV_ModStart> char * group = NULL <S2SV_ModStart> int rc ; rc = daos_init ( ) ; if ( rc ) { printf ( "daos_init()<S2SV_blank>failed<S2SV_blank>with<S2SV_blank>%d\\n" , rc ) ; return ; } <S2SV_ModStart> ; } } printf ( "POOL<S2SV_blank>UUID<S...
534,617
CWE-000 char * getJSONValueFromString ( const char * json , const char * key ) { if ( NULL == json || NULL == key ) { oidc_setArgNullFuncError ( __func__ ) ; return NULL ; <S2SV_StartBug> } <S2SV_EndBug> cJSON * cj = stringToJson ( json ) ; if ( cj == NULL ) { return NULL ; } char * value = getJSONValue ( cj , key ) ; ...
<S2SV_ModStart> NULL ; } initCJSON ( ) ;
534,618
CWE-000 static gboolean initable_init ( GInitable * initable , GCancellable * cancellable , GError * * error ) { # ifdef HAVE_SELINUX gboolean ret = FALSE ; OstreeSePolicy * self = OSTREE_SEPOLICY ( initable ) ; g_autoptr ( GFile ) etc_selinux_dir = NULL ; g_autoptr ( GFile ) policy_config_path = NULL ; g_autoptr ( GFi...
<S2SV_ModStart> rootfs_dfd_owned ; } else if ( ! self -> path ) { self -> path = ot_fdrel_to_gfile ( self -> rootfs_dfd , "." ) ; } else g_assert_not_reached ( ) ;
534,619
CWE-000 int main ( int argc , char * * argv ) { STARTTIMER ; if ( argc != 5 ) { ERROR ( "Wrong<S2SV_blank>number<S2SV_blank>of<S2SV_blank>arguments\\n" ) ; ERROR ( "It<S2SV_blank>must<S2SV_blank>be<S2SV_blank>%s<S2SV_blank>MATRIX_SIZE<S2SV_blank>INPUT_FILENAME1<S2SV_blank>INPUT_FILENAME2<S2SV_blank>OUTPUT_FILENAME\\n" ...
<S2SV_ModStart> ( n ) ; <S2SV_ModStart> ++ ) { MpiMatrix * meta = workers [ worker <S2SV_ModEnd> - 1 ] <S2SV_ModStart> - 1 ] ; int * cols_a = get_cols_a ( a , meta <S2SV_ModStart> ( b , meta ) <S2SV_ModEnd> ; MPI_Send ( <S2SV_ModStart> ; MPI_Send ( rows_b <S2SV_ModEnd> , b ->
534,620
CWE-000 void * Radio_routin ( void * param ) { uint8_t stringformat [ 256 * 2 ] ; int msgid = - 1 ; struct msg_st data ; long int msgtype = 0 ; int len ; struct json_object * pragma = NULL ; uint8_t readbuffer [ 256 + sizeof ( st_ServerMsgUp ) ] ; pst_ServerMsgUp pstServerMsgUp = ( pst_ServerMsgUp ) readbuffer ; data ....
<S2SV_ModStart> ( pragma , <S2SV_ModEnd> "Battery" , json_object_new_int
534,621
CWE-000 int msr_save ( const char * save_path , const char * whitelist_path , const char * msr_path_format , int num_cpu ) { int err = 0 ; int tmp_err = 0 ; int i , j ; <S2SV_StartBug> int msr_fd ; <S2SV_EndBug> char err_msg [ NAME_MAX ] ; size_t num_msr = 0 ; uint64_t * msr_offset = NULL ; uint64_t * msr_mask = NULL ;...
<S2SV_ModStart> ; int msr_fd = - 1 <S2SV_ModStart> err ) { goto exit ; } if ( ! msr_offset || ! msr_mask ) { err = - 1 ; <S2SV_ModStart> , NAME_MAX , "Failed<S2SV_blank>to<S2SV_blank>read<S2SV_blank>msr<S2SV_blank>value<S2SV_blank>0x%zX<S2SV_blank>from<S2SV_blank>MSR<S2SV_blank>file<S2SV_blank>\\"%s\\"!" , msr_offset [...
534,622
CWE-000 gchar * get_info_msg ( ) { if ( finished_drawing ) { if ( edit ) { if ( cur_path -> n == - 1 ) { return "Click<S2SV_blank>and<S2SV_blank>drag<S2SV_blank>point.<S2SV_blank>Then<S2SV_blank>press<S2SV_blank>\'y\'<S2SV_blank>to<S2SV_blank>yank<S2SV_blank>the<S2SV_blank>new<S2SV_blank>circle." ; } else if ( cur_path...
<S2SV_ModStart> { if ( edit_point == cur_path -> n - 1 ) { return "Click<S2SV_blank>and<S2SV_blank>drag<S2SV_blank>point<S2SV_blank>to<S2SV_blank>move.<S2SV_blank>Then<S2SV_blank>press<S2SV_blank>\'y\'<S2SV_blank>to<S2SV_blank>yank<S2SV_blank>path.\\n\'d\'<S2SV_blank>=<S2SV_blank>delete.<S2SV_blank>\'a\'/\'i\'<S2SV_bla...
534,623
CWE-000 void song_library_free ( struct song_library * const this ) { <S2SV_StartBug> this -> c . remove_all_songs ( this ) ; <S2SV_EndBug> free ( this ) ; }
<S2SV_ModStart> this -> c -> <S2SV_ModEnd> remove_all_songs ( this
534,624
CWE-000 static PetscErrorCode CreateBoundaryMesh ( DM dm , DM * subdm , AppCtx * user ) { DMLabel label ; PetscInt dim ; PetscErrorCode ierr ; PetscFunctionBeginUser ; ierr = DMLabelCreate ( "sub" , & label ) ; CHKERRQ ( ierr ) ; ierr = DMPlexMarkBoundaryFaces ( dm , label ) ; CHKERRQ ( ierr ) ; ierr = DMPlexLabelCompl...
<S2SV_ModStart> ierr ) ; ierr = PetscObjectSetName ( ( PetscObject ) * subdm , "boundary" ) ; CHKERRQ ( ierr ) ; ierr = DMViewFromOptions ( * subdm , NULL , "-sub_dm_view" ) ; CHKERRQ ( ierr ) ;
534,625
CWE-000 avro_schema_t avro_schema_link ( avro_schema_t to ) { if ( ! is_avro_named_type ( to ) ) { avro_set_error ( "Can<S2SV_blank>only<S2SV_blank>link<S2SV_blank>to<S2SV_blank>named<S2SV_blank>types" ) ; return NULL ; } struct avro_link_schema_t * link = ( struct avro_link_schema_t * ) avro_new ( struct avro_link_sch...
<S2SV_ModStart> -> to = to <S2SV_ModEnd> ; avro_schema_init (
534,626
CWE-000 int rand_pos ( ) { <S2SV_StartBug> if ( seed <= 0 ) <S2SV_EndBug> { seed += m ; } seed = a * ( seed % q ) - r * ( seed / q ) ; <S2SV_StartBug> return seed ; <S2SV_EndBug> }
<S2SV_ModStart> ( ) { <S2SV_ModEnd> seed = a <S2SV_ModStart> q ) ; if ( seed <= 0 ) { seed += m ; }
534,627
CWE-000 static void update_recirc_rules__ ( struct bond * bond ) { struct match match ; struct bond_pr_rule_op * pr_op , * next_op ; uint64_t ofpacts_stub [ 128 / 8 ] ; struct ofpbuf ofpacts ; int i ; ofpbuf_use_stub ( & ofpacts , ofpacts_stub , sizeof ofpacts_stub ) ; HMAP_FOR_EACH ( pr_op , hmap_node , & bond -> pr_r...
<S2SV_ModStart> hmap_node ) ; if ( bond -> hash ) { <S2SV_ModStart> = NULL ; }
534,628
CWE-000 uint32_t USBD_ReadEP ( uint32_t EPNum , uint8_t * pData , uint32_t size ) { uint32_t n , sz , idx , setup = 0 ; idx = IDX ( EPNum , RX , 0 ) ; sz = BD [ idx ] . bc ; if ( ( EPNum == 0 ) && ( TOK_PID ( idx ) == SETUP_TOKEN ) ) { setup = 1 ; } if ( size < sz ) { util_assert ( 0 ) ; sz = size ; } for ( n = 0 ; n <...
<S2SV_ModStart> BD_OWN_MASK ; } <S2SV_ModEnd> return ( sz
534,629
CWE-000 void ass_lazy_track_init ( ASS_Library * lib , ASS_Track * track ) { if ( track -> PlayResX > 0 && track -> PlayResY > 0 ) return ; if ( track -> PlayResX <= 0 && track -> PlayResY <= 0 ) { ass_msg ( lib , MSGL_WARN , "Neither<S2SV_blank>PlayResX<S2SV_blank>nor<S2SV_blank>PlayResY<S2SV_blank>defined.<S2SV_blank...
<S2SV_ModStart> -> PlayResY = FFMAX ( 1 , <S2SV_ModStart> 3 / 4 ) <S2SV_ModStart> -> PlayResX = FFMAX ( 1 , <S2SV_ModStart> 4 / 3 )
534,630
CWE-000 unsigned int alloc ( unsigned int size , unsigned char page_align , heap_t * heap ) { unsigned int new_size = size + sizeof ( header_t ) + sizeof ( footer_t ) ; int iterator = find_smallest_hole ( new_size , page_align , heap ) ; if ( iterator == - 1 ) { unsigned int old_length = heap -> end_address - heap -> s...
<S2SV_ModStart> - new_size ; <S2SV_ModEnd> if ( positive <S2SV_ModStart> was_aligned ) { <S2SV_ModEnd> new_size = ( <S2SV_ModStart> index ) ; <S2SV_ModEnd> insert_ordered_array ( (
534,631
CWE-000 PixMapComponents * pixmap_filter_split_into_components ( PixMapImage * image ) { int width = pixmap_image_get_width ( image ) ; int height = pixmap_image_get_height ( image ) ; int max_value = pixmap_image_get_max_color_value ( image ) ; PixMapImageType type = pixmap_image_get_type ( image ) ; PixMapComponents ...
<S2SV_ModStart> , 0 , & <S2SV_ModStart> , 0 , & <S2SV_ModStart> . blue , &
534,632
CWE-000 int isci_task_I_T_nexus_reset ( struct domain_device * dev ) { struct isci_host * ihost = dev_to_ihost ( dev ) ; struct isci_remote_device * idev ; unsigned long flags ; int ret ; spin_lock_irqsave ( & ihost -> scic_lock , flags ) ; idev = isci_get_device ( dev -> lldd_dev ) ; spin_unlock_irqrestore ( & ihost -...
<S2SV_ModStart> { ret = - ENODEV <S2SV_ModEnd> ; goto out
534,633
CWE-000 void i40iw_process_aeq ( struct i40iw_device * iwdev ) { struct i40iw_sc_dev * dev = & iwdev -> sc_dev ; struct i40iw_aeq * aeq = & iwdev -> aeq ; struct i40iw_sc_aeq * sc_aeq = & aeq -> sc_aeq ; struct i40iw_aeqe_info aeinfo ; struct i40iw_aeqe_info * info = & aeinfo ; int ret ; struct i40iw_qp * iwqp = NULL ;...
<S2SV_ModStart> -> term_flags ) break <S2SV_ModEnd> ; if ( <S2SV_ModStart> close_timer_started ) ) break <S2SV_ModEnd> ; i40iw_cm_disconn (
534,634
CWE-000 void rip_redistribute_delete ( int type , int sub_type , struct prefix_ipv4 * p , ifindex_t ifindex ) { int ret ; struct route_node * rp ; struct rip_info * rinfo ; ret = rip_destination_check ( p -> prefix ) ; if ( ! ret ) return ; rp = route_node_lookup ( rip -> table , ( struct prefix * ) p ) ; if ( rp ) { s...
<S2SV_ModStart> ) zlog_debug ( "Poison<S2SV_blank>%s/%d<S2SV_blank>on<S2SV_blank>the<S2SV_blank>interface<S2SV_blank>%s<S2SV_blank>with<S2SV_blank>an<S2SV_blank>" <S2SV_ModEnd> "infinity<S2SV_blank>metric<S2SV_blank>[delete]" , inet_ntoa
534,635
CWE-000 int resampler_resample_from_input ( struct resampler_itfe * resampler , int16_t * in , size_t * inFrameCount , int16_t * out , size_t * outFrameCount ) { <S2SV_StartBug> struct resampler * rsmp = ( struct resampler * ) resampler ; <S2SV_EndBug> spx_uint32_t inFrames , outFrames ; if ( rsmp == NULL || in == NULL...
<S2SV_ModStart> * ) resampler <S2SV_ModEnd> ; if ( <S2SV_ModStart> , in , ( spx_uint32_t * ) inFrameCount <S2SV_ModEnd> , out , <S2SV_ModStart> , out , ( spx_uint32_t * ) outFrameCount <S2SV_ModEnd> ) ; } <S2SV_ModStart> , in , ( spx_uint32_t * ) inFrameCount <S2SV_ModEnd> , out , <S2SV_ModStart> , out , ( spx_uint32_t...
534,636
CWE-000 WimaItemHandle wima_item_find ( WimaItemHandle item , int x , int y , uint32_t flags , uint32_t mask ) { WimaItemHandle best_hit ; best_hit . item = - 1 ; WimaItem * pitem = wima_item_ptr ( item ) ; <S2SV_StartBug> if ( pitem -> flags & UI_ITEM_FROZEN ) { <S2SV_EndBug> return best_hit ; } if ( wima_item_contain...
<S2SV_ModStart> -> flags & WIMA_ITEM_FROZEN <S2SV_ModEnd> ) { return
534,637
CWE-000 double atan2 ( double oy , double ox ) { double ah , al , t , xh , x , y , z ; int i , k , hx , hy , sx , sy ; # ifndef lint <S2SV_StartBug> volatile int inexact ; <S2SV_EndBug> # endif hy = ( ( int * ) & oy ) [ HIWORD ] ; sy = hy & 0x80000000 ; hy &= ~ 0x80000000 ; hx = ( ( int * ) & ox ) [ HIWORD ] ; sx = hx ...
<S2SV_ModStart> volatile int inexact __attribute__ ( ( unused ) )
534,638
CWE-000 PyTypeObject * new_list_type ( PyNameSpace * ns ) { PyTypeObject * type = new_type ( LIST_TYPE , ns , list_buitinfuncs , builtinfunc_array_entries ( list_buitinfuncs ) , sizeof ( PyTypeObject ) , PYOBJ_FLAGS_INHERITABLE | PYOBJ_FLAG_ISBUILTIN ) ; new_builtin_attribute ( type -> __type_namespace__ , ( PyObject *...
<S2SV_ModStart> "__class__" ) ; pyc_decrement_refcount ( ( PyObject * ) type ) ;
534,639
CWE-000 inline INT poly_fmult_two_polys2x2 ( const UINT deg , COMPLEX const * const p1_11 , const UINT p1_stride , COMPLEX const * const p2_11 , const UINT p2_stride , COMPLEX * const result_11 , const UINT result_stride , fft_wrapper_plan_t plan_fwd , fft_wrapper_plan_t plan_inv , COMPLEX * const buf0 , COMPLEX * cons...
<S2SV_ModStart> buf2 ) { INT <S2SV_ModEnd> ret_code ; COMPLEX
534,640
CWE-000 static void try_add_empty_parent_dir_entry_from_wt ( const char * worktree , struct index_state * istate , GList * ignore_list , const char * path ) { if ( index_name_exists ( istate , path , strlen ( path ) , 0 ) != NULL ) return ; char * parent_dir = g_path_get_dirname ( path ) ; if ( strcmp ( parent_dir , "....
<S2SV_ModStart> NULL ) ; if ( ! utf8_path ) { g_free ( long_path ) ; goto out ; }
534,641
CWE-000 static int i915_huc_load_status_info ( struct seq_file * m , void * data ) { struct drm_i915_private * dev_priv = node_to_i915 ( m -> private ) ; <S2SV_StartBug> struct intel_uc_fw * huc_fw = & dev_priv -> huc . fw ; <S2SV_EndBug> if ( ! HAS_HUC_UCODE ( dev_priv ) ) return 0 ; <S2SV_StartBug> seq_puts ( m , "Hu...
<S2SV_ModStart> ) ; struct drm_printer p <S2SV_ModEnd> ; if ( <S2SV_ModStart> return 0 ; p = drm_seq_file_printer ( m ) ; intel_uc_fw_dump ( & dev_priv -> huc . fw , & p <S2SV_ModEnd> ) ; intel_runtime_pm_get
534,642
CWE-000 static PyObject * bytes_concat ( PyObject * a , PyObject * b ) { Py_buffer va , vb ; PyObject * result = NULL ; va . len = - 1 ; vb . len = - 1 ; if ( PyObject_GetBuffer ( a , & va , PyBUF_SIMPLE ) != 0 || PyObject_GetBuffer ( b , & vb , PyBUF_SIMPLE ) != 0 ) { PyErr_Format ( PyExc_TypeError , "can\'t<S2SV_blan...
<S2SV_ModStart> , Py_TYPE ( b <S2SV_ModEnd> ) -> tp_name <S2SV_ModStart> , Py_TYPE ( a <S2SV_ModEnd> ) -> tp_name
534,643
CWE-000 void editorDrawRows ( ) { int y ; for ( y = 0 ; y < E . screenrows ; y ++ ) { <S2SV_StartBug> write ( STDERR_FILENO , "~\\r\\n" , 3 ) ; <S2SV_EndBug> } <S2SV_StartBug> } <S2SV_EndBug>
<S2SV_ModStart> ( STDERR_FILENO , "~" , 1 ) ; if ( y < E . screenrows - 1 ) { write ( STDOUT_FILENO , "\\r\\n" , 2 <S2SV_ModEnd> ) ; } <S2SV_ModStart> ; } } }
534,644
CWE-000 static int dpdk_fin_input ( libtrace_t * libtrace ) { libtrace_list_node_t * n ; if ( libtrace -> format_data != NULL ) { if ( FORMAT ( libtrace ) -> port != 0xFF ) rte_eth_dev_callback_unregister ( FORMAT ( libtrace ) -> port , RTE_ETH_EVENT_INTR_LSC , dpdk_lsc_callback , FORMAT ( libtrace ) ) ; rte_eth_dev_cl...
<S2SV_ModStart> per_stream ) ; if ( FORMAT ( libtrace ) -> rss_key ) free ( FORMAT ( libtrace ) -> rss_key ) ;
534,645
CWE-000 static inline void high_threshold_int_check ( struct adux1050_chip * adux1050 , u16 high_status_change ) { u8 stg_cnt ; u8 temp_ht_enable = adux1050 -> high_thresh_enable ; u8 temp_ht_intr_err = GET_HIGH_STATUS ( adux1050 -> user_intr_err ) ; for ( stg_cnt = 0 ; stg_cnt < TOTAL_STG ; stg_cnt ++ ) { if ( ( ! ( t...
<S2SV_ModStart> 1 ) { dev_dbg <S2SV_ModEnd> ( adux1050 -> <S2SV_ModStart> } else { dev_dbg <S2SV_ModEnd> ( adux1050 ->
534,646
CWE-000 int fpga_driver_write_buffer_to_cl ( int slot_id , int channel , int fd , size_t buffer_size , size_t address ) { int rc ; size_t write_offset = 0 ; while ( write_offset < buffer_size ) { if ( write_offset != 0 ) { printf ( "Partial<S2SV_blank>write<S2SV_blank>by<S2SV_blank>driver,<S2SV_blank>trying<S2SV_blank>...
<S2SV_ModStart> - write_offset , address <S2SV_ModEnd> + write_offset )
534,647
CWE-000 int drm_writeback_connector_init ( struct drm_device * dev , struct drm_writeback_connector * wb_connector , const struct drm_connector_funcs * con_funcs , const struct drm_encoder_helper_funcs * enc_helper_funcs , const u32 * formats , int n_formats ) { struct drm_property_blob * blob ; struct drm_connector * ...
<S2SV_ModStart> ; ret = drm_connector_attach_encoder <S2SV_ModEnd> ( connector ,
534,648
CWE-000 static void * _PyMem_DebugRawRealloc ( void * ctx , void * p , size_t nbytes ) { debug_alloc_api_t * api = ( debug_alloc_api_t * ) ctx ; <S2SV_StartBug> uint8_t * q = ( uint8_t * ) p , * oldq ; <S2SV_EndBug> uint8_t * tail ; size_t total ; size_t original_nbytes ; int i ; if ( p == NULL ) return _PyMem_DebugRaw...
<S2SV_ModStart> * ) p <S2SV_ModEnd> ; uint8_t * <S2SV_ModStart> return NULL ; <S2SV_ModEnd> q = ( <S2SV_ModStart> return NULL ; <S2SV_ModEnd> write_size_t ( q
534,649
CWE-000 int init_expr ( Token * t , char endChar ) { while ( node_used_ct > 0 ) { nodes [ -- node_used_ct ] . l = NULL ; nodes [ node_used_ct ] . r = NULL ; nodes [ node_used_ct ] . tkn = NULL ; nodes [ node_used_ct ] . depth = 0 ; nodes [ node_used_ct ] . loc = 0 ; } <S2SV_StartBug> TreeMaxWidth = 0 ; <S2SV_EndBug> Tr...
<S2SV_ModStart> 0 ; } TreeMaxDepth <S2SV_ModEnd> = 0 ;
534,650
CWE-000 void _Class_Object_Init ( Word * word , Namespace * ns ) { Stack * nsstack = _Context_ -> Compiler0 -> NamespacesStack ; Stack_Init ( nsstack ) ; do { Word * initWord ; if ( ( initWord = _Finder_FindWord_InOneNamespace ( _Finder_ , ns , ( byte * ) "init" ) ) ) { _Stack_Push ( nsstack , ( int64 ) initWord ) ; } ...
<S2SV_ModStart> W_Object ) ; <S2SV_ModEnd> Word_Eval ( initWord <S2SV_ModStart> Word_Eval ( initWord <S2SV_ModEnd> ) ; }
534,651
CWE-000 int getDnsServer ( char * addr ) { int ret , i = 0 ; char ch , str [ 100 ] ; FILE * fp ; fp = fopen ( "/etc/resolv.conf" , "r" ) ; if ( fp == NULL ) { printf ( "Error<S2SV_blank>in<S2SV_blank>file<S2SV_blank>opening\\n" ) ; <S2SV_StartBug> return ; <S2SV_EndBug> } while ( ( ch = fgetc ( fp ) ) != EOF ) { str [ ...
<S2SV_ModStart> ) ; return - 1
534,652
CWE-000 int ext4_get_encryption_info ( struct inode * inode ) { struct ext4_inode_info * ei = EXT4_I ( inode ) ; struct ext4_crypt_info * crypt_info ; char full_key_descriptor [ EXT4_KEY_DESC_PREFIX_SIZE + ( EXT4_KEY_DESCRIPTOR_SIZE * 2 ) + 1 ] ; struct key * keyring_key = NULL ; struct ext4_encryption_key * master_key...
<S2SV_ModStart> break ; case EXT4_ENCRYPTION_MODE_AES_256_HEH : cipher_str = "heh(aes)" ; break ; case
534,653
CWE-000 static enum cmd_retval cmd_new_window_exec ( struct cmd * self , struct cmdq_item * item ) { struct args * args = self -> args ; struct cmd_find_state * current = & item -> shared -> current ; struct session * s = item -> target . s ; struct winlink * wl = item -> target . wl ; struct client * c = cmd_find_clie...
<S2SV_ModStart> ; else name <S2SV_ModEnd> = NULL ;
534,654
CWE-000 void HeuristicResolve ( ) { <S2SV_StartBug> struct timeval start , end ; <S2SV_EndBug> hTime = 0.0 ; hSteps = 0 ; gettimeofday ( & start , NULL ) ; int sent1 = 0 ; while ( 1 ) { if ( sentlist [ sent1 ] . num_pred == 0 ) break ; sent1 ++ ; } <S2SV_StartBug> hSteps = 20 ; <S2SV_EndBug> gettimeofday ( & end , NULL...
<S2SV_ModStart> start , end ; Assignment Theta [ MAXPRED ] <S2SV_ModStart> ++ ; } int heuristic [ ] = orderByPreds ( sent1 , sentlist [ sent1 ] . pred ) ; for ( i = 0 ; i < sent1 ; i ++ ) { hSteps += Unify ( sent1 , heuristic [ i ] , Theta ) ; } <S2SV_ModEnd> gettimeofday ( & <S2SV_ModStart> end . tv_usec - <S2SV_ModEn...
534,655
CWE-000 static grpc_resolver * dns_create ( grpc_resolver_args * args , const char * default_port , <S2SV_StartBug> const char * lb_policy_name ) { <S2SV_EndBug> if ( 0 != strcmp ( args -> uri -> authority , "" ) ) { gpr_log ( GPR_ERROR , "authority<S2SV_blank>based<S2SV_blank>dns<S2SV_blank>uri\'s<S2SV_blank>not<S2SV_...
<S2SV_ModStart> lb_policy_name ) { dns_resolver * r ; grpc_error * error = GRPC_ERROR_NONE ; char * proxy_name ; const char * path = args -> uri -> path ; <S2SV_ModStart> NULL ; } error = grpc_ares_init ( ) ; if ( error != GRPC_ERROR_NONE ) { GRPC_LOG_IF_ERROR ( "ares_library_init()<S2SV_blank>failed" , error ) ; retur...
534,656
CWE-000 void cdrom_phase_callback ( uint8_t id ) { switch ( cdrom [ id ] . packet_status ) { case CDROM_PHASE_IDLE : cdrom_log ( "CD-ROM<S2SV_blank>%i:<S2SV_blank>CDROM_PHASE_IDLE\\n" , id ) ; cdrom [ id ] . pos = 0 ; cdrom [ id ] . phase = 1 ; cdrom [ id ] . status = READY_STAT | DRQ_STAT | ( cdrom [ id ] . status & E...
<S2SV_ModStart> = 0xFF ; cdrom_buf_free ( id ) ; <S2SV_ModStart> = 3 ; cdrom_buf_free ( id ) ; <S2SV_ModStart> cdrom_irq_raise ( id ) ; ui_sb_update_icon ( SB_CDROM | id , 0
534,657
CWE-000 gint main ( gint argc , gchar * * argv ) { g_test_init ( & argc , & argv , NULL ) ; g_test_message ( "Testing<S2SV_blank>filesystem<S2SV_blank>miner" ) ; ADD_TEST ( "/indexing-tree/recursive-indexing" , test_recursive_indexing ) ; ADD_TEST ( "/indexing-tree/non-recursive-indexing" , <S2SV_StartBug> test_recursi...
<S2SV_ModStart> ( "/indexing-tree/non-recursive-indexing" , test_non_recursive_indexing <S2SV_ModEnd> ) ; ADD_TEST <S2SV_ModStart> ( "event-queue/create-and-move" , test_event_queue_create_and_move <S2SV_ModEnd> ) ; ADD_TEST
534,658
CWE-000 void * totemknet_buffer_alloc ( void ) { <S2SV_StartBug> return malloc ( FRAME_SIZE_MAX ) ; <S2SV_EndBug> }
<S2SV_ModStart> return malloc ( KNET_MAX_PACKET_SIZE <S2SV_ModEnd> ) ; }
534,659
CWE-000 void admin_get_stats ( network_mysqld_con * con , char * p ) { if ( ! p ) { admin_supported_stats ( con ) ; return ; } if ( con -> is_admin_client ) { con -> admin_read_merge = 1 ; return ; } char buffer [ 32 ] ; cetus_pid_t process_id = getpid ( ) ; sprintf ( buffer , "%d" , process_id ) ; GPtrArray * fields =...
<S2SV_ModStart> = 0 ; int backends_num = network_backends_count ( chas -> priv -> backends ) ; <S2SV_ModStart> ; i < backends_num <S2SV_ModEnd> && i <
534,660
CWE-000 void sntp_set_system_time ( u32_t sec ) { char buf [ 32 ] ; struct tm current_time_val ; time_t current_time = ( time_t ) sec ; # ifdef _MSC_VER localtime_s ( & current_time_val , & current_time ) ; # else localtime_r ( & current_time , & current_time_val ) ; # endif strftime ( buf , sizeof ( buf ) , "%d.%m.%Y<...
<S2SV_ModStart> current_time_val ) ; LWIP_PLATFORM_DIAG ( <S2SV_ModEnd> ( "SNTP<S2SV_blank>time:<S2SV_blank>%s\\n" , <S2SV_ModStart> , buf ) )
534,661
CWE-000 static inline void * _sched_main ( void * data ) { thread_set_name ( "PbWorker" ) ; sched_loop_t * context = ( sched_loop_t * ) data ; context -> started = 1 ; sched_task_context_t * stc = NULL ; if ( NULL == ( stc = sched_task_context_new ( context ) ) ) ERROR_LOG_ERRNO_GOTO ( KILLED , "Cannot<S2SV_blank>initi...
<S2SV_ModStart> "Cannot<S2SV_blank>interrupt<S2SV_blank>the<S2SV_blank>equeue" ) ; if ( _dispatcher_waiting ) { if ( pthread_mutex_lock ( & _dispatcher_mutex ) < 0 ) LOG_WARNING_ERRNO ( "Cannot<S2SV_blank>lock<S2SV_blank>the<S2SV_blank>dispatcher<S2SV_blank>mutex" ) ; if ( pthread_cond_signal ( & _dispatcher_cond ) < 0...
534,662
CWE-000 void task_print_stats ( ) { <S2SV_StartBug> unsigned i ; <S2SV_EndBug> PRINTF ( "REAL<S2SV_blank>TIME<S2SV_blank>end<S2SV_blank>is<S2SV_blank>65536*%u+%u\\r\\n" , overflow , ( unsigned ) TBR ) ; BLOCK_PRINTF_BEGIN ( ) ; BLOCK_PRINTF ( "filter:\\r\\n" ) ; for ( i = 0 ; i < NUM_BUCKETS ; ++ i ) { BLOCK_PRINTF ( "...
<S2SV_ModStart> { unsigned i <S2SV_ModEnd> ; PRINTF (
534,663
CWE-000 void new_message ( int type , const char * msgfmt , ... ) { va_list args ; size_t i ; va_start ( args , msgfmt ) ; vsnprintf ( next_msg , sizeof ( next_msg ) , msgfmt , args ) ; va_end ( args ) ; if ( msglen > 0 ) { if ( ! overstrike ) { i = strlen ( next_msg ) ; if ( ( type & MT_delayed ) == 0 ) { <S2SV_StartB...
<S2SV_ModStart> 0 ) { if ( <S2SV_ModStart> type & MT_standout ) { <S2SV_ModEnd> top_standout ( next_msg <S2SV_ModStart> ( next_msg ) ; } else { <S2SV_ModEnd> fputs ( next_msg <S2SV_ModStart> stdout ) ; } <S2SV_ModEnd> clear_eol ( msglen <S2SV_ModStart> 0 ) { if ( <S2SV_ModStart> type & MT_standout ) { <S2SV_ModEnd> top...
534,664
CWE-000 void start_sequence ( struct dali_config * c , UInt32 * time ) { struct render_state * state = c -> render_state ; int i ; for ( i = 0 ; i < countof ( state -> current_frames ) ; i ++ ) { if ( state -> orig_frames [ i ] ) free ( state -> orig_frames [ i ] ) ; state -> orig_frames [ i ] = state -> current_frames...
<S2SV_ModStart> ++ ) { state -> target_digits [ i ] = 1 ;
534,665
CWE-000 static GtkWidget * decode_add_simple_page ( decode_as_t * entry ) { GtkWidget * page , * label , * scrolled_window , * combo_box ; gchar prompt [ MAX_DECODE_AS_PROMPT_LEN ] ; page = ws_gtk_box_new ( GTK_ORIENTATION_HORIZONTAL , 5 , FALSE ) ; g_object_set_data ( G_OBJECT ( page ) , E_PAGE_ACTION , decode_simple ...
<S2SV_ModStart> entry ) ; g_object_set_data ( G_OBJECT ( page ) , E_PAGE_CURR_LAYER_NUM , GUINT_TO_POINTER ( ( guint ) cfile . edt -> pi . curr_layer_num ) ) ; <S2SV_ModStart> ) ) ; <S2SV_ModEnd> entry -> values
534,666
CWE-000 int tool_tests ( void ) { <S2SV_StartBug> int result = 0 ; <S2SV_EndBug> TEST_CASE ( test_deq_basic , 0 ) ; TEST_CASE ( test_deq_basic2 , 0 ) ; TEST_CASE ( test_deq_multi , 0 ) ; TEST_CASE ( test_bitmask , 0 ) ; return result ; }
<S2SV_ModStart> result = 0 ; char * test_group = "tool_tests"
534,667
CWE-000 void gatMemcachedCommand ( client * c ) { unsigned long expire ; robj * o ; expire = ( unsigned long ) c -> argv [ 2 ] -> ptr ; o = lookupKeyRead ( c -> db , c -> argv [ 1 ] ) ; if ( ! o ) { <S2SV_StartBug> replyMemcachedBinaryHeaderForGetOrTouch ( c , NULL , 0 , 0 , 0 , 0 ) ; <S2SV_EndBug> return ; } c -> bina...
<S2SV_ModStart> o ) { if ( ! ( c -> flags & CLIENT_NO_REPLY ) ) { <S2SV_ModStart> 0 ) ; } <S2SV_ModStart> o ) ; c -> flags &= ~ CLIENT_NO_REPLY ;
534,668
CWE-000 void decrement_hour ( struct state * s ) { s -> hour -- ; <S2SV_StartBug> if ( s -> hour < 0 ) { <S2SV_EndBug> decrement_day ( s ) ; <S2SV_StartBug> s -> hour += 24 ; <S2SV_EndBug> } }
<S2SV_ModStart> s -> hour == <S2SV_ModEnd> 0 ) { <S2SV_ModStart> s -> hour == <S2SV_ModEnd> 24 ; }
534,669
CWE-000 void schedule_init ( ) { slotOffset_t start_slotOffset ; slotOffset_t running_slotOffset ; open_addr_t temp_neighbor ; memset ( & schedule_vars , 0 , sizeof ( schedule_vars_t ) ) ; for ( running_slotOffset = 0 ; running_slotOffset < MAXACTIVESLOTS ; running_slotOffset ++ ) { schedule_resetEntry ( & schedule_var...
<S2SV_ModStart> = MAXACTIVESLOTS ; schedule_vars . backoff = openrandom_get16b ( ) % ( 1 << MAXBE ) ;
534,670
CWE-000 void free_output_file ( output_file_t * f ) { <S2SV_StartBug> if ( f ) <S2SV_EndBug> free ( f ) ; <S2SV_StartBug> return ; <S2SV_EndBug> }
<S2SV_ModStart> f ) { output_file_t * next ; while ( f ) { next = f -> next ; <S2SV_ModStart> if ( f -> filename ) free ( f -> filename ) ; <S2SV_ModEnd> free ( f <S2SV_ModStart> f ) ; f = next ; }
534,671
CWE-000 int main ( int argc , char * argv [ ] ) { DIR * dp ; struct dirent * dirp , * direntlist , * cdirent ; char * dirname ; int dirnsize , dirnite ; dirnsize = 10 ; direntlist = calloc ( dirnsize , sizeof ( struct dirent ) ) ; cdirent = direntlist ; dirnite = 0 ; <S2SV_StartBug> if ( argc == 1 ) { <S2SV_EndBug> <S2...
<S2SV_ModStart> = 0 ; dirname = NULL ; <S2SV_ModStart> ( dirname = getcwd ( dirname , 0 <S2SV_ModEnd> ) ) ==
534,672
CWE-000 int ast_hashtab_insert_immediate_bucket ( struct ast_hashtab * tab , const void * obj , unsigned int h ) # endif { int c ; struct ast_hashtab_bucket * b ; if ( ! tab || ! obj ) return 0 ; for ( c = 0 , b = tab -> array [ h ] ; b ; b = b -> next ) c ++ ; if ( c + 1 > tab -> largest_bucket_size ) tab -> largest_b...
<S2SV_ModStart> b = # ifdef __AST_DEBUG_MALLOC <S2SV_ModEnd> __ast_calloc ( 1
534,673
CWE-000 int aml8726_clkmsr_bus_frequency ( ) { struct resource mem ; struct aml8726_clkmsr_softc sc ; phandle_t node ; u_long pbase , psize ; u_long start , size ; int freq ; KASSERT ( aml8726_soc_hw_rev != AML_SOC_HW_REV_UNKNOWN , ( "aml8726_soc_hw_rev<S2SV_blank>isn\'t<S2SV_blank>initialized" ) ) ; <S2SV_StartBug> if...
<S2SV_ModStart> ) ) != - 1 <S2SV_ModEnd> ) if ( <S2SV_ModStart> ) ) == - 1 <S2SV_ModEnd> ) return (
534,674
CWE-000 int __ext_dns_message_write_resource_record ( extDnsCtx * ctx , extDnsResourceRecord * rr , char * buffer , int buffer_size , int position ) { int limit ; int result ; if ( rr -> name == NULL ) { ext_dns_log ( EXT_DNS_LEVEL_CRITICAL , "Recevied<S2SV_blank>request<S2SV_blank>to<S2SV_blank>dump<S2SV_blank>resourc...
<S2SV_ModStart> { ext_dns_log ( EXT_DNS_LEVEL_CRITICAL , "found<S2SV_blank>more<S2SV_blank>content<S2SV_blank>%d<S2SV_blank>(bytes)<S2SV_blank>to<S2SV_blank>be<S2SV_blank>placed<S2SV_blank>into<S2SV_blank>the<S2SV_blank>buffer<S2SV_blank>than<S2SV_blank>is<S2SV_blank>accepted<S2SV_blank>%d<S2SV_blank>(bytes)<S2SV_blank...
534,675
CWE-000 static bool usart_tx_in_progress ( void ) { <S2SV_StartBug> return ! ( USART2 -> SR & ( 1 << 7 ) ) ; <S2SV_EndBug> }
<S2SV_ModStart> ) { return <S2SV_ModEnd> ( USART2 -> <S2SV_ModStart> -> SR & USART_SR_TXE ) == 0 <S2SV_ModEnd> ; } <S2SV_null>
534,676
CWE-000 <S2SV_StartBug> static void filter_itanium_setbits ( unsigned char * data , unsigned int bit_field , int bit_pos , int bit_count ) <S2SV_EndBug> { <S2SV_StartBug> int i , in_addr = bit_pos / 8 ; <S2SV_EndBug> <S2SV_StartBug> int in_bit = bit_pos & 7 ; <S2SV_EndBug> unsigned int and_mask = 0xffffffff >> ( 32 - b...
<S2SV_ModStart> int bit_field , unsigned <S2SV_ModStart> int bit_pos , unsigned <S2SV_ModStart> bit_count ) { unsigned <S2SV_ModStart> / 8 ; unsigned
534,677
CWE-000 int nsub ( string_buffer_t * const string_buffer , regex_t const regexp , string_buffer_t * const replacement_buffer , int const num ) { char * const string = malloc ( ( string_buffer -> eos + 1 ) * sizeof ( char ) ) ; <S2SV_StartBug> string_buffer_t * original_replacement = sbuffer_clone ( replacement_buffer )...
<S2SV_ModStart> ; string_buffer_t * replacement <S2SV_ModEnd> = sbuffer_clone ( <S2SV_ModStart> free ( string ) ; sbuffer_delete ( replacement <S2SV_ModStart> + i , replacement <S2SV_ModEnd> ) ; sbuffer_set_end_of_string <S2SV_ModStart> ( string_buffer , replacement <S2SV_ModEnd> ) ; sbuffer_append <S2SV_ModStart> . rm...
534,678
CWE-000 asmlinkage int sys_my_xtime ( struct timespec * current_time ) { struct timespec buff ; printk ( KERN_ALERT "my_xtime:<S2SV_blank>my_xtime<S2SV_blank>was<S2SV_blank>called!\\n" ) ; if ( copy_from_user ( & buff , current_time , sizeof ( buff ) ) ) { printk ( KERN_ALERT "my_xtime:<S2SV_blank>COPY<S2SV_blank>FROM<...
<S2SV_ModStart> EFAULT ; } <S2SV_ModEnd> printk ( KERN_ALERT <S2SV_ModStart> "my_xtime:<S2SV_blank>SUCCESFUL<S2SV_blank>COPY!\\n" ) ; return 0 ;
534,679
CWE-000 int ble_ll_conn_hci_update ( uint8_t * cmdbuf ) { int rc ; uint8_t ctrl_proc ; uint16_t handle ; struct ble_ll_conn_sm * connsm ; struct hci_conn_update * hcu ; handle = get_le16 ( cmdbuf ) ; connsm = ble_ll_conn_find_active_conn ( handle ) ; if ( ! connsm ) { return BLE_ERR_UNK_CONN_ID ; } if ( IS_PENDING_CTRL...
<S2SV_ModStart> ) { return BLE_ERR_UNSUPP_REM_FEATURE <S2SV_ModEnd> ; } ctrl_proc
534,680
CWE-000 void FORTRAN ( init_c_string_array ) ( int * length , char * * mr_blk1 , char * * * fer_ptr ) { int i ; char * * ptr ; # ifdef MEMORYDEBUG char msg [ 1024 ] ; <S2SV_StartBug> sprintf ( msg , "init_c_string_array<S2SV_blank>assigned<S2SV_blank>as<S2SV_blank>an<S2SV_blank>array<S2SV_blank>of<S2SV_blank>%d<S2SV_bl...
<S2SV_ModStart> ( msg , "assigned<S2SV_blank>by<S2SV_blank>init_c_string_array<S2SV_blank>as<S2SV_blank>an<S2SV_blank>array<S2SV_blank>of<S2SV_blank>%d<S2SV_blank>64-bit<S2SV_blank>pointers<S2SV_blank>(%d<S2SV_blank>bytes)<S2SV_blank>initialize<S2SV_blank>to<S2SV_blank>NULL" , <S2SV_ModEnd> * length ,
534,681
CWE-000 static int binder_update_page_range ( struct binder_proc * proc , int allocate , void * start , void * end , struct vm_area_struct * vma ) { void * page_addr ; unsigned long user_page_addr ; struct vm_struct tmp_area ; struct page * * page ; struct mm_struct * mm ; binder_debug ( BINDER_DEBUG_BUFFER_ALLOC , <S2...
<S2SV_ModStart> ( BINDER_DEBUG_BUFFER_ALLOC , "binder:<S2SV_blank>%d:<S2SV_blank>%s<S2SV_blank>pages<S2SV_blank>%pK-%pK\\n" <S2SV_ModEnd> , proc -> <S2SV_ModStart> BINDER_DEBUG_TOP_ERRORS , "binder:<S2SV_blank>%d:<S2SV_blank>binder_alloc_buf<S2SV_blank>failed<S2SV_blank>" "for<S2SV_blank>page<S2SV_blank>at<S2SV_blank>%...
534,682
CWE-000 char * rsa_sha256_sign_file ( RSA * privKey , const char * file ) { unsigned char * output = NULL ; FILE * fd = NULL ; EVP_MD_CTX * ctx = NULL ; EVP_PKEY_CTX * pkey_ctx = NULL ; unsigned char * buffer = NULL ; fd = fopen ( file , "r" ) ; if ( fd == NULL ) { error ( "Failed<S2SV_blank>to<S2SV_blank>open<S2SV_bla...
<S2SV_ModStart> } printf ( "signature<S2SV_blank>length<S2SV_blank>%zu" <S2SV_ModEnd> , output_len )
534,683
CWE-000 void LS_size ( ) { int i ; linkls * current ; current = & Linkls ; i = 0 ; while ( current -> next != NULL ) { current = current -> next ; i ++ ; } <S2SV_StartBug> printf ( "LS_size<S2SV_blank>%d\\n" , i ) ; <S2SV_EndBug> }
<S2SV_ModStart> } printf ( "LS_size<S2SV_blank>0<S2SV_blank>%d\\n" <S2SV_ModEnd> , i )
534,684
CWE-000 off_t ngx_chain_coalesce_file ( ngx_chain_t * * in , off_t limit ) { off_t total , size , aligned , fprev ; ngx_fd_t fd ; ngx_chain_t * cl ; total = 0 ; cl = * in ; fd = cl -> buf -> file -> fd ; do { size = cl -> buf -> file_last - cl -> buf -> file_pos ; if ( size > limit - total ) { size = limit - total ; al...
<S2SV_ModStart> file_pos ; } total += size ; break ;
534,685
CWE-000 int m_push ( stack_t * * head , int num , int * state ) { int status ; <S2SV_StartBug> if ( state == 1 ) <S2SV_EndBug> { status = add_node_end ( head , num ) ; if ( status == - 1 ) return ( - 1 ) ; return ( 0 ) ; } status = add_node_begin ( head , num ) ; if ( status == - 1 ) return ( - 1 ) ; return ( 0 ) ; }
<S2SV_ModStart> int status ; printf ( "value<S2SV_blank>of<S2SV_blank>state:<S2SV_blank>%d\\n" , * state ) ; if ( * <S2SV_ModEnd> state == 1
534,686
CWE-000 void aeDeleteFileEvent ( aeEventLoop * eventLoop , int fd , int mask ) { if ( fd >= eventLoop -> setsize ) return ; aeFileEvent * fe = & eventLoop -> events [ fd ] ; if ( fe -> mask == AE_NONE ) return ; aeApiDelEvent ( eventLoop , fd , mask ) ; fe -> mask = fe -> mask & ( ~ mask ) ; if ( fd == eventLoop -> max...
<S2SV_ModStart> j ; } close ( fd ) ;
534,687
CWE-000 static void xenbus_va_dev_error ( struct xenbus_device * dev , int err , const char * fmt , va_list ap ) { unsigned int len ; char * printf_buffer ; char * path_buffer ; # define PRINTF_BUFFER_SIZE 4096 printf_buffer = kmalloc ( PRINTF_BUFFER_SIZE , GFP_KERNEL ) ; if ( ! printf_buffer ) return ; len = sprintf (...
<S2SV_ModStart> ; if ( path_buffer ) <S2SV_ModEnd> xenbus_write ( XBT_NIL <S2SV_ModStart> path_buffer , "error" <S2SV_ModEnd> , printf_buffer )
534,688
CWE-000 static bool intel_fbdev_init_bios ( struct drm_device * dev , struct intel_fbdev * ifbdev ) { struct intel_framebuffer * fb = NULL ; struct drm_crtc * crtc ; struct intel_crtc * intel_crtc ; unsigned int max_size = 0 ; for_each_crtc ( dev , crtc ) { struct drm_i915_gem_object * obj = intel_fb_obj ( crtc -> prim...
<S2SV_ModStart> -> base . format -> format <S2SV_ModEnd> , fb ->
534,689
CWE-000 static int __gnix_vc_hndl_conn_req ( struct gnix_cm_nic * cm_nic , char * msg_buffer , struct gnix_address src_cm_nic_addr ) { int ret = FI_SUCCESS ; gni_return_t __attribute__ ( ( unused ) ) status ; struct gnix_fid_ep * ep = NULL ; gnix_ht_key_t key ; struct gnix_av_addr_entry entry ; struct gnix_address src_...
<S2SV_ModStart> GNIX_VC_CONNECTING ; } vc -> peer_caps = peer_caps ; <S2SV_ModStart> } vc -> peer_caps = peer_caps ; vc -> peer_id = src_vc_id ; vc -> <S2SV_ModStart> conn_state = GNIX_VC_CONNECTED <S2SV_ModEnd> ; GNIX_DEBUG ( <S2SV_ModStart> ) ; } <S2SV_ModEnd> err : COND_RELEASE
534,690
CWE-000 static void emit_dbg_loc ( EmitContext * ctx , LLVMBuilderRef builder , const unsigned char * cil_code ) { MonoCompile * cfg = ctx -> cfg ; if ( ctx -> minfo && cil_code && cil_code >= cfg -> header -> code && cil_code < cfg -> header -> code + cfg -> header -> code_size ) { MonoDebugSourceLocation * loc ; LLVM...
<S2SV_ModStart> ; loc = mono_debug_method_lookup_location <S2SV_ModEnd> ( ctx -> <S2SV_ModStart> ; # endif mono_debug_free_source_location <S2SV_ModEnd> ( loc )
534,691
CWE-000 void print_board ( ) { <S2SV_StartBug> system ( "printf<S2SV_blank>\\"\\033c\\"" ) ; <S2SV_EndBug> for ( int col = 0 ; col < HEIGHT ; col ++ ) { <S2SV_StartBug> for ( int row = 0 ; row < WIDTH ; row ++ ) <S2SV_EndBug> { <S2SV_StartBug> if ( row == row_player && col == col_player ) printf ( "%c" , PLAYER ) ; <S2...
<S2SV_ModStart> "printf<S2SV_blank>\\"\\033c\\"" ) ; for ( int row = 0 ; row < WIDTH ; row ++ ) { <S2SV_ModStart> ++ ) { if ( col == col_player && <S2SV_ModEnd> row == row_player <S2SV_ModStart> row == row_player <S2SV_ModEnd> ) printf ( <S2SV_ModStart> , array [ col ] [ row <S2SV_ModEnd> ] [ 1 <S2SV_ModStart> , array ...
534,692
CWE-000 <S2SV_StartBug> void hash_table_destroy ( struct hash_table * table ) <S2SV_EndBug> { if ( ! table ) return ; for ( int i = 0 ; i < table -> num_buckets ; i ++ ) { struct hash_entry * cur = table -> buckets [ i ] , * next = NULL ; while ( cur ) { next = cur -> next ; <S2SV_StartBug> hash_entry_destroy ( cur ) ;...
<S2SV_ModStart> hash_table * table , void ( destroy ) ( void * ) <S2SV_ModStart> -> next ; if ( cur -> value ) destroy ( cur -> value ) ; cur -> value = NULL ;
534,693
CWE-000 void wcnss_reset_fiq ( bool clk_chk_en ) { if ( wcnss_hardware_type ( ) == WCNSS_PRONTO_HW ) { if ( clk_chk_en ) { wcnss_log_debug_regs_on_bite ( ) ; } else { wcnss_pronto_log_debug_regs ( ) ; <S2SV_StartBug> if ( wcnss_get_mux_control ( ) ) <S2SV_EndBug> <S2SV_StartBug> wcnss_log_iris_regs ( ) ; <S2SV_EndBug> ...
<S2SV_ModStart> ( ) ; # ifdef CONFIG_WCNSS_REGISTER_DUMP_ON_BITE <S2SV_ModStart> ( ) ; # endif
534,694
CWE-000 static void proxy_device_error_cb ( MbimDevice * device , GError * error , MbimProxy * self ) { if ( g_error_matches ( error , MBIM_PROTOCOL_ERROR , MBIM_PROTOCOL_ERROR_NOT_OPENED ) ) { <S2SV_StartBug> g_debug ( "Device<S2SV_blank>not<S2SV_blank>opened<S2SV_blank>error<S2SV_blank>reported,<S2SV_blank>forcing<S2...
<S2SV_ModStart> { g_debug ( "device<S2SV_blank>\'%s\'<S2SV_blank>reports<S2SV_blank>as<S2SV_blank>being<S2SV_blank>closed..." , mbim_device_get_path ( device ) ) ; reset_client_service_subscribe_lists ( self , device <S2SV_ModEnd> ) ; mbim_device_close_force
534,695
CWE-000 int main ( void ) { size_t buff_size = SIZE * sizeof ( double ) ; double * data = malloc ( buff_size ) ; <S2SV_StartBug> int out_size ; <S2SV_EndBug> for ( int i = 0 ; i < SIZE ; i ++ ) { data [ i ] = i ; } struct sz_params p ; memset ( & p , - 1 , sizeof ( p ) ) ; p . dataEndianType = LITTLE_ENDIAN_DATA ; p . ...
<S2SV_ModStart> buff_size ) ; size_t <S2SV_ModEnd> out_size ; for <S2SV_ModStart> , 0.0 , 0.0 , 0 ,
534,696
CWE-000 void apple_produce ( void ) { for ( ; ; ) { random_seed = 214013 * random_seed + 2531011 ; apple . apple_grade = random_seed % 3 + 1 ; apple . apple_position . y = random_seed % ( LINES - 2 ) + 1 ; apple . apple_position . x = random_seed % ( COLS - 2 ) + 1 ; for ( int i = snake . body . head ; i < snake . body...
<S2SV_ModStart> break ; } return ;
534,697
CWE-000 int main ( int argc , char * argv [ ] ) { # ifdef MPI_ENABLED MPI_Init ( & argc , & argv ) ; MPI_Comm_rank ( MPI_COMM_WORLD , & rank ) ; MPI_Comm_size ( MPI_COMM_WORLD , & size ) ; <S2SV_StartBug> play ( WHITE , 10 ) ; <S2SV_EndBug> MPI_Finalize ( ) ; # else <S2SV_StartBug> play_serial ( WHITE , 8 ) ; <S2SV_End...
<S2SV_ModStart> ( WHITE , 8 <S2SV_ModEnd> ) ; MPI_Finalize <S2SV_ModStart> ( WHITE , 10 <S2SV_ModEnd> ) ; #
534,698
CWE-000 static void pocli_free ( struct pocli * pcli ) { while ( pmemobj_tx_stage ( ) != TX_STAGE_NONE ) { while ( pmemobj_tx_stage ( ) != TX_STAGE_NONE ) pmemobj_tx_process ( ) ; pmemobj_tx_end ( ) ; } <S2SV_StartBug> pmemobj_close ( pcli -> ctx . pop ) ; <S2SV_EndBug> free ( pcli -> inbuf ) ; free ( pcli ) ; }
<S2SV_ModStart> ) ; } VEC_DELETE ( & pcli -> ctx . free_on_abort ) ;
534,699
CWE-000 int * convertCharParaBinario ( int indice ) { int i = 7 ; int * binario = ( int * ) calloc ( 8 , sizeof ( int ) ) ; if ( binario == 0 ) { <S2SV_StartBug> printf ( "Não<S2SV_blank>foi<S2SV_blank>possível<S2SV_blank>alocar<S2SV_blank>a<S2SV_blank>memória<S2SV_blank>para<S2SV_blank>o<S2SV_blank>inteiro<S2SV_blank>...
<S2SV_ModStart> 0 ) { fprintf ( stderr , <S2SV_ModEnd> "Não<S2SV_blank>foi<S2SV_blank>possível<S2SV_blank>alocar<S2SV_blank>a<S2SV_blank>memória<S2SV_blank>para<S2SV_blank>o<S2SV_blank>inteiro<S2SV_blank>com<S2SV_blank>os<S2SV_blank>bits\\n" ) ;