Unnamed: 0 int64 0 535k | source stringlengths 50 89.8k | target stringlengths 23 37.7k |
|---|---|---|
9,200 | CWE-000 static void updateTLSForStaticBuffers ( void ) { u32 * staticBufs = getThreadStaticBuffers ( ) ; u32 val = sessionManager . currentlyProvidedStaticBuffers ; for ( u32 i = 0 ; i < 4 ; i ++ ) { <S2SV_StartBug> s32 pos = getMSBPosition ( val ) ; <S2SV_EndBug> if ( pos != - 1 ) { staticBufs [ 2 * i ] = IPC_Desc_Sta... | <S2SV_ModStart> s32 pos = getLSBPosition <S2SV_ModEnd> ( val ) |
9,201 | CWE-000 uint8_t custom_command ( struct u2f_hid_msg * msg ) { struct atecc_response res ; <S2SV_StartBug> uint8_t ec ; <S2SV_EndBug> switch ( msg -> pkt . init . cmd ) { # ifdef U2F_SUPPORT_RNG_CUSTOM case U2F_CUSTOM_GET_RNG : if ( atecc_send_recv ( ATECC_CMD_RNG , ATECC_RNG_P1 , ATECC_RNG_P2 , NULL , 0 , appdata . tmp... | <S2SV_ModStart> uint8_t ec ; if ( msg -> cid != U2FHID_BROADCAST ) { return 0 ; } |
9,202 | CWE-000 void part2_main ( void * ptr ) { uint32_t signals = 0 ; size_t len = 0 ; char * str = NULL ; while ( 1 ) { signals = psa_wait_any ( PSA_WAIT_BLOCK ) ; if ( 0 == ( signals & ( SF_REVERSE_MSK | SF_DB_TST_MSK ) ) ) { SPM_PANIC ( "returned<S2SV_blank>from<S2SV_blank>psa_wait_any<S2SV_blank>without<S2SV_blank>SF_REV... | <S2SV_ModStart> = NULL ; psa_end ( msg . handle , PSA_SUCCESS ) ; break ; } case PSA_IPC_MSG_TYPE_CONNECT : psa_end ( msg . handle , PSA_SUCCESS ) ; break ; <S2SV_ModEnd> case PSA_IPC_MSG_TYPE_DISCONNECT : <S2SV_ModStart> case PSA_IPC_MSG_TYPE_DISCONNECT : <S2SV_ModEnd> break ; default <S2SV_ModStart> break ; } <S2SV_M... |
9,203 | CWE-000 static void do_ecb ( struct ecb_param * ecb ) { do { nrf_ecb_task_trigger ( NRF_ECB , NRF_ECB_TASK_STOPECB ) ; NRF_ECB -> ECBDATAPTR = ( u32_t ) ecb ; NRF_ECB -> EVENTS_ENDECB = 0 ; NRF_ECB -> EVENTS_ERRORECB = 0 ; nrf_ecb_task_trigger ( NRF_ECB , NRF_ECB_TASK_STARTECB ) ; while ( ( NRF_ECB -> EVENTS_ENDECB == ... | <S2SV_ModStart> ( CONFIG_SOC_SERIES_BSIM_NRFXX ) k_busy_wait ( 10 <S2SV_ModEnd> ) ; # |
9,204 | CWE-000 ElevatorStatus * * allocate_elevator_information ( int numberOfElevators , int numberOfFloors , pthread_mutex_t sendMutex ) { <S2SV_StartBug> ElevatorStatus * * elevators = ( ElevatorStatus * * ) malloc ( sizeof ( ElevatorStatus * ) * numberOfElevators ) ; <S2SV_EndBug> int i ; for ( i = 1 ; i <= numberOfElevat... | <S2SV_ModStart> * ) * ( numberOfElevators + 1 ) <S2SV_ModEnd> ) ; int <S2SV_ModStart> ) ) ; printf ( "Allocated<S2SV_blank>nr:<S2SV_blank>%d\\n" , i ) ; |
9,205 | CWE-000 static void error_check_comp_unit_head ( struct dwarf2_per_objfile * dwarf2_per_objfile , struct comp_unit_head * header , struct dwarf2_section_info * section , struct dwarf2_section_info * abbrev_section ) { <S2SV_StartBug> const char * filename = get_section_file_name ( section ) ; <S2SV_EndBug> if ( header ... | <S2SV_ModStart> get_section_file_name ( section <S2SV_ModEnd> ) ; if |
9,206 | CWE-000 static void nni_ep_con_start ( nni_ep * ep ) { <S2SV_StartBug> nni_aio * aio = & ep -> ep_con_aio ; <S2SV_EndBug> if ( ep -> ep_closing ) { return ; } <S2SV_StartBug> aio -> a_endpt = ep -> ep_data ; <S2SV_EndBug> ep -> ep_ops . ep_connect ( ep -> ep_data , aio ) ; } | <S2SV_ModStart> * aio = <S2SV_ModEnd> ep -> ep_con_aio <S2SV_ModStart> return ; } nni_aio_set_ep ( aio , <S2SV_ModEnd> ep -> ep_data <S2SV_ModStart> ep -> ep_data ) |
9,207 | CWE-000 static int validate_constant_array ( HashTable * ht ) { int ret = 1 ; zval * val ; GC_PROTECT_RECURSION ( ht ) ; ZEND_HASH_FOREACH_VAL_IND ( ht , val ) { ZVAL_DEREF ( val ) ; if ( Z_REFCOUNTED_P ( val ) ) { if ( Z_TYPE_P ( val ) == IS_ARRAY ) { if ( Z_REFCOUNTED_P ( val ) ) { if ( Z_IS_RECURSIVE_P ( val ) ) { z... | <S2SV_ModStart> ( E_WARNING , "Constants<S2SV_blank>may<S2SV_blank>only<S2SV_blank>evaluate<S2SV_blank>to<S2SV_blank>scalar<S2SV_blank>values,<S2SV_blank>arrays<S2SV_blank>or<S2SV_blank>resources" <S2SV_ModEnd> ) ; ret |
9,208 | CWE-000 void movLayerDraw ( MovLayer * movLayers , Layer * layers ) { int row , col ; MovLayer * movLayer ; and_sr ( ~ 8 ) ; <S2SV_StartBug> for ( movLayer = movLayers ; movLayer ; movLayer = movLayer -> next ) { <S2SV_EndBug> Region bounds ; layerGetBounds ( movLayer -> layer , & bounds ) ; lcd_setArea ( bounds . topL... | <S2SV_ModStart> -> next ) { Layer * l = movLayer -> layer ; l -> posLast = l -> pos ; l -> pos = l -> posNext ; } or_sr ( 8 ) ; for ( movLayer = movLayers ; movLayer ; movLayer = movLayer -> next ) |
9,209 | CWE-000 static void callback_get_printers_async ( GObject * proxy , GAsyncResult * res , gpointer user_data ) { g_print ( "callback_get_printers_async<S2SV_blank>called!\\n" ) ; <S2SV_StartBug> GVariant * dict = g_variant_new ( "a{sv}" ) ; <S2SV_EndBug> GError * error ; error = NULL ; print_backend_call_get_printers_fi... | <S2SV_ModStart> GVariant * dict <S2SV_ModEnd> ; GError * |
9,210 | CWE-000 int main ( int argc , char * argv [ ] ) { int opt ; int ret = 0 ; int src_rows = 720 ; int src_column = 1280 ; int frame = 0 ; int bytes_per_pixel = BYTES_YUV422_PIXEL ; char file_src [ 100 ] ; char file_dst [ 100 ] ; unsigned char * pic_src = NULL ; unsigned char * pic_dst = NULL ; unsigned char * pic_y = NULL... | <S2SV_ModStart> = 0 ; int header_len = 0 ; <S2SV_ModStart> file_dst ) ; header_len = get_frame_offset ( file_src ) ; if ( header_len < 0 ) { printf ( "file<S2SV_blank>format<S2SV_blank>is<S2SV_blank>not<S2SV_blank>supported\\n" ) ; return - 1 ; } <S2SV_ModStart> , pic_src , header_len <S2SV_ModEnd> + frame * |
9,211 | CWE-000 void multiply ( const struct BigInt * big_int , int factor , struct BigInt * big_result ) { int overflow = 0 ; for ( size_t j = MAX_DIGITS - 1 ; j >= MAX_DIGITS - big_int -> digits_count ; j -- ) { <S2SV_StartBug> printf ( "%d\\n" , overflow ) ; <S2SV_EndBug> int digit = big_int -> the_int [ j ] * factor ; digi... | <S2SV_ModStart> -- ) { <S2SV_ModEnd> int digit = <S2SV_ModStart> digit % 10 <S2SV_ModEnd> ; overflow = |
9,212 | CWE-000 void vy_rollback ( struct vy_tx * tx ) { <S2SV_StartBug> for ( struct txv * v = write_set_first ( & tx -> write_set ) ; <S2SV_EndBug> v != NULL ; v = write_set_next ( & tx -> write_set , v ) ) { if ( v -> mem != NULL ) vy_mem_unpin ( v -> mem ) ; } vy_tx_rollback ( tx ) ; mempool_free ( & tx -> xm -> tx_mempool... | <S2SV_ModStart> tx ) { <S2SV_ModEnd> vy_tx_rollback ( tx |
9,213 | CWE-000 static int parse_args ( int argc , char * argv [ ] , struct settings * settings ) { int opt ; for ( ; ; ) { opt = getopt_long ( argc , argv , "c:h:p:P:t:nbH" , main_options , NULL ) ; if ( opt < 0 ) break ; switch ( opt ) { case 'c' : settings -> config_path = optarg ; break ; case 'h' : settings -> host = l_st... | <S2SV_ModStart> true ; return 0 <S2SV_ModEnd> ; default : <S2SV_ModStart> default : return - EINVAL <S2SV_ModEnd> ; } } <S2SV_ModStart> ) ; return - EINVAL ; } return 0 <S2SV_ModEnd> ; } <S2SV_null> |
9,214 | CWE-000 int smu_set_watermarks_for_clocks_ranges ( void * wt_table , struct pp_wm_sets_with_clock_ranges_soc15 * wm_with_clock_ranges ) { uint32_t i ; struct watermarks * table = wt_table ; <S2SV_StartBug> if ( ! table || wm_with_clock_ranges ) <S2SV_EndBug> return - EINVAL ; if ( wm_with_clock_ranges -> num_wm_sets_dm... | <S2SV_ModStart> ! table || ! |
9,215 | CWE-000 <S2SV_StartBug> void grid_set ( Grid * this , GridPos * pos , GridContents value ) <S2SV_EndBug> { <S2SV_StartBug> this -> cells [ pos -> x ] [ pos -> y ] = value ; <S2SV_EndBug> display_pixel ( pos -> x , pos -> y , __colour ( value ) ) ; } | <S2SV_ModStart> ( Grid * grid <S2SV_ModEnd> , GridPos * <S2SV_ModStart> value ) { grid <S2SV_ModEnd> -> cells [ |
9,216 | CWE-000 void fiberYield ( ) { if ( inFiber ) { LF_DEBUG_OUT ( "libfiber<S2SV_blank>debug:<S2SV_blank>Fiber<S2SV_blank>%d<S2SV_blank>yielding<S2SV_blank>the<S2SV_blank>processor..." , currentFiber ) ; swapcontext ( & fiberList [ currentFiber ] . context , & mainContext ) ; } else { if ( numFibers == 0 ) return ; current... | <S2SV_ModStart> % numFibers ; ctr_object * ctx = ctr_contexts [ ctr_context_id ] ; <S2SV_ModStart> = 1 ; ctr_switch_context ( fiberList [ currentFiber ] . ctr_context ) ; <S2SV_ModStart> ] . context ) ; ctr_switch_context ( ctx |
9,217 | CWE-000 static void update_cib_stonith_devices_v2 ( const char * event , xmlNode * msg ) { xmlNode * change = NULL ; char * reason = NULL ; bool needs_update = FALSE ; xmlNode * patchset = get_message_xml ( msg , F_CIB_UPDATE_RESULT ) ; for ( change = __xml_first_child ( patchset ) ; change != NULL ; change = __xml_nex... | <S2SV_ModStart> ( xpath , "/" <S2SV_ModStart> , XML_TAG_ATTR_SETS ) || strstr ( xpath , XML_TAG_META_SETS ) <S2SV_ModStart> needs_update = TRUE ; reason = strdup ( "(meta)<S2SV_blank>attribute<S2SV_blank>deleted<S2SV_blank>from<S2SV_blank>resource" ) <S2SV_ModStart> ( xpath , "/" <S2SV_ModStart> ( xpath , "/" |
9,218 | CWE-000 <S2SV_StartBug> void checkdelaunay ( m , b ) <S2SV_EndBug> struct mesh * m ; struct behavior * b ; # endif { struct otri triangleloop ; struct otri oppotri ; struct osub opposubseg ; vertex triorg , tridest , triapex ; vertex oppoapex ; int shouldbedelaunay ; int horrors ; int saveexact ; triangle ptr ; subseg ... | <S2SV_ModStart> <S2SV_null> <S2SV_null> <S2SV_null> void checkdelaunay ( struct mesh * m , struct behavior * b ) # else |
9,219 | CWE-000 size_t ZSTD_decompressBegin ( ZSTD_DCtx * dctx ) { assert ( dctx != NULL ) ; dctx -> expected = ZSTD_startingInputLength ( dctx -> format ) ; dctx -> stage = ZSTDds_getFrameHeaderSize ; dctx -> decodedSize = 0 ; dctx -> previousDstEnd = NULL ; <S2SV_StartBug> dctx -> base = NULL ; <S2SV_EndBug> <S2SV_StartBug> ... | <S2SV_ModStart> ; dctx -> prefixStart <S2SV_ModEnd> = NULL ; <S2SV_ModStart> ; dctx -> virtualStart <S2SV_ModEnd> = NULL ; |
9,220 | CWE-000 void jacobi_mpi3D_2 ( Information * information , int maxit , double threshold , double * U , double * F , double * Unew ) { int rank = information -> rank ; <S2SV_StartBug> int size = information -> size ; <S2SV_EndBug> int loc_Nx = information -> loc_Nx [ rank ] ; int loc_Ny = information -> loc_Ny [ rank ] ;... | <S2SV_ModStart> information -> size ; int Nx = information -> global_Nx ; int Ny = information -> global_Ny ; int Nz = information -> global_Nz |
9,221 | CWE-000 <S2SV_StartBug> void convertData ( struct message_info message , char * data ) <S2SV_EndBug> { char dataByte ; char messageError ; MessageBufferOut = message . index ; for ( char i = 0 ; i < message . length ; i ++ ) { messageError = MessageBufferGet ( & dataByte ) ; if ( messageError == 0 ) { data [ i ] = data... | <S2SV_ModStart> message_info message , uint8_t <S2SV_ModEnd> * data ) |
9,222 | CWE-000 void makemessage ( FILE * f , int omsgCount ) { size_t size ; struct message * nmessage ; size = ( msgCount + 1 ) * sizeof ( struct message ) ; nmessage = ( struct message * ) realloc ( message , size ) ; if ( nmessage == NULL ) errx ( 1 , "Insufficient<S2SV_blank>memory<S2SV_blank>for<S2SV_blank>%d<S2SV_blank>... | <S2SV_ModStart> ) , ( void <S2SV_ModEnd> * ) & |
9,223 | CWE-000 int sock_bind ( net_sock_t * nsock , char * address , int port ) { tbx_net_sock_t * sock = ( tbx_net_sock_t * ) nsock ; int flags ; struct sockaddr_in sa ; if ( sock == NULL ) return ( - 1 ) ; if ( sock -> fd != - 1 ) close ( sock -> fd ) ; sock -> fd = - 1 ; log_printf ( 10 , "host=%s:%d\\n" , address , port )... | <S2SV_ModStart> fd ) ; sock -> fd = - 1 ; |
9,224 | CWE-000 <S2SV_StartBug> void __ubsan_handle_sub_overflow ( ) { <S2SV_EndBug> panic ( "ubsan:<S2SV_blank>sub<S2SV_blank>overflow<S2SV_blank>detected\\n" ) ; } | <S2SV_ModStart> ( ) { backtrace_from_here ( 20 ) ; |
9,225 | CWE-000 int main ( int argcount , char * argvector [ ] ) { printf ( "Ninja<S2SV_blank>Virtual<S2SV_blank>Machine<S2SV_blank>started\\n" ) ; for ( int i = 0 ; i < argcount ; i ++ ) { if ( ! strcmp ( argvector [ i ] , "--version" ) ) { <S2SV_StartBug> printf ( "Version<S2SV_blank>=<S2SV_blank>" , version , "\\n" ) ; <S2S... | <S2SV_ModStart> { printf ( "Version<S2SV_blank>=<S2SV_blank>%d<S2SV_blank>\\n" , version <S2SV_ModEnd> ) ; } <S2SV_ModStart> = HALT ; programSize = 10 ; <S2SV_ModStart> = HALT ; programSize = 8 ; <S2SV_ModStart> = HALT ; programSize = 4 ; |
9,226 | CWE-000 static int event_command_script_list ( TALLOC_CTX * mem_ctx , int argc , const char * * argv , void * private_data ) { struct event_tool_context * ctx = talloc_get_type_abort ( private_data , struct event_tool_context ) ; char * subdir = NULL ; char * data_dir = NULL ; char * etc_dir = NULL ; struct event_scrip... | <S2SV_ModStart> NULL ) { return <S2SV_ModEnd> ENOMEM ; } |
9,227 | CWE-000 int tegra_dsi_send_panel_cmd ( struct tegra_dc * dc , struct tegra_dc_dsi_data * dsi , struct tegra_dsi_cmd * cmd , u32 n_cmd ) { # define DEFAULT_DELAY_MS 1 u32 i ; int err ; u8 delay_ms ; err = 0 ; for ( i = 0 ; i < n_cmd ; i ++ ) { struct tegra_dsi_cmd * cur_cmd ; cur_cmd = & cmd [ i ] ; if ( cur_cmd -> cmd_... | <S2SV_ModStart> sp_len_dly . delay_ms && <S2SV_ModEnd> 1000 , ( |
9,228 | CWE-000 int main ( ) { int n = __VERIFIER_nondet_int ( ) ; <S2SV_StartBug> node_t * head = init_ll ( n ) ; <S2SV_EndBug> <S2SV_StartBug> safe_search ( head , __VERIFIER_nondet_int ( ) % n ) ; <S2SV_EndBug> return 0 ; } | <S2SV_ModStart> ( ) ; if ( n < 1 ) { return 0 ; } <S2SV_ModStart> n ) ; int m = __VERIFIER_nondet_int ( ) ; if ( m < 0 ) { return 0 ; } <S2SV_ModStart> ( head , m <S2SV_ModEnd> % n ) |
9,229 | CWE-000 int main ( int argc , char const * argv [ ] ) { printf ( "In<S2SV_blank>application\\n" ) ; printf ( "Hello.<S2SV_blank>I<S2SV_blank>m<S2SV_blank>back\\n" ) ; <S2SV_StartBug> if ( open ( "abc" , O_RDONLY ) == - 1 ) { <S2SV_EndBug> printf ( "Can\'t<S2SV_blank>open<S2SV_blank>file\\n" ) ; } else printf ( "File<S2... | <S2SV_ModStart> "Hello.<S2SV_blank>I<S2SV_blank>m<S2SV_blank>back\\n" ) ; int a = 100 ; FILE * fp = fopen <S2SV_ModEnd> ( "abc" , <S2SV_ModStart> ( "abc" , "w" ) ; if ( fp == NULL <S2SV_ModEnd> ) { printf <S2SV_ModStart> "File<S2SV_blank>Opened\\n" ) ; if ( fwrite ( & a , sizeof ( a ) , 1 , fp ) == 0 ) { printf ( "writ... |
9,230 | CWE-000 void * generator_thread ( void * param ) { struct thread_param * par = param ; int i = 0 , pcpu ; cpu_set_t mask ; struct request_config * config ; struct request * req ; if ( ! par ) return NULL ; pcpu = par -> pCPU ; if ( pcpu ) { pthread_t thread ; CPU_ZERO ( & mask ) ; CPU_SET ( pcpu , & mask ) ; thread = p... | <S2SV_ModStart> { tprintf ( "set<S2SV_blank>affinity<S2SV_blank>failed<S2SV_blank>\\n" ) ; tprintf ( "affinity<S2SV_blank>failed<S2SV_blank>from<S2SV_blank>pktgen.c<S2SV_blank>\\n" <S2SV_ModEnd> ) ; return |
9,231 | CWE-000 inline int sh_lexheredoc ( int fd , t_tok * tok , char * * it , char * * ln ) { char * eof ; size_t eofl ; eofl = tok -> len ; eof = ft_memcpy ( ft_malloc ( eofl * sizeof ( char ) ) , tok -> val , tok -> len ) ; tok -> len = 0 ; while ( 1 ) if ( ! * * it && ( fd < 0 || ! ( * it = rl_catline ( fd , "><S2SV_blank... | <S2SV_ModStart> ) return ( * it < ( char * ) 0 ? WUT : sh_synerr ( * ln , * it , "Unexpected<S2SV_blank>" "EOF<S2SV_blank>while<S2SV_blank>looking<S2SV_blank>for<S2SV_blank>heredoc<S2SV_blank>delimiter<S2SV_blank>`%s\'" , eof <S2SV_ModEnd> ) ) ; |
9,232 | CWE-000 int SPI_connect ( void ) { int newdepth ; if ( _SPI_stack == NULL ) { if ( _SPI_connected != - 1 || _SPI_stack_depth != 0 ) elog ( ERROR , "SPI<S2SV_blank>stack<S2SV_blank>corrupted" ) ; newdepth = 16 ; _SPI_stack = ( _SPI_connection * ) MemoryContextAlloc ( TopTransactionContext , newdepth * sizeof ( _SPI_conn... | <S2SV_ModStart> = NULL ; _SPI_current -> execSubid = InvalidSubTransactionId ; |
9,233 | CWE-000 static void fof_write_header ( BigFile * bf ) { <S2SV_StartBug> BigBlock bh = { 0 } ; <S2SV_EndBug> if ( 0 != big_file_mpi_create_block ( bf , & bh , "Header" , NULL , 0 , 0 , 0 , MPI_COMM_WORLD ) ) { endrun ( 0 , "Failed<S2SV_blank>to<S2SV_blank>create<S2SV_blank>header\\n" ) ; } int i ; int k ; int64_t npartL... | <S2SV_ModStart> { BigBlock bh <S2SV_ModEnd> ; if ( |
9,234 | CWE-000 static void seaslog_log_by_level_common ( INTERNAL_FUNCTION_PARAMETERS , char * level , int level_int ) { int argc = ZEND_NUM_ARGS ( ) ; # if PHP_VERSION_ID >= 70000 zend_string * message , * logger ; zval * content ; if ( zend_parse_parameters ( argc TSRMLS_CC , "S|zS" , & message , & content , & logger ) == F... | <S2SV_ModStart> ( argc > 2 ) { if ( seaslog_log_content ( argc , level , level_int , ZSTR_VAL ( message ) , ZSTR_LEN ( message ) , HASH_OF ( content ) , ZSTR_VAL ( logger ) , ZSTR_LEN ( logger ) , seaslog_ce TSRMLS_CC ) == FAILURE ) { RETURN_FALSE ; } } else if ( argc > <S2SV_ModStart> content ) , "" , 0 <S2SV_ModEnd> ... |
9,235 | CWE-000 void basicMandelbrotSequenceSinglePalette ( const size_t count , channel * * images , Configuration * * configurations , const rgb * palette , const int paletteSize ) { <S2SV_StartBug> for ( size_t index = 0 ; index < count ; ++ index ) <S2SV_EndBug> { images [ index ] = calloc ( configurations [ index ] -> wid... | <S2SV_ModStart> paletteSize ) { double totalTimeInMilliseconds = 0.0 ; <S2SV_ModStart> / CLOCKS_PER_SEC ; totalTimeInMilliseconds += elapsedTimeInMilliSeconds ; <S2SV_ModStart> # endif } # ifdef BENCHMARK printf ( "Total<S2SV_blank>time<S2SV_blank>taken<S2SV_blank>for<S2SV_blank>execution<S2SV_blank>of<S2SV_blank>all<S... |
9,236 | CWE-000 void configMode ( void ) { uint8_t goToThermoMode = FALSE ; display_t lastDisp = confOverview ; smhTime_t newTime = systemState . time ; display_t newDisplayMode = systemState . displayMode ; configChoice_t confChoice = confChoiceDisp ; uint8_t speed = systemState . readIntervall ; setConfStepDisp ( lastDisp , ... | <S2SV_ModStart> & goToThermoMode , & lastDisp , & newTime , & newDisplayMode , & confChoice , & <S2SV_ModEnd> speed ) ; |
9,237 | CWE-000 <S2SV_StartBug> int * GetTempGene ( void ) <S2SV_EndBug> { int * temp = NULL ; temp = ( int * ) calloc ( - 1 , Job * sizeof ( int ) ) ; return & temp ; } | <S2SV_ModStart> <S2SV_null> <S2SV_null> <S2SV_null> static |
9,238 | CWE-000 int malzmq_add_string_encoding_length ( mal_string_t * to_encode , malzmq_mapping_directory_t * mapping_directory , mal_encoder_t * encoder , void * cursor ) { <S2SV_StartBug> int rc = 0 ; <S2SV_EndBug> bool mdk_encode = false ; unsigned int md_key ; if ( mapping_directory != NULL ) { <S2SV_StartBug> rc = mappi... | <S2SV_ModStart> cursor ) { <S2SV_ModEnd> bool mdk_encode = <S2SV_ModStart> NULL ) { int <S2SV_ModStart> } } return 0 <S2SV_ModEnd> ; } <S2SV_null> |
9,239 | CWE-000 static void flip_vs_cursor_busy_crc ( igt_display_t * display , bool atomic ) { struct drm_mode_cursor arg [ 2 ] ; struct drm_event_vblank vbl ; struct igt_fb fb_info [ 2 ] , cursor_fb ; unsigned vblank_start ; enum pipe pipe = find_connected_pipe ( display , false ) ; igt_pipe_t * pipe_connected = & display ->... | <S2SV_ModStart> [ 2 ] , test_crc <S2SV_ModStart> ; pipe_crc = igt_pipe_crc_new <S2SV_ModEnd> ( display -> <S2SV_ModStart> * spin ; <S2SV_ModEnd> spin = igt_spin_batch_new <S2SV_ModStart> vblank_start ) ; igt_pipe_crc_drain ( pipe_crc ) ; igt_pipe_crc_get_single ( pipe_crc , & test_crc <S2SV_ModEnd> ) ; igt_spin_batch_f... |
9,240 | CWE-000 void run_echo ( EchoCommand cmd ) { <S2SV_StartBug> char * * str = cmd . args ; <S2SV_EndBug> int i = 0 ; while ( cmd . args [ i ] != NULL ) { printf ( "%s<S2SV_blank>" , cmd . args [ i ] ) ; i ++ ; } printf ( "\\n" ) ; fflush ( stdout ) ; } | <S2SV_ModStart> cmd . args ; ( void ) str |
9,241 | CWE-000 snk_hops_cfg * parameters_snk_hops_seps_rs_config ( const char * fileConfig ) { snk_hops_cfg * cfg ; unsigned int tmpInt1 ; char * tmpStr1 ; char * tmpStr2 ; cfg = snk_hops_cfg_construct ( ) ; cfg -> fS = parameters_lookup_int ( fileConfig , "sss.separated.fS" ) ; tmpInt1 = parameters_lookup_int ( fileConfig , ... | <S2SV_ModStart> ( ) ; cfg -> format = format_construct_undefined ( ) ; |
9,242 | CWE-000 int main ( int argc , char * * argv ) { <S2SV_StartBug> shell_loop ( argc >= 1 ? argv [ 1 ] : "<S2SV_blank>>>><S2SV_blank>" ) ; <S2SV_EndBug> return 0 ; } | <S2SV_ModStart> shell_loop ( argc > <S2SV_ModEnd> 1 ? argv |
9,243 | CWE-000 <S2SV_StartBug> int getHeading ( ) { return I2Cread32 ( MOTOR_ADDR , HEADING ) ; } <S2SV_EndBug> | <S2SV_ModStart> ) { return I2Cread16 <S2SV_ModEnd> ( MOTOR_ADDR , |
9,244 | CWE-000 void Mapper85_Init ( CartInfo * info ) { info -> Power = VRC7Power ; info -> Close = VRC7Close ; MapIRQHook = VRC7IRQHook ; WRAMSIZE = 8192 ; WRAM = ( uint8 * ) FCEU_gmalloc ( WRAMSIZE ) ; SetupCartPRGMapping ( 0x10 , WRAM , WRAMSIZE , 1 ) ; AddExState ( WRAM , WRAMSIZE , 0 , "WRAM" ) ; if ( info -> battery ) {... | <S2SV_ModStart> 0 ) ; # ifndef GEKKO <S2SV_ModStart> "SLOT" ) ; # endif |
9,245 | CWE-000 static void * bgzf_mt_reader ( void * vp ) { BGZF * fp = ( BGZF * ) vp ; mtaux_t * mt = fp -> mt ; restart : pthread_mutex_lock ( & mt -> job_pool_m ) ; bgzf_job * j = pool_alloc ( mt -> job_pool ) ; pthread_mutex_unlock ( & mt -> job_pool_m ) ; j -> errcode = 0 ; j -> comp_len = 0 ; j -> uncomp_len = 0 ; j -> ... | <S2SV_ModStart> ; } } return NULL ; |
9,246 | CWE-000 static void lcp_recv ( struct ppp_handler_t * h ) { struct lcp_hdr_t * hdr ; struct ppp_lcp_t * lcp = container_of ( h , typeof ( * lcp ) , hnd ) ; int r ; char * term_msg ; if ( lcp -> ppp -> buf_size < PPP_HEADERLEN + 2 ) { log_ppp_warn ( "LCP:<S2SV_blank>short<S2SV_blank>packet<S2SV_blank>received\\n" ) ; re... | <S2SV_ModStart> ) ; else { <S2SV_ModStart> fsm ) ; } <S2SV_ModStart> ) ; else { <S2SV_ModStart> fsm ) ; } |
9,247 | CWE-000 int main ( ) { uint8 i ; uint8 DMA_Chan ; uint8 DMA_TD [ 1 ] ; EEPROM_Start ( ) ; memRecall ( ) ; CyDelay ( 100 ) ; FTDI_ENABLE_REG_Write ( 0x01 ) ; UART_RS485_Stop ( ) ; UART_RS485_Start ( ) ; UART_RS485_Init ( ) ; UART_RS485_ClearRxBuffer ( ) ; UART_RS485_ClearTxBuffer ( ) ; ISR_RS485_RX_StartEx ( ISR_RS485_R... | <S2SV_ModStart> ; dev_pwm_limit = dev_pwm_sat <S2SV_ModEnd> ; tension_valid = |
9,248 | CWE-000 CaptureInput * capture_input_pcap_offline ( const gchar * infile , GError * * error ) { char errbuf [ PCAP_ERRBUF_SIZE ] ; if ( strlen ( infile ) == 1 && * infile == '-' ) { infile = "/dev/stdin" ; freopen ( "/dev/tty" , "r" , stdin ) ; } CapturePcap * pcap = g_malloc ( sizeof ( CapturePcap ) ) ; if ( ( pcap ->... | <S2SV_ModStart> link ) == 0 <S2SV_ModEnd> ) { g_set_error |
9,249 | CWE-000 boolean_t pkgTestInstalled ( char * a_packageName , char * a_rootPath ) { char cmd [ MAXPATHLEN + 1 ] ; int rc ; <S2SV_StartBug> assert ( a_packageName != ( char * ) NULL ) ; <S2SV_EndBug> assert ( * a_packageName != '\\0' ) ; <S2SV_StartBug> assert ( a_rootPath != ( char * ) NULL ) ; <S2SV_EndBug> <S2SV_StartB... | <S2SV_ModStart> ( a_packageName != <S2SV_ModEnd> NULL ) ; <S2SV_ModStart> ( a_rootPath != <S2SV_ModEnd> NULL ) ; <S2SV_ModStart> ; assert ( * |
9,250 | CWE-000 void write_block_cmd ( u8 * data , int data_len ) { dprint_s ( "WRITE<S2SV_blank>BLOCK\\r\\n" ) ; if ( data_len != ( 1 + BLK_SIZE ) ) { <S2SV_StartBug> dprint_s ( "DATA<S2SV_blank>LENGTH<S2SV_blank>WRONG<S2SV_blank>" ) ; <S2SV_EndBug> dprint_dec ( data_len ) ; dprint_s ( "\\r\\n" ) ; finish_command_resp ( INVAL... | <S2SV_ModStart> ) ) { <S2SV_ModEnd> finish_command_resp ( INVALID_INPUT <S2SV_ModStart> NUM_STORAGE_BLOCKS ) { <S2SV_ModEnd> finish_command_resp ( INVALID_INPUT <S2SV_ModStart> return ; } <S2SV_ModEnd> flash_write_page ( ID_BLK |
9,251 | CWE-000 void get_line ( stack_t * * stack , const char * filename ) { FILE * fptr ; char * lineptr = NULL ; <S2SV_StartBug> size_t len = 0 ; <S2SV_EndBug> unsigned int line_count = 0 ; fptr = fopen ( filename , "r" ) ; if ( ! fptr ) { fprintf ( stderr , "Error:<S2SV_blank>Can\'t<S2SV_blank>open<S2SV_blank>file<S2SV_bla... | <S2SV_ModStart> len = 0 ; int err_flag <S2SV_ModStart> lineptr ) ; err_flag = <S2SV_ModStart> line_count ) ; if ( err_flag == 0 ) { fprintf ( stderr , "L%d:<S2SV_blank>unknown<S2SV_blank>instruction<S2SV_blank>%s\\n" , line_count , element_t . str ) ; free_stack ( stack ) ; fclose ( fptr ) ; <S2SV_ModEnd> free ( linept... |
9,252 | CWE-000 void rt_commit ( struct config * new , struct config * old ) { struct rtable_config * o , * r ; DBG ( "rt_commit:\\n" ) ; if ( old ) { WALK_LIST ( o , old -> tables ) { rtable * ot = o -> table ; if ( ! ot -> deleted ) { struct symbol * sym = cf_find_symbol ( new , o -> name ) ; if ( sym && sym -> class == SYM_... | <S2SV_ModStart> t , r <S2SV_ModEnd> ) ; add_tail |
9,253 | CWE-000 static __DRIimage * intel_create_image_from_texture ( __DRIcontext * context , int target , unsigned texture , int zoffset , int level , unsigned * error , void * loaderPrivate ) { __DRIimage * image ; struct brw_context * brw = context -> driverPrivate ; struct gl_texture_object * obj ; struct intel_texture_ob... | <S2SV_ModStart> : false ; image -> planar_format = iobj -> planar_format ; |
9,254 | CWE-000 static int <S2SV_StartBug> _pm_dm_refresh_stats_counter ( const char * name , struct pm_wrap * pw ) <S2SV_EndBug> { <S2SV_StartBug> uint64_t reads = 0 , reads_merged = 0 , read_sectors = 0 , read_nsecs = 0 ; <S2SV_EndBug> uint64_t writes = 0 , writes_merged = 0 , write_sectors = 0 , write_nsecs = 0 ; uint64_t i... | <S2SV_ModStart> int _pm_dm_refresh_stats_counter ( <S2SV_ModEnd> struct pm_wrap * <S2SV_ModStart> pw ) { struct dm_stats * dms ; <S2SV_ModStart> = 0 ; dms = pw -> dms ; dm_stats_foreach_region ( <S2SV_ModEnd> dms ) { |
9,255 | CWE-000 int malzmq_ctx_mal_pubsub_socket_handle ( zloop_t * loop , zmq_pollitem_t * poller , void * arg ) { <S2SV_StartBug> malzmq_ctx_t * self = ( malzmq_ctx_t * ) arg ; <S2SV_EndBug> zmsg_t * zmsg = zmsg_recv ( self -> mal_pubsub_socket ) ; if ( zmsg ) { clog_debug ( malzmq_logger , "malzmq_ctx_mal_pubsub_socket_hand... | <S2SV_ModStart> ) arg ; if ( self -> mal_pubsub_socket == NULL ) { clog_debug ( malzmq_logger , "malzmq_ctx_mal_pubsub_socket_handle:<S2SV_blank>socket<S2SV_blank>(%d)<S2SV_blank>closed\\n" , poller -> fd ) ; return - 1 ; } <S2SV_ModStart> ) ) ; return |
9,256 | CWE-000 struct hashmap * hash_init ( ) { <S2SV_StartBug> struct hashmap * map = malloc ( sizeof ( struct hashmap ) ) ; <S2SV_EndBug> return map ; } | <S2SV_ModStart> * map = calloc ( 1 , <S2SV_ModEnd> sizeof ( struct |
9,257 | CWE-000 void list ( void ) { if ( getuid ( ) == 0 ) firemon_drop_privs ( ) ; pid_read ( 0 ) ; int i ; for ( i = 0 ; i < max_pids ; i ++ ) { if ( pids [ i ] . level == 1 ) <S2SV_StartBug> pid_print_list ( i , 0 ) ; <S2SV_EndBug> } } | <S2SV_ModStart> ( i , arg_nowrap <S2SV_ModEnd> ) ; } |
9,258 | CWE-000 int ldp_vty_interface ( struct vty * vty , struct vty_arg * args [ ] ) { struct ldpd_conf * vty_conf ; int af ; struct iface * iface ; struct iface_af * ia ; struct interface * ifp ; struct kif kif ; const char * ifname ; int disable ; disable = ( vty_get_arg_value ( args , "no" ) ) ? 1 : 0 ; ifname = vty_get_a... | <S2SV_ModStart> ) ; } else ldp_clear_config ( vty_conf ) ; |
9,259 | CWE-000 int import_1d ( ndom , filename ) int ndom ; char * filename ; { FILE * fopen ( ) , * fptr ; char line [ LINELEN ] ; int n , icell , ncell ; double q1 , q2 , q3 , q4 ; Log ( "Reading<S2SV_blank>a<S2SV_blank>1d<S2SV_blank>model<S2SV_blank>%s\\n" , filename ) ; if ( ( fptr = fopen ( filename , "r" ) ) == NULL ) {... | <S2SV_ModStart> . rho_min = 0 ; |
9,260 | CWE-000 void SPVM_OP_convert_and_to_if ( SPVM_COMPILER * compiler , SPVM_OP * op_if1 ) { SPVM_OP * op_x = op_if1 -> first ; SPVM_OP * op_y = op_if1 -> last ; op_if1 -> code = SPVM_OP_C_CODE_IF ; op_x -> moresib = 0 ; op_x -> sibparent = NULL ; op_y -> moresib = 0 ; op_y -> sibparent = NULL ; op_if1 -> first = NULL ; op... | <S2SV_ModStart> op_constant_false2 ) ; <S2SV_ModEnd> } <S2SV_null> <S2SV_null> |
9,261 | CWE-000 static VkResult get_ahw_buffer_format_properties ( VkDevice device_h , const struct AHardwareBuffer * buffer , VkAndroidHardwareBufferFormatPropertiesANDROID * pProperties ) { ANV_FROM_HANDLE ( anv_device , device , device_h ) ; AHardwareBuffer_Desc desc ; AHardwareBuffer_describe ( buffer , & desc ) ; uint64_t... | <S2SV_ModStart> ; p -> formatFeatures |= VK_FORMAT_FEATURE_MIDPOINT_CHROMA_SAMPLES_BIT ; p -> |
9,262 | CWE-000 F2 ( jtless ) { A x = w ; I ar , at , k , r , * s , wr , * ws , wt ; RZ ( a && w ) ; at = AT ( a ) ; ar = AR ( a ) ; wt = AT ( w ) ; wr = AR ( w ) ; r = MAX ( 1 , ar ) ; if ( ar > 1 + wr ) RCA ( a ) ; <S2SV_StartBug> if ( wr && r != wr ) { RZ ( x = gah ( r , w ) ) ; s = AS ( x ) ; ws = AS ( w ) ; k = ar > wr ? ... | <S2SV_ModStart> ( x = virtual ( w , 0 , r <S2SV_ModEnd> ) ) ; |
9,263 | CWE-000 void print_magnetometer_batch ( magnetometer_batch batch ) { print ( "mag\\n" ) ; <S2SV_StartBug> print ( "\\tx:<S2SV_blank>%d\\t%d<S2SV_blank>mV\\n" , batch [ 0 ] , untruncate ( batch [ 0 ] , S_MAG ) ) ; <S2SV_EndBug> <S2SV_StartBug> print ( "\\ty:<S2SV_blank>%d\\t%d<S2SV_blank>mV\\n" , batch [ 1 ] , untruncat... | <S2SV_ModStart> 0 ] , ( int16_t ) <S2SV_ModStart> 1 ] , ( int16_t ) <S2SV_ModStart> 2 ] , ( int16_t ) |
9,264 | CWE-000 int solveNLS ( DATA * data , threadData_t * threadData , int sysNumber ) { int success = 0 , constraintsSatisfied = 1 ; NONLINEAR_SYSTEM_DATA * nonlinsys = & ( data -> simulationInfo -> nonlinearSystemData [ sysNumber ] ) ; int casualTearingSet = nonlinsys -> strictTearingFunctionCall != NULL ; struct dataSolve... | <S2SV_ModStart> = 2 ; } } if ( ! success ) { nonlinsys -> solverData = mixedSolverData -> hybridData ; success = solveHybrd ( data , threadData , sysNumber ) ; } if ( success ) { <S2SV_ModStart> nonlinsys -> nlsx <S2SV_ModEnd> ) ; } |
9,265 | CWE-000 char * M_GetSaveGameDir ( char * iwadname ) { char * savegamedir ; char * topdir ; int p ; p = M_CheckParmWithArgs ( "-savedir" , 1 ) ; if ( p ) { savegamedir = myargv [ p + 1 ] ; if ( ! M_FileExists ( savegamedir ) ) { M_MakeDirectory ( savegamedir ) ; } savegamedir = M_StringJoin ( savegamedir , DIR_SEPARATOR... | <S2SV_ModStart> { savegamedir = M_StringDuplicate ( configdir ) <S2SV_ModEnd> ; } # |
9,266 | CWE-000 static poly_pair div_polynomial ( const polynomial * poly1 , const polynomial * poly2 ) { assert ( poly1 != NULL && poly2 != NULL ) ; poly_pair result = { NULL , copy_polynomial ( poly1 ) } ; int power_div = degree_polynomial ( poly2 ) ; int coeff_div = coeff_for_term_polynomial ( poly2 , power_div ) ; <S2SV_St... | <S2SV_ModStart> power_div ) ; <S2SV_ModEnd> assert ( coeff_div <S2SV_ModStart> = coeff_for_term_polynomial ( result . remainder <S2SV_ModEnd> , power_rem ) |
9,267 | CWE-000 void nm_default_route_manager_ip6_update_default_route ( NMDefaultRouteManager * self , <S2SV_StartBug> gpointer source , <S2SV_EndBug> gboolean force_sync ) { <S2SV_StartBug> _ipx_update_default_route ( & vtable_ip6 , self , source , force_sync ) ; <S2SV_EndBug> } | <S2SV_ModStart> , gpointer source <S2SV_ModEnd> ) { _ipx_update_default_route <S2SV_ModStart> self , source <S2SV_ModEnd> ) ; } |
9,268 | CWE-000 static void process_rdata_name_rev ( Nmsg__Sie__DnsDedupe * dns , size_t i , ubuf * key , ubuf * val ) { size_t offset , len = dns -> rdata [ i ] . len ; uint8_t name [ WDNS_MAXLEN_NAME ] ; wdns_res res ; switch ( dns -> rrtype ) { case WDNS_TYPE_SOA : res = wdns_len_uname ( dns -> rdata [ i ] . data , dns -> r... | <S2SV_ModStart> ) return ; <S2SV_ModEnd> case WDNS_TYPE_NS : |
9,269 | CWE-000 static void forkmda ( struct mproc * p , uint64_t id , struct deliver * deliver ) { char ebuf [ 128 ] , sfn [ 32 ] ; struct dispatcher * dsp ; struct child * child ; pid_t pid ; int allout , pipefd [ 2 ] ; struct passwd * pw ; const char * pw_name ; uid_t pw_uid ; gid_t pw_gid ; const char * pw_dir ; dsp = dict... | <S2SV_ModStart> id ) ; m_add_int ( p_pony , MDA_PERMFAIL ) ; m_add_int ( p_pony , EX_NOUSER ) ; <S2SV_ModStart> id ) ; m_add_int ( p_pony , MDA_PERMFAIL ) ; m_add_int ( p_pony , EX_NOPERM ) ; <S2SV_ModStart> p_pony , id ) ; m_add_int ( p_pony , MDA_TEMPFAIL ) ; m_add_int ( p_pony , EX_OSERR <S2SV_ModStart> id ) ; m_add... |
9,270 | CWE-000 ANIMAL * new_empty_animal ( ) { ANIMAL * animal = malloc ( sizeof ( ANIMAL ) ) ; <S2SV_StartBug> return animal ; <S2SV_EndBug> } | <S2SV_ModStart> ) ) ; animal -> evolutionary_pressure = 0 ; if ( animal < 0x10000 ) { printf ( "NEW_EMPTY_ANIMAL<S2SV_blank>FAILED!!" ) ; } |
9,271 | CWE-000 int checkForDuplicate ( struct knot * knot ) { <S2SV_StartBug> for ( int i = 0 ; i < sizeof ( nextKnots ) / sizeof ( struct knot * ) ; i ++ ) <S2SV_EndBug> { if ( ! strcmp ( nextKnots [ i ] -> gameboardHash , knot -> gameboardHash ) ) { return i ; } } return - 1 ; } | <S2SV_ModStart> ; i < nextKnotsCount <S2SV_ModEnd> ; i ++ |
9,272 | CWE-000 static int pppoe_sendmsg ( struct kiocb * iocb , struct socket * sock , struct msghdr * m , size_t total_len ) { struct sk_buff * skb ; struct sock * sk = sock -> sk ; struct pppox_sock * po = pppox_sk ( sk ) ; int error ; struct pppoe_hdr hdr ; struct pppoe_hdr * ph ; struct net_device * dev ; char * start ; <... | <S2SV_ModStart> * start ; int hlen ; <S2SV_ModStart> goto end ; hlen = LL_RESERVED_SPACE ( dev ) ; <S2SV_ModStart> ( sk , hlen + sizeof ( * ph ) + total_len + dev -> needed_tailroom , <S2SV_ModEnd> 0 , GFP_KERNEL <S2SV_ModStart> ( skb , hlen <S2SV_ModEnd> ) ; skb_reset_network_header |
9,273 | CWE-000 void sensepi_cam_trigger_stop ( ) { <S2SV_StartBug> log_printf ( "SensePi_PIR_Stop\\n" ) ; <S2SV_EndBug> led_sense_cfg_input ( false ) ; pir_disable ( ) ; timer_disable ( ) ; out_gen_stop ( ( bool * ) out_gen_end_all_on ) ; return ; } | <S2SV_ModStart> { log_printf ( "SensePi<S2SV_blank>Cam<S2SV_blank>Trigger<S2SV_blank>Stop\\n" <S2SV_ModEnd> ) ; led_sense_cfg_input |
9,274 | CWE-000 bool ShowMove5 ( struct Game * game , struct TM_Action * action , enum TM_ActionState state ) { struct GamestateResources * data = action -> arguments -> value ; if ( state == TM_ACTIONSTATE_START ) { if ( ! data -> showsuper ) { data -> move = data -> move5 ; <S2SV_StartBug> al_play_sample_instance ( data -> c... | <S2SV_ModStart> -> move5 ; data -> allowed = true ; |
9,275 | CWE-000 static bool cat_strings ( struct Token * tok ) { bool ret = false ; token_rewind ( & tok ) ; while ( tok && tok -> next ) { if ( tok -> type == TOK_STRING && tok -> next -> type == TOK_STRING ) { ret = true ; <S2SV_StartBug> tok -> value = smart_cat ( tok -> value , tok -> next -> value ) ; <S2SV_EndBug> token_... | <S2SV_ModStart> ; tok -> string = smart_cat ( tok -> string , tok -> next -> string ) ; tok -> |
9,276 | CWE-000 <S2SV_StartBug> void E1_decode_index ( unsigned index , uint8_t * comb ) { <S2SV_EndBug> <S2SV_StartBug> unsigned temp = index / two_to_the [ TRACKED_EDGES ] ; <S2SV_EndBug> for ( int i = 0 ; i < NUM_EDGES ; i ++ ) comb [ i ] = TRACKED_EDGES * 2 ; unsigned long long state = 0xfedcba9876543210ULL ; for ( int i =... | <S2SV_ModStart> void E1_decode_index ( uint64_t <S2SV_ModEnd> index , uint8_t <S2SV_ModStart> comb ) { uint64_t <S2SV_ModEnd> temp = index |
9,277 | CWE-000 static struct virgl_hw_res * virgl_drm_winsys_resource_create_handle ( struct virgl_winsys * qws , struct winsys_handle * whandle ) { struct virgl_drm_winsys * qdws = virgl_drm_winsys ( qws ) ; struct drm_gem_open open_arg = { } ; struct drm_virtgpu_resource_info info_arg = { } ; struct virgl_hw_res * res ; uin... | <S2SV_ModStart> handle ) ; <S2SV_ModEnd> if ( res <S2SV_ModStart> } else { <S2SV_ModEnd> memset ( & |
9,278 | CWE-000 static void mddi_reg_write ( int ndx , uint32 off , uint32 data ) { char * base ; if ( ndx ) base = ( char * ) msm_emdh_base ; else base = ( char * ) msm_pmdh_base ; if ( base == NULL ) { <S2SV_StartBug> printk ( KERN_INFO "%s:<S2SV_blank>base<S2SV_blank>offset<S2SV_blank>is<S2SV_blank>not<S2SV_blank>set<S2SV_b... | <S2SV_ModStart> printk ( KERN_INFO "%s:<S2SV_blank>base<S2SV_blank>offset<S2SV_blank>is<S2SV_blank>not<S2SV_blank>set<S2SV_blank>properly.<S2SV_blank>\\\n<S2SV_blank><S2SV_blank><S2SV_blank>Please<S2SV_blank>check<S2SV_blank>if<S2SV_blank>MDDI<S2SV_blank>is<S2SV_blank>enabled<S2SV_blank>correctly\\n" , __func__ ) ; ret... |
9,279 | CWE-000 <S2SV_StartBug> void pan_camera ( Camera cam , int32_t dx , int32_t dy ) { <S2SV_EndBug> cam -> centre_x += dx ; cam -> centre_y += dy ; } | <S2SV_ModStart> Camera cam , float dx , float <S2SV_ModEnd> dy ) { |
9,280 | CWE-000 static void setPieceInPosition ( ChessGame * game , ChessPiecePosition pos , ChessPiece piece ) { if ( piece . type == CHESS_PIECE_KING ) { <S2SV_StartBug> if ( game -> currentPlayer == CHESS_WHITE_PLAYER ) <S2SV_EndBug> game -> whiteKingPosition = pos ; else game -> blackKingPosition = pos ; } game -> gameBoar... | <S2SV_ModStart> { if ( piece . player <S2SV_ModEnd> == CHESS_WHITE_PLAYER ) |
9,281 | CWE-000 static void sctp_push_hdr_i ( sctp_connection_t * sctp_conn , vlib_buffer_t * b , sctp_state_t next_state ) { u16 data_len = b -> current_length + b -> total_length_not_including_first_buffer ; ASSERT ( ! b -> total_length_not_including_first_buffer || ( b -> flags & VLIB_BUFFER_NEXT_PRESENT ) ) ; SCTP_ADV_DBG_... | <S2SV_ModStart> ; SCTP_DBG_OUTPUT ( "SCTP_CONN<S2SV_blank>=<S2SV_blank>%p,<S2SV_blank>IDX<S2SV_blank>=<S2SV_blank>%u,<S2SV_blank>S_INDEX<S2SV_blank>=<S2SV_blank>%u,<S2SV_blank>C_INDEX<S2SV_blank>=<S2SV_blank>%u,<S2SV_blank>sctp_conn->[...].LCL_PORT<S2SV_blank>=<S2SV_blank>%u,<S2SV_blank>sctp_conn->[...].RMT_PORT<S2SV_b... |
9,282 | CWE-000 static void _remote_harbor_update ( int harbor_id , const char * addr ) { struct remote * r = & Z -> remote [ harbor_id - 1 ] ; void * socket = zmq_socket ( Z -> zmq_context , ZMQ_PUSH ) ; int rc = zmq_connect ( socket , addr ) ; if ( rc < 0 ) { skynet_error ( NULL , "Can\'t<S2SV_blank>connect<S2SV_blank>to<S2S... | <S2SV_ModStart> socket ) { <S2SV_ModEnd> void * old_socket <S2SV_ModStart> -> socket ; <S2SV_ModEnd> if ( old_socket <S2SV_ModStart> ) ; } struct message_queue * queue = r -> queue ; if ( queue ) { struct skynet_message msg ; while ( skynet_mq_leave ( queue , & msg ) ) { skynet_mq_enter ( Z -> queue , & msg ) ; } skyne... |
9,283 | CWE-000 nsapi_error_t mbed_lwip_init ( emac_interface_t * emac ) { <S2SV_StartBug> mbed_lwip_core_init ( ) ; <S2SV_EndBug> <S2SV_StartBug> return mbed_lwip_emac_init ( emac ) ; <S2SV_EndBug> <S2SV_StartBug> } <S2SV_EndBug> | <S2SV_ModStart> emac ) { nsapi_error_t ret ; <S2SV_ModStart> ( ) ; ret = <S2SV_ModEnd> mbed_lwip_emac_init ( emac <S2SV_ModStart> emac ) ; if ( ret == NSAPI_ERROR_OK ) { netif_inited = true ; } return ret ; |
9,284 | CWE-000 void process_threads ( thread_master_t * m ) { thread_t * thread ; list_head_t * thread_list ; int thread_type ; while ( ( thread_list = thread_fetch_next_queue ( m ) ) ) { # if defined _DEBUG_ && defined _MEM_CHECK_ if ( __test_bit ( MEM_ERR_DETECT_BIT , & debug ) # ifdef _WITH_VRRP_ && __test_bit ( DONT_RELEA... | <S2SV_ModStart> -> snmp_fdset ) # endif ) <S2SV_ModEnd> ) || thread |
9,285 | CWE-000 static RDebugInfo * w32_info ( RDebug * dbg , const char * arg ) { RDebugInfo * rdi = R_NEW0 ( RDebugInfo ) ; rdi -> status = R_DBG_PROC_SLEEP ; rdi -> pid = dbg -> pid ; rdi -> tid = dbg -> tid ; rdi -> lib = ( void * ) r_debug_get_lib_item ( ) ; <S2SV_StartBug> rdi -> uid = - 1 ; <S2SV_EndBug> rdi -> gid = - ... | <S2SV_ModStart> ; rdi -> thread = ( void * ) r_debug_get_thread_item ( ) ; rdi -> |
9,286 | CWE-000 <S2SV_StartBug> FTest ( ringbuffer , reverse ) { <S2SV_EndBug> <S2SV_StartBug> rb . range . size = 2 ; <S2SV_EndBug> rb . range . offset = 1 ; <S2SV_StartBug> DPA_ringbuffer_reverse ( & rb . super ) ; <S2SV_EndBug> <S2SV_StartBug> cr_assert_eq ( rb . range . size , 2 , "Check<S2SV_blank>if<S2SV_blank>size<S2SV_... | <S2SV_ModStart> ( ringbuffer , skip_read ) { int expected [ ] = { 256 , 257 , 258 , 259 } ; memcpy ( rb . buffer , expected , 4 * sizeof ( int ) ) ; <S2SV_ModEnd> rb . range <S2SV_ModStart> . size = 4 ; size_t ret = DPA_ringbuffer_skip_read <S2SV_ModEnd> ( & rb <S2SV_ModStart> rb . super , 3 ) ; cr_assert_eq ( ret , 3 ... |
9,287 | CWE-000 int ft_printf ( const char * restrict format , ... ) { int i ; int l ; int r ; va_list va_ptr ; t_arg * args ; va_start ( va_ptr , format ) ; args = ft_create_arglist ( va_ptr , format ) ; r = 0 ; i = 0 ; l = ( int ) ft_strlen ( format ) ; while ( format [ i ] && i < l ) { while ( format [ i ] == '%' && ft_is_f... | <S2SV_ModStart> return ( ( <S2SV_ModEnd> - 1 ) <S2SV_ModStart> - 1 ) <S2SV_ModEnd> ) ; if <S2SV_ModStart> [ i ] && ! ( args && args -> flag && * ( args -> flag ) == '!' ) |
9,288 | CWE-000 int handle_environment_variable ( char * arg [ ] ) { int i = 1 ; char * tmp = arg [ i ] ; while ( tmp ) { if ( strchr ( tmp , '$' ) == tmp ) { <S2SV_StartBug> arg [ i ] = getenv ( tmp + 1 ) ; <S2SV_EndBug> } i ++ ; tmp = arg [ i ] ; } } | <S2SV_ModStart> tmp ) { tmp ++ ; if ( * tmp == '\\0' ) { continue ; } <S2SV_ModStart> getenv ( tmp <S2SV_ModEnd> ) ; } |
9,289 | CWE-000 int lean_write_inode ( struct inode * inode , struct writeback_control * wbc ) { int ret = 0 ; ino_t ino = inode -> i_ino ; struct buffer_head * bh ; struct super_block * s = inode -> i_sb ; struct lean_sb_info * sbi = s -> s_fs_info ; struct lean_inode * raw ; struct lean_ino_info * li = LEAN_I ( inode ) ; if ... | <S2SV_ModStart> -> attr &= ~ <S2SV_ModStart> |= LIA_IMMUTABLE ; <S2SV_ModEnd> li -> uid <S2SV_ModStart> li -> uid = i_uid_read ( inode ) ; <S2SV_ModEnd> li -> gid <S2SV_ModStart> li -> gid = i_gid_read ( inode <S2SV_ModStart> ; li -> time_status <S2SV_ModEnd> = lean_time ( |
9,290 | CWE-000 int lttng_kconsumer_take_snapshot ( struct lttng_consumer_stream * stream ) { int ret = 0 ; int infd = stream -> wait_fd ; ret = kernctl_snapshot ( infd ) ; <S2SV_StartBug> if ( ret != 0 ) { <S2SV_EndBug> PERROR ( "Getting<S2SV_blank>sub-buffer<S2SV_blank>snapshot." ) ; } return ret ; } | <S2SV_ModStart> ret != 0 && ret != - EAGAIN |
9,291 | CWE-000 <S2SV_StartBug> void display_throughput ( struct progress * progress , off_t total ) <S2SV_EndBug> { struct throughput * tp ; uint64_t now_ns ; unsigned int misecs , count , rate ; if ( ! progress ) return ; tp = progress -> throughput ; now_ns = getnanotime ( ) ; if ( ! tp ) { progress -> throughput = tp = cal... | <S2SV_ModStart> * progress , uint64_t <S2SV_ModEnd> total ) { |
9,292 | CWE-000 static void UnityAddMsgIfSpecified ( const char * msg ) { if ( msg ) { UnityPrint ( UnityStrSpacer ) ; # ifndef UNITY_EXCLUDE_DETAILS if ( Unity . CurrentDetail1 ) { <S2SV_StartBug> UnityPrint ( Unity . CurrentDetail1 ) ; <S2SV_EndBug> <S2SV_StartBug> UnityPrint ( UnityStrSpacer ) ; <S2SV_EndBug> if ( Unity . C... | <S2SV_ModStart> { UnityPrint ( UnityStrDetail1Name <S2SV_ModEnd> ) ; UnityPrint <S2SV_ModStart> ; UnityPrint ( Unity . CurrentDetail1 <S2SV_ModEnd> ) ; if <S2SV_ModStart> { UnityPrint ( UnityStrDetail2Name ) ; UnityPrint ( <S2SV_ModStart> CurrentDetail2 ) ; } <S2SV_ModStart> UnityStrSpacer ) ; <S2SV_ModEnd> } # endif |
9,293 | CWE-000 noinline static int receive_object ( struct receive_writer_arg * rwa , struct drr_object * drro , void * data ) { dmu_object_info_t doi ; dmu_tx_t * tx ; uint64_t object ; int err ; if ( drro -> drr_type == DMU_OT_NONE || ! DMU_OT_IS_VALID ( drro -> drr_type ) || ! DMU_OT_IS_VALID ( drro -> drr_bonustype ) || d... | <S2SV_ModStart> doi . doi_bonus_size || ( ! ( drro -> drr_dn_slots == 0 && doi . doi_dnodesize == DNODE_MIN_SIZE ) && drro -> drr_dn_slots != ( doi . doi_dnodesize >> DNODE_SHIFT ) ) <S2SV_ModStart> { err = dmu_object_reclaim_dnsize <S2SV_ModEnd> ( rwa -> <S2SV_ModStart> drro -> drr_bonuslen , drro -> drr_dn_slots << D... |
9,294 | CWE-000 nmt_field * nmt_field_read ( char * fname_mask , char * fname_maps , char * fname_temp , char * fname_beam , <S2SV_StartBug> int pol , int pure_b , int pure_b ) <S2SV_EndBug> { long nside , nside_dum ; nmt_field * fl ; flouble * beam ; flouble * mask ; flouble * * maps ; flouble * * * temp ; int ii , ntemp , it... | <S2SV_ModStart> pol , int pure_e <S2SV_ModEnd> , int pure_b |
9,295 | CWE-000 CeCommandStatus_t command_save_buffer ( CeCommand_t * command , void * user_data ) { if ( command -> arg_count != 0 ) return CE_COMMAND_PRINT_HELP ; CeApp_t * app = user_data ; <S2SV_StartBug> CommandContext_t command_context ; <S2SV_EndBug> if ( ! get_command_context ( app , & command_context ) ) return CE_COM... | <S2SV_ModStart> ; CommandContext_t command_context = { } |
9,296 | CWE-000 void eatItem ( creature * creature , item * item ) { unsigned int curNutrition ; <S2SV_StartBug> unsigned int itemNutrition ; <S2SV_EndBug> removeCreatureInventoryItem ( creature , item ) ; switch ( getItemClass ( item ) ) { case ITEM_TYPE_CORPSE : itemNutrition = getCorpseNutrition ( item ) ; break ; case ITEM... | <S2SV_ModStart> unsigned int itemNutrition <S2SV_ModEnd> ; switch ( <S2SV_ModStart> itemNutrition ) ; removeCreatureInventoryItem ( creature , item ) ; |
9,297 | CWE-000 char * _strdup ( char * str ) { unsigned int len , i ; char * strength ; for ( len = 0 ; str [ len ] != '\\0' ; len ++ ) ; if ( len == 0 ) return ( '\\0' ) ; strength = malloc ( sizeof ( char ) * len ) ; if ( strength ) { <S2SV_StartBug> for ( i = 0 ; i < len ; i ++ ) <S2SV_EndBug> strength [ i ] = str [ i ] ; ... | <S2SV_ModStart> 0 ; i <= <S2SV_ModEnd> len ; i <S2SV_ModStart> } return ( '\\0' <S2SV_ModEnd> ) ; } |
9,298 | CWE-000 u8 Thermostats_LoRa_AddSendData ( const char * data , u8 count ) { <S2SV_StartBug> u8 ret = 0 ; <S2SV_EndBug> if ( NULL == data ) return ret ; if ( count <= LORA_COMMUNICATIONBYTE_MAX ) <S2SV_StartBug> ret = Z_Stack_Push ( & g_ThermostatsSystem . LoRa_Sendbuf , data , count ) ; <S2SV_EndBug> <S2SV_StartBug> ret... | <S2SV_ModStart> ) { u8 i = 0 , <S2SV_ModStart> <= LORA_COMMUNICATIONBYTE_MAX ) { while ( ! ret && ( i < 3 ) ) { <S2SV_ModStart> count ) ; i ++ ; } } |
9,299 | CWE-000 int read_next_sample ( int ifd , int action , int curr , char * file , int * rtype , int tab , struct file_magic * file_magic , struct file_activity * file_actlst , struct tm * rectime , struct tm * loctime , int oneof ) { int rc ; char rec_hdr_tmp [ MAX_RECORD_HEADER_SIZE ] ; if ( ( rc = read_record_hdr ( ifd ... | <S2SV_ModStart> endian_mismatch , oneof , sizeof ( rec_hdr_tmp ) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.