Unnamed: 0 int64 0 535k | source stringlengths 50 89.8k | target stringlengths 23 37.7k |
|---|---|---|
3,200 | CWE-000 int i2ccmd_dev ( FAR struct i2ctool_s * i2ctool , int argc , char * * argv ) { FAR struct i2c_dev_s * dev ; struct i2c_msg_s msg [ 2 ] ; FAR char * ptr ; union { uint16_t data16 ; uint8_t data8 ; } u ; uint8_t regaddr ; long first ; long last ; int addr ; int nargs ; int argndx ; int ret ; int i ; int j ; for (... | <S2SV_ModStart> ( i2ctool , "\\n<S2SV_blank><S2SV_blank><S2SV_blank><S2SV_blank><S2SV_blank>0<S2SV_blank><S2SV_blank>1<S2SV_blank><S2SV_blank>2<S2SV_blank><S2SV_blank>3<S2SV_blank><S2SV_blank>4<S2SV_blank><S2SV_blank>5<S2SV_blank><S2SV_blank>6<S2SV_blank><S2SV_blank>7<S2SV_blank><S2SV_blank>8<S2SV_blank><S2SV_blank>9<S... |
3,201 | CWE-000 int nilfs_sufile_alloc ( struct inode * sufile , __u64 * segnump ) { <S2SV_StartBug> struct buffer_head * header_bh , * su_bh ; <S2SV_EndBug> struct the_nilfs * nilfs ; struct nilfs_sufile_header * header ; struct nilfs_segment_usage * su ; size_t susz = NILFS_MDT ( sufile ) -> mi_entry_size ; __u64 segnum , ma... | <S2SV_ModStart> , * su_bh <S2SV_ModEnd> ; struct nilfs_sufile_header <S2SV_ModStart> mi_sem ) ; <S2SV_ModEnd> ret = nilfs_sufile_get_header_block |
3,202 | CWE-000 static int smb3_enum_snapshots ( const unsigned int xid , struct cifs_tcon * tcon , struct cifsFileInfo * cfile , void __user * ioc_buf ) { char * retbuf = NULL ; unsigned int ret_data_len = 0 ; int rc ; struct smb_snapshot_array snapshot_in ; rc = SMB2_ioctl ( xid , tcon , cfile -> fid . persistent_fid , cfile... | <S2SV_ModStart> . snapshot_array_size < GMT_TOKEN_SIZE ) ret_data_len = sizeof ( struct smb_snapshot_array ) ; <S2SV_ModEnd> if ( ret_data_len <S2SV_ModStart> ( ret_data_len > ( <S2SV_ModStart> snapshot_in . snapshot_array_size + sizeof ( struct smb_snapshot_array ) ) <S2SV_ModStart> snapshot_in . snapshot_array_size +... |
3,203 | CWE-000 <S2SV_StartBug> inline void jvm_free ( void * ptr ) { <S2SV_EndBug> <S2SV_StartBug> free ( ptr ) ; <S2SV_EndBug> <S2SV_StartBug> } <S2SV_EndBug> | <S2SV_ModStart> <S2SV_null> <S2SV_null> <S2SV_null> <S2SV_ModEnd> void jvm_free ( <S2SV_ModStart> ptr ) { if ( ptr ) { pthread_spin_lock ( & mlock ) ; heap_size -= * ( u32 * ) ( ptr - 4 ) ; pthread_spin_unlock ( & mlock ) ; <S2SV_ModStart> free ( ptr - 4 <S2SV_ModStart> ) ; } } |
3,204 | CWE-000 void gl4es_blitTexture ( GLuint texture , float sx , float sy , float width , float height , float nwidth , float nheight , float zoomx , float zoomy , float vpwidth , float vpheight , float x , float y , int mode ) { LOAD_GLES ( glBindTexture ) ; LOAD_GLES ( glActiveTexture ) ; <S2SV_StartBug> # ifdef TEXSTREA... | <S2SV_ModStart> glActiveTexture ) ; <S2SV_ModEnd> LOAD_GLES ( glEnable <S2SV_ModStart> glDisable ) ; realize_textures ( ) ; <S2SV_ModEnd> gl4es_glPushAttrib ( GL_TEXTURE_BIT <S2SV_ModStart> } # endif int tmp = glstate -> enable . texture [ 0 ] ; if ( ! IS_TEX2D ( tmp ) ) gles_glEnable ( GL_TEXTURE_2D ) ; if ( IS_CUBE_M... |
3,205 | CWE-000 int bhnd_erom_iobus_init ( struct bhnd_erom_iobus * iobus , bhnd_addr_t addr , bhnd_size_t size , bus_space_tag_t bst , bus_space_handle_t bsh ) { <S2SV_StartBug> iobus -> eio . map = bhnd_erom_iobus_map ; <S2SV_EndBug> iobus -> eio . read = bhnd_erom_iobus_read ; iobus -> eio . fini = NULL ; iobus -> addr = ad... | <S2SV_ModStart> map = bhnd_erom_iobus_map ; iobus -> eio . tell = bhnd_erom_iobus_tell |
3,206 | CWE-000 static void radeon_ttm_bo_destroy ( struct ttm_buffer_object * tbo ) { struct radeon_bo * bo ; bo = container_of ( tbo , struct radeon_bo , tbo ) ; radeon_update_memory_usage ( bo , bo -> tbo . mem . mem_type , - 1 ) ; mutex_lock ( & bo -> rdev -> gem . mutex ) ; list_del_init ( & bo -> list ) ; mutex_unlock ( ... | <S2SV_ModStart> ) ) ; if ( bo -> gem_base . import_attach ) drm_prime_gem_destroy ( & bo -> gem_base , bo -> tbo . sg ) ; |
3,207 | CWE-000 int si470x_start ( struct si470x_device * radio ) { int retval ; radio -> registers [ POWERCFG ] = POWERCFG_DMUTE | POWERCFG_ENABLE | POWERCFG_RDSM ; retval = si470x_set_register ( radio , POWERCFG ) ; if ( retval < 0 ) goto done ; <S2SV_StartBug> radio -> registers [ SYSCONFIG1 ] = <S2SV_EndBug> ( de << 11 ) &... | <S2SV_ModStart> [ SYSCONFIG1 ] |= SYSCONFIG1_RDSIEN | SYSCONFIG1_STCIEN | SYSCONFIG1_RDS ; radio -> registers [ SYSCONFIG1 ] &= ~ SYSCONFIG1_GPIO2 ; radio -> registers [ SYSCONFIG1 ] |= SYSCONFIG1_GPIO2_INT ; if ( de ) radio -> registers [ SYSCONFIG1 ] |= <S2SV_ModEnd> SYSCONFIG1_DE ; retval |
3,208 | CWE-000 ec_code_t * ec_code_create ( ec_gf_t * gf , ec_code_gen_t * gen ) { ec_code_t * code ; code = GF_MALLOC ( sizeof ( ec_code_t ) , ec_mt_ec_code_t ) ; if ( code == NULL ) { <S2SV_StartBug> return NULL ; <S2SV_EndBug> } memset ( code , 0 , sizeof ( ec_code_t ) ) ; INIT_LIST_HEAD ( & code -> spaces ) ; LOCK_INIT ( ... | <S2SV_ModStart> ) { return EC_ERR ( ENOMEM ) <S2SV_ModEnd> ; } memset |
3,209 | CWE-000 int query_continue ( tpl_query * self ) { <S2SV_StartBug> self -> ok = 1 ; <S2SV_EndBug> if ( self -> halt ) return 0 ; if ( ! retry_me ( self ) ) return 0 ; self -> started = gettimeofday_usec ( ) ; self -> is_running ++ ; while ( ! g_abort && ! self -> pl -> abort ) { if ( ! call ( self ) ) { if ( ! self -> i... | <S2SV_ModStart> self ) { if ( self -> halt ) return 0 ; if ( ! retry_me ( self ) ) return 0 ; <S2SV_ModStart> ok = 1 <S2SV_ModEnd> ; self -> |
3,210 | CWE-000 <S2SV_StartBug> static int expectcomma ( struct emitstate * state ) { <S2SV_EndBug> lexer_nexttok ( state -> lexer , state -> tok ) ; if ( state -> tok -> type != comma ) { printf ( "Expected<S2SV_blank>comma,<S2SV_blank>got<S2SV_blank>%d<S2SV_blank>with<S2SV_blank>val:<S2SV_blank>\\"%s\\"\\n" , state -> tok ->... | <S2SV_ModStart> int expectcomma ( emitstate_t <S2SV_ModEnd> * state ) |
3,211 | CWE-000 int board_init ( void ) { gd -> bd -> bi_boot_params = PHYS_SDRAM + 0x100 ; # if defined ( CONFIG_ADVANTECH ) && defined ( CONFIG_SUPPORT_LVDS ) setup_lvds_init ( ) ; # endif # ifdef CONFIG_MXC_SPI setup_spi ( ) ; # endif setup_i2c ( 1 , CONFIG_SYS_I2C_SPEED , 0x7f , & i2c_pad_info1 ) ; # ifdef CONFIG_USB_EHCI_... | <S2SV_ModStart> ; # endif # ifdef CONFIG_ADVANTECH # ifndef CONFIG_MX6QP writel ( 0x514201F0 , 0x021B0400 ) ; writel ( 0x514201F0 , 0x021B4400 ) ; # endif # endif |
3,212 | CWE-000 int rte_event_dev_configure ( uint8_t dev_id , const struct rte_event_dev_config * dev_conf ) { struct rte_eventdev * dev ; struct rte_event_dev_info info ; int diag ; RTE_EVENTDEV_VALID_DEVID_OR_ERR_RET ( dev_id , - EINVAL ) ; dev = & rte_eventdevs [ dev_id ] ; RTE_FUNC_PTR_OR_ERR_RET ( * dev -> dev_ops -> dev... | <S2SV_ModStart> } if ( ( info . event_dev_cap & RTE_EVENT_DEV_CAP_BURST_MODE ) && ( <S2SV_ModStart> . max_event_port_dequeue_depth ) ) <S2SV_ModStart> ; } if ( ( info . event_dev_cap & RTE_EVENT_DEV_CAP_BURST_MODE ) && <S2SV_ModStart> . max_event_port_enqueue_depth ) ) |
3,213 | CWE-000 bool VID_Is8bit ( void ) { <S2SV_StartBug> return false ; <S2SV_EndBug> } | <S2SV_ModStart> ) { return is8bit <S2SV_ModEnd> ; } <S2SV_null> |
3,214 | CWE-000 static int saved_album_add ( json_object * item , int index , void * arg ) { json_object * jsonalbum ; struct spotify_album album ; struct spotify_track track ; json_object * needle ; json_object * jsontracks ; int track_count ; int dir_id ; int i ; int ret ; if ( ! json_object_object_get_ex ( item , "album" , ... | <S2SV_ModStart> ( ) ; ret = 0 ; |
3,215 | CWE-000 static void updateSingleFadeInAnimation ( FadeIn * e , int i ) { <S2SV_StartBug> setAnimationScale ( e -> mAnimationIDs [ i ] , * e -> mSize , makePosition ( 0 , 0 , 0 ) ) ; <S2SV_EndBug> setAnimationTransparency ( e -> mAnimationIDs [ i ] , * e -> mAlpha ) ; } | <S2SV_ModStart> i ) { setAnimationSize <S2SV_ModEnd> ( e -> |
3,216 | CWE-000 static int apply_multi_file_filter ( const char * path , const char * src , size_t len , int fd , struct strbuf * dst , const char * cmd , const unsigned int wanted_capability ) { int err ; struct cmd2process * entry ; struct child_process * process ; struct strbuf nbuf = STRBUF_INIT ; struct strbuf filter_stat... | <S2SV_ModStart> if ( err <S2SV_ModEnd> ) { if |
3,217 | CWE-000 <S2SV_StartBug> int multipl_winners ( t_skrr * skrr , long * best_cycles , int i ) <S2SV_EndBug> { return ( 1 ) ; } | <S2SV_ModStart> <S2SV_null> <S2SV_null> <S2SV_null> void <S2SV_ModEnd> multipl_winners ( t_skrr <S2SV_ModStart> skrr , long <S2SV_ModEnd> best_cycles , int <S2SV_ModStart> best_cycles , int best_player ) { t_chmp * chmp_tmp ; chmp_tmp = skrr -> chmp ; while ( chmp_tmp ) { if ( ( best_cycles == chmp_tmp -> last_live ) &... |
3,218 | CWE-000 int runSequence ( char * block ) { if ( ! block ) { return 0 ; } else { char * command = strsep ( & block , ";" ) ; <S2SV_StartBug> printf ( "successfully<S2SV_blank>separated<S2SV_blank>first<S2SV_blank>command\\n" ) ; <S2SV_EndBug> printf ( "[%s]\\n" , command ) ; <S2SV_StartBug> char * * args = parseCommand ... | <S2SV_ModStart> ";" ) ; <S2SV_ModEnd> char * * <S2SV_ModStart> parseCommand ( command <S2SV_ModEnd> ) ; runCommand |
3,219 | CWE-000 void nautilus_canvas_container_set_zoom_level ( NautilusCanvasContainer * container , int new_level ) { NautilusCanvasContainerDetails * details ; int pinned_level ; double pixels_per_unit ; details = container -> details ; pinned_level = new_level ; if ( pinned_level < NAUTILUS_CANVAS_ZOOM_LEVEL_SMALL ) { pinn... | <S2SV_ModStart> ( pinned_level > NAUTILUS_CANVAS_ZOOM_LEVEL_LARGER <S2SV_ModEnd> ) { pinned_level <S2SV_ModStart> { pinned_level = NAUTILUS_CANVAS_ZOOM_LEVEL_LARGER <S2SV_ModEnd> ; } if |
3,220 | CWE-000 void slab_free ( struct kmem_cache * cache , void * object , void * temp ) <S2SV_StartBug> { <S2SV_EndBug> kernel_printf ( "<S2SV_blank><S2SV_blank>object<S2SV_blank>to<S2SV_blank>free:<S2SV_blank>%x\\n" , object ) ; struct page * temp_page = pages + ( ( unsigned int ) temp >> PAGE_SHIFT ) ; <S2SV_StartBug> ker... | <S2SV_ModStart> temp ) { if ( flag == 1 ) <S2SV_ModStart> PAGE_SHIFT ) ; if ( flag == 1 ) |
3,221 | CWE-000 int main ( int argc , char * argv [ ] ) { char mark , newFile [ 2 ] = "-n" , filename [ 50 ] , idleInput [ 10 ] , userWin , otherWin , otherMark ; <S2SV_StartBug> int game_over = 0 , user , selector = 0 , index = - 1 , other , move , winner ; <S2SV_EndBug> int userid = getuid ( ) ; if ( argc == 1 ) { printf ( "... | <S2SV_ModStart> move , winner , otherId = 0 <S2SV_ModStart> break ; } otherId = <S2SV_ModEnd> matchOtherPlayer ( filename <S2SV_ModStart> , userid ) ; if ( otherId <S2SV_ModStart> . userid = otherId <S2SV_ModEnd> ; } board |
3,222 | CWE-000 static rn2903_context _rn2903_postinit ( rn2903_context dev , unsigned int baudrate ) { assert ( dev != NULL ) ; if ( rn2903_set_baudrate ( dev , baudrate ) ) { printf ( "%s:<S2SV_blank>rn2903_set_baudrate()<S2SV_blank>failed.\\n" , __FUNCTION__ ) ; rn2903_close ( dev ) ; return NULL ; } if ( rn2903_set_flow_co... | <S2SV_ModStart> NULL ; } memcpy <S2SV_ModEnd> ( dev -> |
3,223 | CWE-000 static void test_valid_service_v2 ( void * arg ) { int ret ; ( void ) arg ; { const char * conf = "HiddenServiceDir<S2SV_blank>/tmp/tor-test-hs-RANDOM/hs1\\n" "HiddenServiceVersion<S2SV_blank>2\\n" "HiddenServicePort<S2SV_blank>80\\n" "HiddenServicePort<S2SV_blank>22<S2SV_blank>localhost:22\\n" <S2SV_StartBug> ... | <S2SV_ModStart> "HiddenServiceVersion<S2SV_blank>2\\n" "HiddenServicePort<S2SV_blank>80\\n" "HiddenServicePort<S2SV_blank>22<S2SV_blank>localhost:22\\n" # ifndef HAVE_SYS_UN_H "HiddenServicePort<S2SV_blank>42<S2SV_blank>unix:/path/to/socket\\n" # endif <S2SV_ModEnd> "HiddenServiceAuthorizeClient<S2SV_blank>basic<S2SV_b... |
3,224 | CWE-000 void hmp_info_vnc ( Monitor * mon , const QDict * qdict ) { VncInfo2List * info2l ; Error * err = NULL ; info2l = qmp_query_vnc_servers ( & err ) ; if ( err ) { <S2SV_StartBug> error_report_err ( err ) ; <S2SV_EndBug> return ; } if ( ! info2l ) { monitor_printf ( mon , "None\\n" ) ; return ; } while ( info2l ) ... | <S2SV_ModStart> err ) { hmp_handle_error ( mon , & <S2SV_ModEnd> err ) ; |
3,225 | CWE-000 int main ( ) <S2SV_StartBug> { <S2SV_EndBug> char line [ 1000 ] , line2 [ 1000 ] , line3 [ 1000 ] ; char * id = lpassGetID ( runCommand ( "ls" , "/usr/local/bin/lpass" ) ) ; char * domain = lpassGetData ( "domain" , id , "/usr/local/bin/lpass" ) ; char * email = lpassGetData ( "user" , id , "/usr/local/bin/lpas... | <S2SV_ModStart> ( ) { if ( lpassVerifyStatus ( runCommand ( "ls" , "/usr/local/bin/lpass" ) ) == true ) { return 0 ; } |
3,226 | CWE-000 static void range_delete_http_ssl_callback ( guint32 port , gpointer ptr _U_ ) { <S2SV_StartBug> ssl_dissector_delete ( port , http_ssl_handle ) ; <S2SV_EndBug> } | <S2SV_ModStart> ( port , http_tls_handle <S2SV_ModEnd> ) ; } |
3,227 | CWE-000 static int expand_terule_helper ( sepol_handle_t * handle , policydb_t * p , uint32_t * typemap , uint32_t specified , cond_av_list_t * * cond , cond_av_list_t * * other , uint32_t stype , uint32_t ttype , class_perm_node_t * perms , avtab_t * avtab , int enabled ) { avtab_key_t avkey ; avtab_datum_t * avdatump... | <S2SV_ModStart> cond , NULL <S2SV_ModEnd> ) ; if |
3,228 | CWE-000 static int venus_hfi_disable_regulator ( struct regulator_info * rinfo ) { int rc = 0 ; dprintk ( VIDC_DBG , "Disabling<S2SV_blank>regulator<S2SV_blank>%s\\n" , rinfo -> name ) ; rc = venus_hfi_acquire_regulator ( rinfo ) ; if ( rc ) { dprintk ( VIDC_WARN , "Failed<S2SV_blank>to<S2SV_blank>acquire<S2SV_blank>co... | <S2SV_ModStart> : WARN_ON ( msm_vidc_debug & VIDC_INFO <S2SV_ModEnd> ) ; return |
3,229 | CWE-000 enum qnnp_status qnnp_create_max_pooling2d_nhwc_u8 ( uint32_t input_padding_top , uint32_t input_padding_right , uint32_t input_padding_bottom , uint32_t input_padding_left , uint32_t pooling_height , uint32_t pooling_width , uint32_t stride_height , uint32_t stride_width , uint32_t dilation_height , uint32_t d... | <S2SV_ModStart> { qnnp_log_error ( "qnnp_create_max_pooling2d_nhwc_u8<S2SV_blank>failed<S2SV_blank>because<S2SV_blank>QNNPACK<S2SV_blank>is<S2SV_blank>not<S2SV_blank>properly<S2SV_blank>initialized" <S2SV_ModEnd> ) ; goto |
3,230 | CWE-000 LOCALPROC DiskUI_Finish ( void ) { <S2SV_StartBug> C3D_RenderTargetSetClear ( MainRenderTarget , C3D_CLEAR_ALL , 0xFF , 0 ) ; <S2SV_EndBug> IsInDiskInsertUI = falseblnr ; <S2SV_StartBug> } <S2SV_EndBug> | <S2SV_ModStart> { C3D_RenderTargetSetClear ( SubRenderTarget <S2SV_ModEnd> , C3D_CLEAR_ALL , <S2SV_ModStart> = falseblnr ; CanScrollDown = falseblnr ; SelectedEntry = 0 ; ScrollOffset = 0 ; VertexCount = 0 ; |
3,231 | CWE-000 static ngx_rtmp_gop_cache_t * ngx_rtmp_gop_free_cache ( ngx_rtmp_session_t * s , ngx_rtmp_gop_cache_t * cache ) { ngx_rtmp_core_srv_conf_t * cscf ; ngx_rtmp_live_ctx_t * ctx ; ngx_rtmp_gop_cache_ctx_t * gop_cache_ctx ; ngx_rtmp_gop_frame_t * frame ; ctx = ngx_rtmp_get_module_ctx ( s , ngx_rtmp_live_module ) ; i... | <S2SV_ModStart> ) { return NULL |
3,232 | CWE-000 void sv_PrintObjectID ( FILE * out , SECItem * oid , char * m ) { <S2SV_StartBug> char * name ; <S2SV_EndBug> SECOidData * oiddata ; oiddata = SECOID_FindOID ( oid ) ; if ( oiddata == NULL ) { sv_PrintAsHex ( out , oid , m ) ; return ; } name = oiddata -> desc ; if ( m != NULL ) fprintf ( out , "%s" , m ) ; fpr... | <S2SV_ModStart> m ) { const |
3,233 | CWE-000 int mlx5_ib_arm_cq ( struct ib_cq * ibcq , enum ib_cq_notify_flags flags ) { struct mlx5_core_dev * mdev = to_mdev ( ibcq -> device ) -> mdev ; struct mlx5_ib_cq * cq = to_mcq ( ibcq ) ; <S2SV_StartBug> void __iomem * uar_page = mdev -> priv . uuari . uars [ 0 ] . map ; <S2SV_EndBug> unsigned long irq_flags ; i... | <S2SV_ModStart> -> priv . uar -> <S2SV_ModEnd> map ; unsigned <S2SV_ModStart> , uar_page , <S2SV_ModEnd> to_mcq ( ibcq |
3,234 | CWE-000 static int jbd2_block_tag_csum_verify ( journal_t * j , journal_block_tag_t * tag , void * buf , __u32 sequence ) { <S2SV_StartBug> __u32 provided , calculated ; <S2SV_EndBug> <S2SV_StartBug> if ( ! JBD2_HAS_INCOMPAT_FEATURE ( j , JBD2_FEATURE_INCOMPAT_CSUM_V2 ) ) <S2SV_EndBug> return 1 ; sequence = cpu_to_be32... | <S2SV_ModStart> sequence ) { journal_block_tag3_t * tag3 = ( journal_block_tag3_t * ) tag ; __u32 <S2SV_ModEnd> calculated ; if <S2SV_ModStart> if ( ! jbd2_journal_has_csum_v2or3 ( j <S2SV_ModEnd> ) ) return <S2SV_ModStart> j_blocksize ) ; if ( JBD2_HAS_INCOMPAT_FEATURE ( j , JBD2_FEATURE_INCOMPAT_CSUM_V3 ) ) return ta... |
3,235 | CWE-000 int gf_cmd_log ( const char * domain , const char * fmt , ... ) { va_list ap ; char timestr [ 64 ] ; struct timeval tv = { 0 , } ; char * str1 = NULL ; char * str2 = NULL ; char * msg = NULL ; size_t len = 0 ; int ret = 0 ; int fd = - 1 ; glusterfs_ctx_t * ctx = NULL ; ctx = THIS -> ctx ; if ( ! ctx ) return - ... | <S2SV_ModStart> str1 ) ; free <S2SV_ModEnd> ( str2 ) |
3,236 | CWE-000 void * floorplus ( void * linfo ) { while ( 1 ) { liftinfo * p ; p = ( liftinfo * ) malloc ( sizeof ( liftinfo ) ) ; p = ( liftinfo * ) linfo ; if ( p -> idle == 0 ) { Sleep ( 2000 ) ; if ( p -> movingup == 1 ) { p -> currentfloor ++ ; printf ( "\\ncurrent:%d" , p -> currentfloor ) ; if ( p -> up -> n > 0 && p ... | <S2SV_ModStart> -> currentfloor == NUM_OF_FLOORS <S2SV_ModEnd> ) { p |
3,237 | CWE-000 static void usb_ep0_setup ( ) { usb_ep0_out_data = ( __xdata uint8_t * ) & usb_setup ; usb_ep0_out_len = 8 ; usb_ep0_fill ( ) ; if ( usb_ep0_out_len != 0 ) return ; if ( usb_setup . dir_type_recip & USB_DIR_IN ) { if ( usb_setup . length ) usb_ep0_state = USB_EP0_DATA_IN ; else usb_ep0_state = USB_EP0_IDLE ; } ... | <S2SV_ModStart> if ( usb_ep0_state == USB_EP0_DATA_IN <S2SV_ModEnd> ) { if |
3,238 | CWE-000 static switch_status_t switch_g729_decode ( switch_codec_t * codec , switch_codec_t * other_codec , void * encoded_data , uint32_t encoded_data_len , uint32_t encoded_rate , void * decoded_data , uint32_t * decoded_data_len , uint32_t * decoded_rate , unsigned int * flag ) { struct g729_context * context = code... | <S2SV_ModStart> , NULL , 1 , 0 <S2SV_ModEnd> , 0 , <S2SV_ModStart> , edp , 0 <S2SV_ModEnd> , 0 , |
3,239 | CWE-000 int do_page_fault ( struct pt_regs * regs , unsigned long address , unsigned long error_code ) { enum ctx_state prev_state = exception_enter ( ) ; struct vm_area_struct * vma ; struct mm_struct * mm = current -> mm ; unsigned int flags = FAULT_FLAG_ALLOW_RETRY | FAULT_FLAG_KILLABLE ; int code = SEGV_MAPERR ; in... | <S2SV_ModStart> goto bad_area ; <S2SV_ModEnd> } else if <S2SV_ModStart> goto bad_area ; } # ifdef CONFIG_PPC_STD_MMU if ( ! radix_enabled ( ) && ! is_write ) <S2SV_ModStart> DSISR_PROTFAULT ) ; # endif <S2SV_ModEnd> fault = handle_mm_fault |
3,240 | CWE-000 ssize_t read ( int fd , void * buf , size_t nbyte ) { coroutine_t * co = coroutine_self ( ) ; if ( ! is_enable_sys_hook ( co ) ) { return gSysRead ( fd , buf , nbyte ) ; } rpchook_t * lp = get_by_fd ( fd ) ; if ( ! lp ) { return gSysRead ( fd , buf , nbyte ) ; } ssize_t n = 0 ; do { ssize_t ret = gSysRead ( fd ... | <S2SV_ModStart> 1 ; } continue ; } return ret ; <S2SV_ModEnd> } while ( |
3,241 | CWE-000 <S2SV_StartBug> void uIP_linked_on ( void ) { APPLIST_LOOP ( uIP_LINKED_ON ) ; } <S2SV_EndBug> | <S2SV_ModStart> void ) { APPLIST_LOOP_LINKCHANGED <S2SV_ModEnd> ( uIP_LINKED_ON ) |
3,242 | CWE-000 ssize_t spinRead ( const int sock , unsigned char * buf , size_t bufsize ) { const size_t origBufSize = bufsize ; int n ; keepReading : if ( bufsize == 0 ) { return origBufSize ; } errno = 0 ; n = readNBytes ( sock , buf , bufsize ) ; if ( n == - 1 ) { return - 1 ; } if ( n == 0 ) { if ( errno == EAGAIN ) { got... | <S2SV_ModStart> } else { perror ( "SpinRead" ) ; |
3,243 | CWE-000 int FindVar ( WORD * v , WORD * term ) { WORD * t , * tstop , * m , * mstop , * f , * fstop , * a , * astop ; GETSTOP ( term , tstop ) ; t = term + 1 ; while ( t < tstop ) { if ( * v == * t && * v < FUNCTION ) { switch ( * v ) { case SYMBOL : m = t + 2 ; mstop = t + t [ 1 ] ; while ( m < mstop ) { if ( * m == v... | <S2SV_ModStart> 1 ] == m <S2SV_ModEnd> [ 0 ] <S2SV_ModStart> 1 ] == m [ 1 ] ) return ( 1 ) ; m <S2SV_ModEnd> += 3 ; |
3,244 | CWE-000 void CR_SpritePosition ( void ) { unsigned short int nArg ; short int nCount = 0 ; char cChar ; <S2SV_StartBug> if ( nEvent >= 0 && nEvent <= 19 ) <S2SV_EndBug> { EndEvent ( ) ; nEvent = - 1 ; } cChar = ( char ) ( nScreen - 1 ) ; fwrite ( & cChar , 1 , 1 , pWorkNme ) ; for ( nCount = 0 ; nCount < 4 ; nCount ++ ... | <S2SV_ModStart> 0 && nEvent < NUM_EVENTS <S2SV_ModEnd> ) { EndEvent |
3,245 | CWE-000 BOOL Trace_Workspace_Point_In_Bound ( const Trace_Workspace * tw , const double pos [ 3 ] ) { <S2SV_StartBug> if ( pos [ 0 ] >= 0 ) { <S2SV_EndBug> int i ; for ( i = 0 ; i < 3 ; i ++ ) { if ( tw -> trace_range [ i ] >= 0.0 ) { if ( pos [ i ] < tw -> trace_range [ i ] ) { return FALSE ; } } if ( tw -> trace_rang... | <S2SV_ModStart> pos [ 0 ] >= 0 && pos [ 1 ] >= 0 && pos [ 2 |
3,246 | CWE-000 void gfs2_glmutex_unlock ( struct gfs2_glock * gl ) { spin_lock ( & gl -> gl_spin ) ; <S2SV_StartBug> clear_bit ( GLF_LOCK , & gl -> gl_flags ) ; <S2SV_EndBug> run_queue ( gl ) ; BUG_ON ( ! spin_is_locked ( & gl -> gl_spin ) ) ; spin_unlock ( & gl -> gl_spin ) ; } | <S2SV_ModStart> -> gl_flags ) ; gl -> gl_owner = NULL ; gl -> gl_ip = 0 |
3,247 | CWE-000 static void main_timer_func ( ) { main_timer_active = 0 ; <S2SV_StartBug> if ( ! moving_state ) { <S2SV_EndBug> glutTimerFunc ( TIMER_INTERVAL , on_move , MOVE_TIMER_ID ) ; moving_state = 1 ; } if ( y > 1 && ! GO_UP ) { <S2SV_StartBug> y -= height_decrease ; <S2SV_EndBug> glutPostRedisplay ( ) ; } <S2SV_StartBu... | <S2SV_ModStart> ; if ( num_of_pressed_keys <S2SV_ModEnd> ) { glutTimerFunc <S2SV_ModStart> GO_UP ) { printf ( "Should<S2SV_blank>decrease<S2SV_blank>height!\\n" ) ; <S2SV_ModStart> ) ; } <S2SV_ModEnd> if ( ! |
3,248 | CWE-000 int delegate_op ( stack_t * * stack , char * op , unsigned int line_number ) { int i = 0 ; instruction_t all_ops [ ] = { { "push" , instruction_push } , { "pall" , instruction_pall } , { "pint" , instruction_pint } , { "pop" , instruction_pop } , { "swap" , instruction_swap } , { "add" , instruction_add } , { "... | <S2SV_ModStart> ; } } if ( strlen ( op ) != 0 ) { printf ( "L%u:<S2SV_blank>unknown<S2SV_blank>instruction<S2SV_blank>%s\\n" , line_number , op ) ; exit <S2SV_ModEnd> ( EXIT_FAILURE ) <S2SV_ModStart> ) ; } return ( EXIT_SUCCESS ) ; } |
3,249 | CWE-000 static # endif int tcp_v6_do_rcv ( struct sock * sk , struct sk_buff * skb ) { struct ipv6_pinfo * np = inet6_sk ( sk ) ; struct tcp_sock * tp ; struct sk_buff * opt_skb = NULL ; if ( skb -> protocol == htons ( ETH_P_IP ) ) return tcp_v4_do_rcv ( sk , skb ) ; # ifdef CONFIG_MPTCP if ( is_meta_sk ( sk ) ) return... | <S2SV_ModStart> sk ) ; tcp_v6_restore_cb ( opt_skb ) ; |
3,250 | CWE-000 void http_get_clean_mc_handle ( struct http_get_s * mc ) { g_slist_free_full ( mc -> chunks , ( GDestroyNotify ) http_get_clean_chunk ) ; <S2SV_StartBug> if ( mc -> ec_handle ) <S2SV_EndBug> <S2SV_StartBug> liberasurecode_instance_destroy ( mc -> ec_handle ) ; <S2SV_EndBug> if ( mc -> buffer_queue ) g_queue_fre... | <S2SV_ModStart> -> ec_handle ) { int res = <S2SV_ModStart> ec_handle ) ; g_assert ( res == 0 ) ; } |
3,251 | CWE-000 static void mjs_load ( struct mjs * mjs ) { mjs_val_t res = MJS_UNDEFINED ; mjs_val_t arg0 = mjs_arg ( mjs , 0 ) ; mjs_val_t arg1 = mjs_arg ( mjs , 1 ) ; if ( mjs_is_string ( arg0 ) ) { const char * path = mjs_get_cstring ( mjs , & arg0 ) ; mjs_val_t * bottom = vptr ( & mjs -> scopes , 0 ) , global = * bottom ;... | <S2SV_ModStart> MJS_OK ) { arg0 = mjs_arg ( mjs , 0 ) ; path = mjs_get_cstring ( mjs , & arg0 ) ; |
3,252 | CWE-000 int gf119_disp_new_ ( const struct nv50_disp_func * func , struct nvkm_device * device , int index , struct nvkm_disp * * pdisp ) { <S2SV_StartBug> u32 heads = fls ( nvkm_rd32 ( device , 0x612004 ) & 0xf ) ; <S2SV_EndBug> return nv50_disp_new_ ( func , device , index , heads , pdisp ) ; } | <S2SV_ModStart> { u32 heads ; if ( device -> quirk && device -> quirk -> use_heads ) heads <S2SV_ModStart> ) & 0xf ) ; else heads = nvkm_rd32 ( device , 0x022448 |
3,253 | CWE-000 static int mlx5e_set_wol ( struct net_device * netdev , struct ethtool_wolinfo * wol ) { struct mlx5e_priv * priv = netdev_priv ( netdev ) ; struct mlx5_core_dev * mdev = priv -> mdev ; __u32 wol_supported = mlx5e_get_wol_supported ( mdev ) ; u32 mlx5_wol_mode ; if ( ! wol_supported ) <S2SV_StartBug> return - E... | <S2SV_ModStart> ) return - EOPNOTSUPP <S2SV_ModEnd> ; if ( |
3,254 | CWE-000 static void * buslogic_init ( device_t * info ) { x54x_t * dev ; wchar_t * bios_rom_name ; uint16_t bios_rom_size ; uint16_t bios_rom_mask ; uint8_t has_autoscsi_rom ; wchar_t * autoscsi_rom_name ; uint16_t autoscsi_rom_size ; uint8_t has_scam_rom ; wchar_t * scam_rom_name ; uint16_t scam_rom_size ; FILE * f ; ... | <S2SV_ModStart> = 1 ; dev -> cdrom_boot = 0 ; <S2SV_ModStart> fw_rev = "AA507B" ; dev -> cdrom_boot = 1 |
3,255 | CWE-000 DWORD VmKdcRpcEpRegister ( rpc_binding_vector_p_t pServerBinding , rpc_if_handle_t pInterfaceSpec , PCSTR pszAnnotation ) { <S2SV_StartBug> DWORD dwError = ERROR_SUCCESS ; <S2SV_EndBug> error_status_t rpcStatus = rpc_s_ok ; rpc_ep_register ( pInterfaceSpec , pServerBinding , NULL , ( idl_char * ) pszAnnotation ... | <S2SV_ModStart> = ERROR_SUCCESS ; # if 1 return dwError ; # else <S2SV_ModStart> return dwError ; # endif |
3,256 | CWE-000 static size_t ZSTD_frameHeaderSize_internal ( const void * src , size_t srcSize , ZSTD_format_e format ) { size_t const minInputSize = ( format == ZSTD_f_zstd1_magicless ) ? ZSTD_frameHeaderSize_prefix - ZSTD_frameIdSize : ZSTD_frameHeaderSize_prefix ; <S2SV_StartBug> ZSTD_STATIC_ASSERT ( ZSTD_frameHeaderSize_p... | <S2SV_ModStart> ; ZSTD_STATIC_ASSERT ( ZSTD_FRAMEHEADERSIZE_PREFIX >= ZSTD_FRAMEIDSIZE <S2SV_ModEnd> ) ; ZSTD_STATIC_ASSERT |
3,257 | CWE-000 static void <S2SV_StartBug> _spdk_scsi_lun_hot_remove ( void * arg1 , void * arg2 ) <S2SV_EndBug> { <S2SV_StartBug> struct spdk_scsi_lun * lun = arg1 ; <S2SV_EndBug> assert ( lun -> lcore == spdk_env_get_current_core ( ) ) ; lun -> removed = true ; if ( lun -> hotremove_cb ) { lun -> hotremove_cb ( lun , lun ->... | <S2SV_ModStart> void * arg1 <S2SV_ModEnd> ) { struct <S2SV_ModStart> lun = arg1 <S2SV_ModEnd> ; lun -> |
3,258 | CWE-000 static int ca_get_ca_info ( struct dst_state * state ) { int srcPtr , dstPtr , i , num_ids ; static u8 slot_command [ 8 ] = { 0x07 , 0x40 , 0x00 , 0x00 , 0x02 , 0x00 , 0x00 , 0xff } ; const int in_system_id_pos = 8 , out_system_id_pos = 4 , in_num_ids_pos = 7 ; put_checksum ( & slot_command [ 0 ] , slot_command... | <S2SV_ModStart> ; return - EIO <S2SV_ModEnd> ; } dprintk |
3,259 | CWE-000 int main ( ) { static char buf [ 256 ] ; struct cmd * usercmd ; struct execcmd * globalcmd ; while ( 1 ) { <S2SV_StartBug> getcmd ( buf , sizeof ( buf ) ) ; <S2SV_EndBug> if ( buf [ 0 ] == 'c' && buf [ 1 ] == 'd' && buf [ 2 ] == '<S2SV_blank>' ) { buf [ strlen ( buf ) - 1 ] = 0 ; if ( chdir ( buf + 3 ) < 0 ) fp... | <S2SV_ModStart> 1 ) { if ( <S2SV_ModStart> buf ) ) < 0 ) continue |
3,260 | CWE-000 static NewConstraint * constraint_apply_mapped ( HeapTuple tuple , AttrMap * map , Relation cand , bool validate , bool is_split , Relation pgcon ) { Datum val ; bool isnull ; Datum * dats ; int16 * keys ; int nkeys ; int i ; Node * conexpr ; char * consrc ; char * conbin ; Form_pg_constraint con = ( Form_pg_co... | <S2SV_ModStart> con -> coninhcount , true <S2SV_ModStart> con -> coninhcount , true |
3,261 | CWE-000 void transmit_buf_wait ( const uint8_t * buf , size_t size ) { # if defined ( SAFE_PRINT ) && ( PRINT_DEBUG == 1 || PRINT_DEBUG == 3 ) xSemaphoreTakeRecursive ( print_mutex , 200 / portTICK_PERIOD_MS ) ; # endif # ifdef DONT_PRINT_RAW_TRANSMISSIONS print ( "Transmitted<S2SV_blank>%d<S2SV_blank>bytes\\n" , size ... | <S2SV_ModStart> ( ) ; <S2SV_ModEnd> pet_watchdog ( ) <S2SV_ModStart> ( DONT_PRINT_RAW_TRANSMISSIONS ) <S2SV_ModEnd> transmission_start_ticks = xTaskGetTickCount <S2SV_ModStart> ( ) ; bool got_hw_state_mutex = true ; if ( ! hardware_state_mutex_take ( ) ) { log_error ( ELOC_RADIO , ECODE_HW_STATE_MUTEX_TIMEOUT , true ) ... |
3,262 | CWE-000 void i915_driver_unload ( struct drm_device * dev ) { struct drm_i915_private * dev_priv = to_i915 ( dev ) ; struct pci_dev * pdev = dev_priv -> drm . pdev ; <S2SV_StartBug> intel_fbdev_fini ( dev ) ; <S2SV_EndBug> if ( i915_gem_suspend ( dev_priv ) ) DRM_ERROR ( "failed<S2SV_blank>to<S2SV_blank>idle<S2SV_blank... | <S2SV_ModStart> . pdev ; <S2SV_ModEnd> if ( i915_gem_suspend |
3,263 | CWE-000 void graphics_draw_filled_scaled_polygon_to_bitmap ( int num_vertices , uint8_t * data , float scalex , float scaley , int xofs , int yofs , struct Bitplane * bitplane , bool xor , bool distort , bool flip_horizontal , bool flip_vertical ) { int next_line_info = 0 ; int i ; int global_ymin = window_height ; int... | <S2SV_ModStart> elem ; } assert ( next_line_info < MAX_LINES ) ; <S2SV_ModStart> add_active ( active ) ; assert ( active != active -> prev |
3,264 | CWE-000 int isInL2WB ( int address ) { <S2SV_StartBug> if ( l2wbController [ 0 ] >> 1 == address || l2wbController [ 1 ] >> 1 == address ) { <S2SV_EndBug> return 1 ; } else { return 0 ; } } | <S2SV_ModStart> { if ( ( ( <S2SV_ModStart> ] >> 1 & 0b011111111111 == address ) && l2wbController [ 0 ] >> 12 == 1 ) || ( ( <S2SV_ModEnd> l2wbController [ 1 <S2SV_ModStart> ] >> 1 & 0b011111111111 == address ) && l2wbController [ 1 ] >> 12 == 1 ) <S2SV_ModEnd> ) { return |
3,265 | CWE-000 void editor_update ( editor * e_instance ) { int w ; int h ; window_get_size ( e_instance -> win , & w , & h ) ; entity_set_size ( e_instance -> root , value_vec2 ( w , h ) ) ; page_tab * pt = e_instance -> current_page_tab ; update_entity_recursive ( e_instance -> root ) ; if ( pt ) { <S2SV_StartBug> if ( pt -... | <S2SV_ModStart> { if ( global_text_margin ) { char buffer [ MAXIMUM_LINE_NUMBER_LENGTH ] ; s32 size_width ; s32 size_height ; itoa ( pt -> lines_size , buffer , 10 ) ; size_ttf_font ( pt -> font , buffer , & size_width , & size_height ) ; global_text_margin = size_width + offset_margin ; } if ( <S2SV_ModStart> 0 ; } pt... |
3,266 | CWE-000 static void _im_error_delivery_notification ( bool_t online ) { FILE * ZIDCacheMarieFD , * ZIDCachePaulineFD ; LinphoneChatRoom * chat_room ; char * filepath ; LinphoneCoreManager * marie = linphone_core_manager_new ( "marie_rc" ) ; LinphoneCoreManager * pauline = linphone_core_manager_new ( "pauline_tcp_rc" ) ... | <S2SV_ModStart> -> lc , LinphoneLimeMandatory <S2SV_ModEnd> ) ; linphone_core_enable_lime <S2SV_ModStart> -> lc , LinphoneLimeMandatory <S2SV_ModEnd> ) ; ZIDCacheMarieFD |
3,267 | CWE-000 PyObject * bnToLongObj ( BIGNUM * m ) { <S2SV_StartBug> PyLongObject * v = NULL ; <S2SV_EndBug> BN_ULONG t ; <S2SV_StartBug> int bits = BN_num_bits ( m ) , i = 0 ; <S2SV_EndBug> int ndigits = ( bits + PyLong_SHIFT - 1 ) / PyLong_SHIFT ; int digitsleft = ndigits ; int bitsleft = bits ; v = _PyLong_New ( ndigits ... | <S2SV_ModStart> m ) { return PyLong_FromString ( BN_bn2hex <S2SV_ModEnd> ( m ) <S2SV_ModStart> m ) , NULL , 16 ) <S2SV_ModEnd> ; } <S2SV_null> |
3,268 | CWE-000 static void ami_response_handler ( json_t * j_msg ) { const char * action_id ; const char * type ; json_t * j_action ; ACTION_RES res_action ; if ( j_msg == NULL ) { slog ( LOG_WARNING , "Wrong<S2SV_blank>input<S2SV_blank>parameter." ) ; return ; } slog ( LOG_DEBUG , "Fired<S2SV_blank>ami_response_handler." ) ;... | <S2SV_ModStart> j_action ) ; delete_action ( action_id ) ; <S2SV_ModStart> ( LOG_DEBUG , "The<S2SV_blank>action<S2SV_blank>response<S2SV_blank>finished.<S2SV_blank>action_id[%s],<S2SV_blank>res[%d]" <S2SV_ModEnd> , action_id , |
3,269 | CWE-000 buzzdebug_entry_t buzzdebug_entry_new ( uint64_t l , uint64_t c , const char * fn ) { buzzdebug_entry_t x = malloc ( sizeof ( struct buzzdebug_entry_s ) ) ; x -> line = l ; x -> col = c ; <S2SV_StartBug> x -> fname = strdup ( fn ) ; <S2SV_EndBug> return x ; } | <S2SV_ModStart> -> fname = fn <S2SV_ModEnd> ; return x |
3,270 | CWE-000 struct dma_buf * vc4_prime_export ( struct drm_device * dev , struct drm_gem_object * obj , int flags ) { struct vc4_bo * bo = to_vc4_bo ( obj ) ; <S2SV_StartBug> if ( bo -> validated_shader ) { <S2SV_EndBug> DRM_DEBUG ( "Attempting<S2SV_blank>to<S2SV_blank>export<S2SV_blank>shader<S2SV_blank>BO\\n" ) ; return ... | <S2SV_ModStart> obj ) ; struct dma_buf * dmabuf ; int ret ; <S2SV_ModStart> ) ; } ret = vc4_bo_inc_usecnt ( bo ) ; if ( ret ) { DRM_ERROR ( "Failed<S2SV_blank>to<S2SV_blank>increment<S2SV_blank>BO<S2SV_blank>usecnt\\n" ) ; return ERR_PTR ( ret ) ; } dmabuf = <S2SV_ModEnd> drm_gem_prime_export ( dev <S2SV_ModStart> flag... |
3,271 | CWE-000 void tpm_common_release ( struct file * file , struct file_priv * priv ) { <S2SV_StartBug> del_singleshot_timer_sync ( & priv -> user_read_timer ) ; <S2SV_EndBug> <S2SV_StartBug> flush_work ( & priv -> work ) ; <S2SV_EndBug> file -> private_data = NULL ; priv -> data_pending = 0 ; } | <S2SV_ModStart> priv ) { flush_work ( & priv -> async_work ) ; <S2SV_ModStart> & priv -> timeout_work <S2SV_ModEnd> ) ; file |
3,272 | CWE-000 void implement_xom ( void * base , size_t len , int prot , int flags , int fd , off_t off ) { void * sectable = NULL ; void * pgsectable = NULL ; void * execstart = NULL ; void * execend = NULL ; void * pgupexecstart = NULL ; void * pgdownexecstart = NULL ; void * pgupexecend = NULL ; void * pgdownexecend = NUL... | <S2SV_ModStart> PROT_READ ) ; <S2SV_ModEnd> __syscall ( __NR_munmap |
3,273 | CWE-000 static int nand_flash_detect_onfi ( struct mtd_info * mtd , struct nand_chip * chip , int * busw ) { struct nand_onfi_params * p = & chip -> onfi_params ; int i ; int val ; if ( chip -> options & NAND_BUSWIDTH_16 ) { pr_err ( "Trying<S2SV_blank>ONFI<S2SV_blank>probe<S2SV_blank>in<S2SV_blank>16<S2SV_blank>bits<S... | <S2SV_ModStart> -> erasesize = 1 << ( fls ( <S2SV_ModStart> -> pages_per_block ) ) - 1 ) ; mtd -> erasesize *= <S2SV_ModEnd> mtd -> writesize <S2SV_ModStart> -> chipsize = 1 << ( fls ( <S2SV_ModStart> p -> blocks_per_lun ) ) - 1 |
3,274 | CWE-000 void _DObject_Finish ( Word * word ) { uint64 ctype = word -> CProperty ; if ( ! ( ctype & CPRIMITIVE ) ) { if ( GetState ( _CfrTil_ , OPTIMIZE_ON ) ) word -> State |= COMPILED_OPTIMIZED ; if ( GetState ( _CfrTil_ , INLINE_ON ) ) word -> State |= COMPILED_INLINE ; if ( GetState ( _Context_ , INFIX_MODE ) ) word... | <S2SV_ModStart> |= W_C_SYNTAX ; <S2SV_ModEnd> } if ( |
3,275 | CWE-000 <S2SV_StartBug> void insert_des ( struct des_host * * head , uint32_t des_ip , uint32_t port_number ) <S2SV_EndBug> { des_host * new_node = ( des_host * ) malloc ( sizeof ( des_host ) ) ; new_node -> port = ( des_port * * ) malloc ( sizeof ( des_port ) ) ; new_node -> next = NULL ; new_node -> des_ip = des_ip ;... | <S2SV_ModStart> uint32_t des_ip , uint16_t <S2SV_ModEnd> port_number ) { |
3,276 | CWE-000 int compile_file ( ParserFile * file ) { char tmp_name [ 200 ] ; int err ; printf ( "section<S2SV_blank>.text\\n" ) ; printf ( "global<S2SV_blank>main\\n" ) ; printf ( "extern<S2SV_blank>printf\\n" ) ; printf ( "extern<S2SV_blank>scanf\\n" ) ; ParserFunction * f ; for ( f = file -> first ; f ; f = f -> next ) {... | <S2SV_ModStart> ; printf ( "prINTR<S2SV_blank>db<S2SV_blank>\\"%%i\\",<S2SV_blank>0\\n" ) ; printf ( <S2SV_ModStart> ++ ) { printf ( ";%i\\n" , ( file -> str_vals ) [ i ] ) ; <S2SV_ModStart> ; printf ( "$%s<S2SV_blank>db<S2SV_blank>`%s`,<S2SV_blank>0\\n" <S2SV_ModEnd> , tmp_name , |
3,277 | CWE-000 int feed_main ( struct feed_main_descriptor const * const p_main_descriptor ) { struct feed_main_context o_main_context ; struct feed_main_context * p_main_context ; p_main_context = & ( o_main_context ) ; if ( feed_options_init ( & ( p_main_context -> o_options ) , p_main_descriptor ) ) { init_feed_descriptor ... | <S2SV_ModStart> o_options . b_file_name <S2SV_ModEnd> || ( ! <S2SV_ModStart> STDIN_FILENO ) ) <S2SV_ModEnd> ) { FILE <S2SV_ModStart> ) ; } <S2SV_ModEnd> feed_start ( p_main_context <S2SV_ModStart> p_main_context -> p_feed_handle <S2SV_ModEnd> ) ; { |
3,278 | CWE-000 void render_window ( icy_control window ) { <S2SV_StartBug> static control_to_void * glfw_window_table = NULL ; <S2SV_EndBug> <S2SV_StartBug> if ( glfw_window_table == NULL ) <S2SV_EndBug> glfw_window_table = control_to_void_create ( NULL ) ; GLFWwindow * win = NULL ; control_to_void_try_get ( glfw_window_table... | <S2SV_ModStart> window ) { GLFWwindow * win <S2SV_ModEnd> = NULL ; <S2SV_ModStart> = NULL ; control_to_void_try_get ( glfw_window_lookup <S2SV_ModEnd> , & window <S2SV_ModStart> bool vsync_enabled = true <S2SV_ModEnd> ; if ( |
3,279 | CWE-000 void encode_image ( uint8_t * pixels , uint8_t * previous_pixels , uint16_t width , uint16_t height , uint8_t colors_used , uint16_t frame_delay ) { uint8_t color_depth = 1 ; while ( colors_used > ( 1 << color_depth ) ) <S2SV_StartBug> color_depth ++ ; <S2SV_EndBug> uint16_t cropped_left = 0 ; uint16_t cropped_... | <S2SV_ModStart> ) color_depth ++ ; if ( color_depth < 2 ) color_depth = 2 <S2SV_ModStart> lzw_minimum_code_size = color_depth <S2SV_ModEnd> ; put8 ( |
3,280 | CWE-000 static int alc5658_stop ( FAR struct audio_lowerhalf_s * dev ) # endif { FAR struct alc5658_dev_s * priv = ( FAR struct alc5658_dev_s * ) dev ; <S2SV_StartBug> I2S_STOP ( priv -> i2s ) ; <S2SV_EndBug> alc5658_exec_i2c_script ( priv , codec_stop_script , sizeof ( codec_stop_script ) / sizeof ( t_codec_init_scrip... | <S2SV_ModStart> ) dev ; if ( priv -> inout ) { <S2SV_ModStart> priv -> i2s , I2S_RX ) ; } else { I2S_STOP ( priv -> i2s , I2S_TX ) ; } <S2SV_ModEnd> alc5658_exec_i2c_script ( priv |
3,281 | CWE-000 void M_LoadCVARs ( char * filename ) { int i ; FILE * file = fopen ( filename , "r" ) ; <S2SV_StartBug> cvarsloaded = true ; <S2SV_EndBug> if ( ! file ) { <S2SV_StartBug> C_Output ( "Created<S2SV_blank><b>%s</b>." , filename ) ; <S2SV_EndBug> <S2SV_StartBug> M_CheckCVARs ( ) ; <S2SV_EndBug> return ; } for ( i =... | <S2SV_ModStart> "r" ) ; <S2SV_ModEnd> if ( ! <S2SV_ModStart> file ) { M_CheckCVARs ( ) ; M_SaveCVARs ( ) ; <S2SV_ModStart> filename ) ; cvarsloaded = true <S2SV_ModEnd> ; return ; <S2SV_ModStart> ( ) ; cvarsloaded = true ; |
3,282 | CWE-000 static int _launch_job_fail ( uint32_t job_id , uint32_t slurm_rc ) { complete_batch_script_msg_t comp_msg ; struct requeue_msg req_msg ; slurm_msg_t resp_msg ; int rc = 0 , rpc_rc ; static time_t config_update = 0 ; static bool requeue_no_hold = false ; if ( config_update != conf -> last_update ) { char * sche... | <S2SV_ModStart> ) && ( ( <S2SV_ModStart> rc == ESLURM_DISABLED ) || ( rc == ESLURM_BATCH_ONLY ) |
3,283 | CWE-000 static gint gst_tensordec_update_top_label_index ( GstTensorDec * self , guint8 * scores , guint len ) { gint i ; <S2SV_StartBug> gint ret ; <S2SV_EndBug> gint index = - 1 ; guint8 max_score = 0 ; <S2SV_StartBug> ret = - 1 ; <S2SV_EndBug> g_return_if_fail ( scores != NULL ) ; <S2SV_StartBug> g_return_if_fail ( ... | <S2SV_ModStart> i ; gint <S2SV_ModEnd> index = - <S2SV_ModStart> = 0 ; <S2SV_ModEnd> g_return_if_fail ( scores <S2SV_ModStart> NULL ) ; g_return_val_if_fail <S2SV_ModEnd> ( len == <S2SV_ModStart> tensordec_image_label . total_labels , - 1 <S2SV_ModStart> ; } } return index <S2SV_ModEnd> ; } <S2SV_null> |
3,284 | CWE-000 int main ( void ) { const struct CMUnitTest tests [ ] = { cmocka_unit_test_setup ( test_startstop , np_start ) , cmocka_unit_test ( test_edit_delete1 ) , cmocka_unit_test ( test_edit_delete2 ) , <S2SV_StartBug> cmocka_unit_test ( test_edit_delete3 ) , <S2SV_EndBug> cmocka_unit_test ( test_edit_create1 ) , cmock... | <S2SV_ModStart> cmocka_unit_test ( test_edit_delete3 ) , cmocka_unit_test ( test_edit_delete4 |
3,285 | CWE-000 int i386_cmovl ( asm_instr * new , u_char * opcode , u_int len , asm_processor * proc ) { new -> len += 1 ; new -> instr = ASM_CMOVL ; # if LIBASM_USE_OPERAND_VECTOR <S2SV_StartBug> # if WIP <S2SV_EndBug> new -> len += asm_operand_fetch ( & new -> op [ 0 ] , opcode + 1 , ASM_CONTENT_GENERAL , new , 0 ) ; # else... | <S2SV_ModStart> # if LIBASM_USE_OPERAND_VECTOR <S2SV_ModEnd> new -> len <S2SV_ModStart> new ) ; <S2SV_ModEnd> new -> len <S2SV_ModStart> new ) ; <S2SV_ModEnd> # else new |
3,286 | CWE-000 static int path_lookupat ( int dfd , const char * name , unsigned int flags , struct nameidata * nd ) { struct file * base = NULL ; struct path path ; int err ; err = path_init ( dfd , name , flags | LOOKUP_PARENT , nd , & base ) ; if ( unlikely ( err ) ) <S2SV_StartBug> goto out ; <S2SV_EndBug> current -> tota... | <S2SV_ModStart> err ) ) return err <S2SV_ModEnd> ; current -> |
3,287 | CWE-000 <S2SV_StartBug> void error ( char * fmt , ... ) { <S2SV_EndBug> va_list ap ; va_start ( ap , fmt ) ; vfprintf ( stderr , fmt , ap ) ; fprintf ( stderr , "\\n" ) ; exit ( 1 ) ; } | <S2SV_ModStart> <S2SV_null> <S2SV_null> <S2SV_null> noreturn |
3,288 | CWE-000 void ComputePtextBbox ( Tk_PathCanvas canvas , PtextItem * ptextPtr ) { Tk_PathItemEx * itemExPtr = & ptextPtr -> headerEx ; Tk_PathItem * itemPtr = & itemExPtr -> header ; Tk_PathStyle style ; Tk_PathState state = itemExPtr -> header . state ; double width ; double height ; double bheight ; PathRect bbox , r ;... | <S2SV_ModStart> / height ; itemPtr -> totalBbox = itemPtr -> bbox ; |
3,289 | CWE-000 static int run ( struct rules_actions_t * obj ) { struct JsonNode * jdevice = NULL ; struct JsonNode * jto = NULL ; struct JsonNode * jbvalues = NULL ; struct JsonNode * jbchild = NULL ; struct device_t * dev = NULL ; <S2SV_StartBug> if ( ( jdevice = json_find_member ( obj -> parsedargs , "DEVICE" ) ) != NULL &... | <S2SV_ModStart> ( obj -> arguments <S2SV_ModEnd> , "DEVICE" ) <S2SV_ModStart> ( obj -> arguments <S2SV_ModEnd> , "TO" ) |
3,290 | CWE-000 void Parse_File ( const char * name , int fd ) { char * cp ; char * line ; inLine = FALSE ; fatals = 0 ; Parse_SetInput ( name , 0 , fd , NULL , NULL ) ; do { for ( ; ( line = ParseReadLine ( ) ) != NULL ; ) { if ( DEBUG ( PARSE ) ) fprintf ( debug_file , "ParseReadLine<S2SV_blank>(%d):<S2SV_blank>\'%s\'\\n" , ... | <S2SV_ModStart> ( void ) fflush ( stdout ) ; ( void ) |
3,291 | CWE-000 static int bnxt_hwrm_check_vf_rings ( struct bnxt * bp , int tx_rings , int rx_rings , <S2SV_StartBug> int ring_grps , int cp_rings ) <S2SV_EndBug> { struct hwrm_func_vf_cfg_input req = { 0 } ; <S2SV_StartBug> u32 flags , enables ; <S2SV_EndBug> int rc ; if ( ! ( bp -> flags & BNXT_FLAG_NEW_RM ) ) return 0 ; <S... | <S2SV_ModStart> , int cp_rings , int vnics <S2SV_ModStart> ; u32 flags <S2SV_ModEnd> ; int rc <S2SV_ModStart> return 0 ; __bnxt_hwrm_reserve_vf_rings <S2SV_ModEnd> ( bp , <S2SV_ModStart> & req , tx_rings , rx_rings , ring_grps , cp_rings , vnics <S2SV_ModEnd> ) ; flags <S2SV_ModStart> | FUNC_VF_CFG_REQ_FLAGS_VNIC_ASSET... |
3,292 | CWE-000 SEXP R_lower_tri ( SEXP a , SEXP method <S2SV_StartBug> , SEXP weight , SEXP p , SEXP q , SEXP bt <S2SV_EndBug> , SEXP useBytes , SEXP nthrd ) { int bytes = INTEGER ( useBytes ) [ 0 ] , ml = max_length ( a ) , intdist = TYPEOF ( a ) == VECSXP ? 1 : 0 ; R_xlen_t n = xlength ( a ) , N = n * ( n - 1 ) / 2 ; if ( n... | <S2SV_ModStart> p , SEXP bt , SEXP q <S2SV_ModEnd> , SEXP useBytes |
3,293 | CWE-000 struct gges_parameters * gges_default_parameters ( ) { struct gges_parameters * def ; def = ALLOC ( 1 , sizeof ( struct gges_parameters ) , false ) ; def -> population_size = 1000 ; def -> generation_count = 50 ; def -> model = CONTEXT_FREE_GP ; def -> generation_method = GENERATIONAL ; def -> elitism_count = 1... | <S2SV_ModStart> ; def -> track_ind = 1 ; def -> |
3,294 | CWE-000 static int get_broker_section_params ( INI_TABLE * ini , int * shm_key_br_gl , int * mgmt_port , char * admin_log_file , int * lineno ) { const char * ini_string ; char path_buff [ BROKER_PATH_MAX ] ; <S2SV_StartBug> * shm_key_br_gl = ini_gethex ( ini , BROKER_SECTION_NAME , "BROKER_SHM_KEY" , <S2SV_EndBug> <S2... | <S2SV_ModStart> BROKER_PATH_MAX ] ; int default_shm_key ; const char * str_shm_key ; str_shm_key = prm_get_string_value ( PRM_ID_RYE_SHM_KEY ) ; parse_int ( & default_shm_key , str_shm_key , 16 ) ; default_shm_key += DEFUALT_BROKER_SHM_KEY_BASE ; <S2SV_ModStart> , "BROKER_SHM_KEY" , default_shm_key <S2SV_ModEnd> , line... |
3,295 | CWE-000 void display_fileinfo ( FILINFO * Finfo ) { is_file_details_displayed = false ; disp_timer = 0 ; lcd_clrscr ( ) ; switch ( dir_idx ) { case DIR_IDX_GO_UP : { if ( dir_name [ 0 ] ) { xprintf ( pct_s_str , dir_name ) ; lcd_gotoxy ( 0 , 1 ) ; xprintf ( dotdotdir_str ) ; } else { char label [ 24 ] ; f_getlabel ( ""... | <S2SV_ModStart> { xprintf ( pct_u_str <S2SV_ModEnd> , Finfo -> |
3,296 | CWE-000 int labels_format ( const wlabel_t * labels , char * str , size_t size ) { int i ; size_t z = 0 ; char * value_label ; for ( i = 0 ; labels [ i ] . key != NULL ; i ++ ) { value_label = parse_environment_labels ( labels [ i ] ) ; z += ( size_t ) snprintf ( str + z , size - z , "%s\\"%s\\":%s\\n" , labels [ i ] .... | <S2SV_ModStart> 1 ; } free ( value_label ) ; |
3,297 | CWE-000 static void push_free_frames ( uint32_t first , uint32_t last ) { <S2SV_StartBug> kprint ( "\\tpush_free_frames(%08x,<S2SV_blank>%08x)\\n" , first , last ) ; <S2SV_EndBug> for ( uint32_t n = first ; n < last ; n += frame_size ) push_free_frame ( n ) ; <S2SV_StartBug> kprint ( "\\tfree_frame_stack<S2SV_blank>is<... | <S2SV_ModStart> last ) { kdprint ( dbgout , <S2SV_ModEnd> "\\tpush_free_frames(%08x,<S2SV_blank>%08x)\\n" , first <S2SV_ModStart> n ) ; kdprint ( dbgout , <S2SV_ModEnd> "\\tfree_frame_stack<S2SV_blank>is<S2SV_blank>now:<S2SV_blank>%p\\n" , free_frame_stack <S2SV_ModStart> free_frame_stack ) ; kdprint ( dbgout , <S2SV_M... |
3,298 | CWE-000 void writememl ( uint32_t s , uint32_t a , uint32_t v ) <S2SV_StartBug> { <S2SV_EndBug> if ( writelookup2 [ ( ( s ) + ( a ) ) >> 12 ] == - 1 || ( s ) == 0xFFFFFFFF ) writememll ( s , a , v ) ; else * ( uint32_t * ) ( writelookup2 [ ( s + a ) >> 12 ] + s + a ) = v ; } | <S2SV_ModStart> v ) { if ( writelookup2 == NULL ) writememll ( s , a , v ) ; |
3,299 | CWE-000 static int sink_set_port_cb ( pa_sink * s , pa_device_port * p ) { struct userdata * u = s -> userdata ; pa_alsa_port_data * data ; pa_assert ( u ) ; pa_assert ( p ) ; pa_assert ( u -> mixer_handle ) ; data = PA_DEVICE_PORT_DATA ( p ) ; pa_assert_se ( u -> mixer_path = data -> path ) ; <S2SV_StartBug> pa_alsa_p... | <S2SV_ModStart> path ) ; <S2SV_ModEnd> mixer_volume_init ( u <S2SV_ModStart> mixer_volume_init ( u <S2SV_ModEnd> ) ; if <S2SV_ModStart> & PA_SINK_DEFERRED_VOLUME ) pa_asyncmsgq_send ( u -> sink -> asyncmsgq , PA_MSGOBJECT ( u -> sink ) , SINK_MESSAGE_SYNC_MIXER , p , 0 , NULL ) ; else sync_mixer ( u , p ) ; <S2SV_ModEn... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.