Deep Learning based Vulnerability Detection: Are We There Yet?
Paper • 2009.07235 • Published
idx int64 | target int64 | func string |
|---|---|---|
0 | 0 | static int get_zbin_mode_boost ( const MB_MODE_INFO * mbmi , int enabled ) {
if ( enabled ) {
if ( is_inter_block ( mbmi ) ) {
if ( mbmi -> mode == ZEROMV ) {
return mbmi -> ref_frame [ 0 ] != LAST_FRAME ? GF_ZEROMV_ZBIN_BOOST : LF_ZEROMV_ZBIN_BOOST ;
}
else {
return mbmi -> sb_type < BLOCK_8X8 ? SPLIT_MV_ZBIN_B... |
1 | 0 | static int SpoolssGetPrinter_r ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep _U_ ) {
dcerpc_call_value * dcv = ( dcerpc_call_value * ) di -> call_data ;
BUFFER buffer ;
gint16 level = GPOINTER_TO_INT ( dcv -> se_data ) ;
proto_item * item = NULL ;
proto_... |
2 | 0 | PKCS8_PRIV_KEY_INFO * d2i_PKCS8_PRIV_KEY_INFO_fp ( FILE * fp , PKCS8_PRIV_KEY_INFO * * p8inf ) {
return ASN1_d2i_fp_of ( PKCS8_PRIV_KEY_INFO , PKCS8_PRIV_KEY_INFO_new , d2i_PKCS8_PRIV_KEY_INFO , fp , p8inf ) ;
} |
3 | 0 | int i2d_PKCS7_bio ( BIO * bp , PKCS7 * p7 ) {
return ASN1_item_i2d_bio ( ASN1_ITEM_rptr ( PKCS7 ) , bp , p7 ) ;
} |
4 | 0 | static PyObject * string_mod ( PyObject * v , PyObject * w ) {
if ( ! PyString_Check ( v ) ) {
Py_INCREF ( Py_NotImplemented ) ;
return Py_NotImplemented ;
}
return PyString_Format ( v , w ) ;
} |
5 | 0 | int64_t cpu_get_icount ( void ) {
int64_t icount ;
CPUState * cpu = current_cpu ;
icount = qemu_icount ;
if ( cpu ) {
CPUArchState * env = cpu -> env_ptr ;
if ( ! can_do_io ( env ) ) {
fprintf ( stderr , "Bad clock read\n" ) ;
}
icount -= ( env -> icount_decr . u16 . low + env -> icount_extra ) ;
}
return qe... |
6 | 0 | static void dtap_mm_imsi_det_ind ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len ) {
guint32 curr_offset ;
guint32 consumed ;
guint curr_len ;
curr_offset = offset ;
curr_len = len ;
is_uplink = IS_UPLINK_TRUE ;
ELEM_MAND_V ( GSM_A_PDU_TYPE_COMMON , DE_MS_CM_1 , NULL )... |
7 | 0 | static int dissect_h245_EscrowData ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {
offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_EscrowData , EscrowData_sequence ) ;
return offset ;
} |
8 | 0 | void var_set_int ( const char * name , int value ) {
char buf [ 21 ] ;
my_snprintf ( buf , sizeof ( buf ) , "%d" , value ) ;
var_set_string ( name , buf ) ;
} |
9 | 0 | int16_t vp9_dc_quant ( int qindex , int delta , vpx_bit_depth_t bit_depth ) {
# if CONFIG_VP9_HIGHBITDEPTH switch ( bit_depth ) {
case VPX_BITS_8 : return dc_qlookup [ clamp ( qindex + delta , 0 , MAXQ ) ] ;
case VPX_BITS_10 : return dc_qlookup_10 [ clamp ( qindex + delta , 0 , MAXQ ) ] ;
case VPX_BITS_12 : return ... |
10 | 0 | GType hb_gobject_ ## name ## _get_type ( void ) \ {
static gsize type_id = 0 ;
if ( g_once_init_enter ( & type_id ) ) {
GType id = g_boxed_type_register_static ( g_intern_static_string ( "hb_" # name "_t" ) , ( GBoxedCopyFunc ) copy_func , ( GBoxedFreeFunc ) free_func ) ;
g_once_init_leave ( & type_id , id ) ;
}
... |
11 | 0 | static int dissect_h245_T_rfc2733Mode ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {
offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_T_rfc2733Mode , T_rfc2733Mode_sequence ) ;
return offset ;
} |
12 | 0 | unsigned int vp9_sub_pixel_avg_variance ## W ## x ## H ## _c ( const uint8_t * src , int src_stride , int xoffset , int yoffset , const uint8_t * dst , int dst_stride , unsigned int * sse , const uint8_t * second_pred ) {
uint16_t fdata3 [ ( H + 1 ) * W ] ;
uint8_t temp2 [ H * W ] ;
DECLARE_ALIGNED_ARRAY ( 16 , uint... |
13 | 0 | static int com_prompt ( String * buffer __attribute__ ( ( unused ) ) , char * line ) {
char * ptr = strchr ( line , ' ' ) ;
prompt_counter = 0 ;
my_free ( current_prompt ) ;
current_prompt = my_strdup ( ptr ? ptr + 1 : default_prompt , MYF ( MY_WME ) ) ;
if ( ! ptr ) tee_fprintf ( stdout , "Returning to default PR... |
14 | 0 | void vp9_encode_sby_pass1 ( MACROBLOCK * x , BLOCK_SIZE bsize ) {
vp9_subtract_plane ( x , bsize , 0 ) ;
vp9_foreach_transformed_block_in_plane ( & x -> e_mbd , bsize , 0 , encode_block_pass1 , x ) ;
} |
15 | 0 | static int dissect_h245_H263Resolution ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {
offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_H263Resolution , H263Resolution_choice , NULL ) ;
return offset ;
} |
16 | 0 | TEST_F ( NativeBackendLibsecretTest , PSLMatchingPositive ) {
PasswordForm result ;
const GURL kMobileURL ( "http://m.facebook.com/" ) ;
EXPECT_TRUE ( CheckCredentialAvailability ( form_facebook_ , kMobileURL , PasswordForm : : SCHEME_HTML , & result ) ) ;
EXPECT_EQ ( form_facebook_ . origin , result . origin ) ;
... |
17 | 0 | static int dumpglyphs ( SplineFont * sf , struct glyphinfo * gi ) {
int i ;
int fixed = gi -> fixed_width ;
int answer , answered = - 1 ;
ff_progress_change_stages ( 2 + gi -> strikecnt ) ;
QuickBlues ( sf , gi -> layer , & gi -> bd ) ;
ff_progress_next_stage ( ) ;
if ( ! gi -> onlybitmaps ) {
if ( sf -> layers... |
18 | 1 | static int set_and_cost_bmi_mvs ( VP9_COMP * cpi , MACROBLOCKD * xd , int i , PREDICTION_MODE mode , int_mv this_mv [ 2 ] , int_mv frame_mv [ MB_MODE_COUNT ] [ MAX_REF_FRAMES ] , int_mv seg_mvs [ MAX_REF_FRAMES ] , int_mv * best_ref_mv [ 2 ] , const int * mvjcost , int * mvcost [ 2 ] ) {
MODE_INFO * const mic = xd -> ... |
19 | 0 | static php_uint32 phar_tar_checksum ( char * buf , int len ) {
php_uint32 sum = 0 ;
char * end = buf + len ;
while ( buf != end ) {
sum += ( unsigned char ) * buf ;
++ buf ;
}
return sum ;
} |
20 | 0 | static void imdct_output ( TwinContext * tctx , enum FrameType ftype , int wtype , float * * out ) {
const ModeTab * mtab = tctx -> mtab ;
int size1 , size2 ;
float * prev_buf = tctx -> prev_frame + tctx -> last_block_pos [ 0 ] ;
int i ;
for ( i = 0 ;
i < tctx -> avctx -> channels ;
i ++ ) {
imdct_and_window ( ... |
21 | 0 | static int dissect_h245_KeyProtectionMethod ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {
offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_KeyProtectionMethod , KeyProtectionMethod_sequence ) ;
return offset ;
} |
22 | 0 | static int dissect_h245_SEQUENCE_OF_MultiplePayloadStreamElementMode ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {
offset = dissect_per_sequence_of ( tvb , offset , actx , tree , hf_index , ett_h245_SEQUENCE_OF_MultiplePayloadStreamElementMode , SEQUENCE_O... |
23 | 0 | static int dissect_h225_ConferenceList ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {
offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_ConferenceList , ConferenceList_sequence ) ;
return offset ;
} |
24 | 0 | static void yy_symbol_value_print ( FILE * yyoutput , int yytype , YYSTYPE const * const yyvaluep ) # else static void yy_symbol_value_print ( yyoutput , yytype , yyvaluep ) FILE * yyoutput ;
int yytype ;
YYSTYPE const * const yyvaluep ;
# endif {
if ( ! yyvaluep ) return ;
# ifdef YYPRINT if ( yytype < YYNTOKENS ... |
25 | 0 | void var_query_set ( VAR * var , const char * query , const char * * query_end ) {
char * end = ( char * ) ( ( query_end && * query_end ) ? * query_end : query + strlen ( query ) ) ;
MYSQL_RES * res ;
MYSQL_ROW row ;
MYSQL * mysql = cur_con -> mysql ;
DYNAMIC_STRING ds_query ;
DBUG_ENTER ( "var_query_set" ) ;
LI... |
26 | 0 | static void * spl_ptr_llist_shift ( spl_ptr_llist * llist TSRMLS_DC ) {
void * data ;
spl_ptr_llist_element * head = llist -> head ;
if ( head == NULL ) {
return NULL ;
}
if ( head -> next ) {
head -> next -> prev = NULL ;
}
else {
llist -> tail = NULL ;
}
llist -> head = head -> next ;
llist -> count -- ;... |
27 | 0 | static void check_initial_width ( VP9_COMP * cpi , int subsampling_x , int subsampling_y ) {
VP9_COMMON * const cm = & cpi -> common ;
if ( ! cpi -> initial_width ) {
cm -> subsampling_x = subsampling_x ;
cm -> subsampling_y = subsampling_y ;
alloc_raw_frame_buffers ( cpi ) ;
alloc_ref_frame_buffers ( cpi ) ;
al... |
28 | 0 | int http_hdr_print ( HdrHeap * heap , HTTPHdrImpl * hdr , char * buf , int bufsize , int * bufindex , int * dumpoffset ) {
# define TRY ( x ) if ( ! x ) return 0 int tmplen , hdrstat ;
char tmpbuf [ 32 ] ;
char * p ;
ink_assert ( ( hdr -> m_polarity == HTTP_TYPE_REQUEST ) || ( hdr -> m_polarity == HTTP_TYPE_RESPONS... |
29 | 0 | static int read_pgpcrt_cn ( server_rec * s , apr_pool_t * p , gnutls_openpgp_crt_t cert , char * * cert_cn ) {
int rv = 0 ;
size_t data_len ;
_gnutls_log ( debug_log_fp , "%s: %d\n" , __func__ , __LINE__ ) ;
* cert_cn = NULL ;
data_len = 0 ;
rv = gnutls_openpgp_crt_get_name ( cert , 0 , NULL , & data_len ) ;
if ... |
30 | 0 | static int dissect_btgatt_microbit_client_requirements ( tvbuff_t * tvb , packet_info * pinfo _U_ , proto_tree * tree , void * data ) {
btatt_data_t * att_data = ( btatt_data_t * ) data ;
if ( bluetooth_gatt_has_no_parameter ( att_data -> opcode ) ) return - 1 ;
proto_tree_add_item ( tree , hf_gatt_microbit_client_r... |
31 | 0 | IN_PROC_BROWSER_TEST_F ( PageLoadMetricsBrowserTest , SameUrlNavigation ) {
ASSERT_TRUE ( embedded_test_server ( ) -> Start ( ) ) ;
auto waiter = CreatePageLoadMetricsWaiter ( ) ;
waiter -> AddPageExpectation ( TimingField : : FIRST_LAYOUT ) ;
waiter -> AddPageExpectation ( TimingField : : LOAD_EVENT ) ;
ui_test_u... |
32 | 0 | TEST ( URLFixerTest , FixupFile ) {
base : : ScopedTempDir temp_dir_ ;
ASSERT_TRUE ( temp_dir_ . CreateUniqueTempDir ( ) ) ;
base : : FilePath original ;
ASSERT_TRUE ( MakeTempFile ( temp_dir_ . GetPath ( ) , base : : FilePath ( FILE_PATH_LITERAL ( "url fixer upper existing file.txt" ) ) , & original ) ) ;
GURL go... |
33 | 0 | void vp9_init_second_pass ( VP9_COMP * cpi ) {
SVC * const svc = & cpi -> svc ;
const VP9EncoderConfig * const oxcf = & cpi -> oxcf ;
const int is_two_pass_svc = ( svc -> number_spatial_layers > 1 ) || ( svc -> number_temporal_layers > 1 ) ;
TWO_PASS * const twopass = is_two_pass_svc ? & svc -> layer_context [ svc ... |
34 | 0 | static int parse_CBaseStorageVariant ( tvbuff_t * tvb , packet_info * pinfo , int offset , proto_tree * parent_tree , proto_tree * pad_tree _U_ , struct CBaseStorageVariant * value , const char * text ) {
int i , len ;
proto_item * ti , * ti_type , * ti_val ;
proto_tree * tree , * tr ;
enum vType highType ;
ZERO_S... |
35 | 0 | int dissect_ber_constrained_integer64 ( gboolean implicit_tag , asn1_ctx_t * actx , proto_tree * tree , tvbuff_t * tvb , int offset , gint64 min_len , gint64 max_len , gint hf_id , gint64 * value ) {
gint64 val ;
offset = dissect_ber_integer64 ( implicit_tag , actx , tree , tvb , offset , hf_id , & val ) ;
if ( valu... |
36 | 1 | static void hscroll ( AVCodecContext * avctx ) {
AnsiContext * s = avctx -> priv_data ;
int i ;
if ( s -> y < avctx -> height - s -> font_height ) {
s -> y += s -> font_height ;
return ;
}
i = 0 ;
for ( ;
i < avctx -> height - s -> font_height ;
i ++ ) memcpy ( s -> frame . data [ 0 ] + i * s -> frame . lines... |
37 | 0 | int EvaluatePS ( char * str , real * stack , int size ) {
EntityChar ec ;
RetStack rs ;
memset ( & ec , '\0' , sizeof ( ec ) ) ;
memset ( & rs , '\0' , sizeof ( rs ) ) ;
rs . max = size ;
rs . stack = stack ;
InterpretPS ( NULL , str , & ec , & rs ) ;
return ( rs . cnt ) ;
} |
38 | 0 | static void * pool_calloc ( size_t count , size_t size ) {
size_t len = count * size ;
void * r = pool_alloc ( len ) ;
memset ( r , 0 , len ) ;
return r ;
} |
39 | 0 | void luaD_reallocCI ( lua_State * L , int newsize ) {
CallInfo * oldci = L -> base_ci ;
luaM_reallocvector ( L , L -> base_ci , L -> size_ci , newsize , CallInfo ) ;
L -> size_ci = newsize ;
L -> ci = ( L -> ci - oldci ) + L -> base_ci ;
L -> end_ci = L -> base_ci + L -> size_ci - 1 ;
} |
40 | 0 | static void intra_pred_plane ( uint8_t * d , uint8_t * top , uint8_t * left , int stride ) {
int x , y , ia ;
int ih = 0 ;
int iv = 0 ;
uint8_t * cm = ff_cropTbl + MAX_NEG_CROP ;
for ( x = 0 ;
x < 4 ;
x ++ ) {
ih += ( x + 1 ) * ( top [ 5 + x ] - top [ 3 - x ] ) ;
iv += ( x + 1 ) * ( left [ 5 + x ] - left [ 3 -... |
41 | 0 | static void set_v8086_seg ( struct kvm_segment * lhs , const SegmentCache * rhs ) {
lhs -> selector = rhs -> selector ;
lhs -> base = rhs -> base ;
lhs -> limit = rhs -> limit ;
lhs -> type = 3 ;
lhs -> present = 1 ;
lhs -> dpl = 3 ;
lhs -> db = 0 ;
lhs -> s = 1 ;
lhs -> l = 0 ;
lhs -> g = 0 ;
lhs -> avl = 0... |
42 | 0 | afs_int32 SPR_ListEntries ( struct rx_call * call , afs_int32 flag , afs_int32 startindex , prentries * bulkentries , afs_int32 * nextstartindex ) {
afs_int32 code ;
afs_int32 cid = ANONYMOUSID ;
code = listEntries ( call , flag , startindex , bulkentries , nextstartindex , & cid ) ;
osi_auditU ( call , PTS_LstEnts... |
43 | 0 | static vpx_codec_err_t ctrl_use_reference ( vpx_codec_alg_priv_t * ctx , va_list args ) {
const int reference_flag = va_arg ( args , int ) ;
vp9_use_as_reference ( ctx -> cpi , reference_flag ) ;
return VPX_CODEC_OK ;
} |
44 | 0 | extern int name ( int ) __THROW __exctype ( isalnum ) ;
__exctype ( isalpha ) ;
__exctype ( iscntrl ) ;
__exctype ( isdigit ) ;
__exctype ( islower ) ;
__exctype ( isgraph ) ;
__exctype ( isprint ) ;
__exctype ( ispunct ) ;
__exctype ( isspace ) ;
__exctype ( isupper ) ;
__exctype ( isxdigit ) ;
extern int t... |
45 | 0 | void TSStatIntIncrement ( int id , TSMgmtInt amount ) {
sdk_assert ( sdk_sanity_check_stat_id ( id ) == TS_SUCCESS ) ;
RecIncrRawStat ( api_rsb , nullptr , id , amount ) ;
} |
46 | 0 | static int proc_unlinkurb ( struct usb_dev_state * ps , void __user * arg ) {
struct urb * urb ;
struct async * as ;
unsigned long flags ;
spin_lock_irqsave ( & ps -> lock , flags ) ;
as = async_getpending ( ps , arg ) ;
if ( ! as ) {
spin_unlock_irqrestore ( & ps -> lock , flags ) ;
return - EINVAL ;
}
urb =... |
47 | 0 | static int decode_argb_frame ( CLLCContext * ctx , GetBitContext * gb , AVFrame * pic ) {
AVCodecContext * avctx = ctx -> avctx ;
uint8_t * dst ;
int pred [ 4 ] ;
int ret ;
int i , j ;
VLC vlc [ 4 ] ;
pred [ 0 ] = 0 ;
pred [ 1 ] = 0x80 ;
pred [ 2 ] = 0x80 ;
pred [ 3 ] = 0x80 ;
dst = pic -> data [ 0 ] ;
skip... |
48 | 0 | static void pk_transaction_class_init ( PkTransactionClass * klass ) {
GObjectClass * object_class = G_OBJECT_CLASS ( klass ) ;
object_class -> dispose = pk_transaction_dispose ;
object_class -> finalize = pk_transaction_finalize ;
signals [ SIGNAL_FINISHED ] = g_signal_new ( "finished" , G_TYPE_FROM_CLASS ( object... |
49 | 0 | static void sig_nick_changed ( CHANNEL_REC * channel , NICK_REC * nick , const char * oldnick ) {
MODULE_CHANNEL_REC * mchannel ;
LAST_MSG_REC * rec ;
mchannel = MODULE_DATA ( channel ) ;
rec = last_msg_find ( mchannel -> lastmsgs , oldnick ) ;
if ( rec != NULL ) {
g_free ( rec -> nick ) ;
rec -> nick = g_strdup... |
50 | 0 | TSAction TSCacheWrite ( TSCont contp , TSCacheKey key ) {
sdk_assert ( sdk_sanity_check_iocore_structure ( contp ) == TS_SUCCESS ) ;
sdk_assert ( sdk_sanity_check_cachekey ( key ) == TS_SUCCESS ) ;
FORCE_PLUGIN_SCOPED_MUTEX ( contp ) ;
CacheInfo * info = ( CacheInfo * ) key ;
Continuation * i = ( INKContInternal *... |
51 | 0 | static char * _zip_readfpstr ( FILE * fp , unsigned int len , int nulp , struct zip_error * error ) {
char * r , * o ;
r = ( char * ) malloc ( nulp ? len + 1 : len ) ;
if ( ! r ) {
_zip_error_set ( error , ZIP_ER_MEMORY , 0 ) ;
return NULL ;
}
if ( fread ( r , 1 , len , fp ) < len ) {
free ( r ) ;
_zip_error_s... |
52 | 0 | TSReturnCode TSTextLogObjectCreate ( const char * filename , int mode , TSTextLogObject * new_object ) {
sdk_assert ( sdk_sanity_check_null_ptr ( ( void * ) filename ) == TS_SUCCESS ) ;
sdk_assert ( sdk_sanity_check_null_ptr ( ( void * ) new_object ) == TS_SUCCESS ) ;
if ( mode < 0 || mode >= TS_LOG_MODE_INVALID_FLA... |
53 | 0 | static uint8_t vble_read_reverse_unary ( GetBitContext * gb ) {
uint8_t val = show_bits ( gb , 8 ) ;
if ( val ) {
val = 7 - av_log2_16bit ( ff_reverse [ val ] ) ;
skip_bits ( gb , val + 1 ) ;
return val ;
}
else {
skip_bits ( gb , 8 ) ;
if ( get_bits1 ( gb ) ) return 8 ;
}
return UINT8_MAX ;
} |
54 | 0 | static int dissect_h245_T_subPictureRemovalParameters ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {
offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_T_subPictureRemovalParameters , T_subPictureRemovalParameters_sequence ) ;
... |
55 | 0 | static int dtls1_add_cert_to_buf ( BUF_MEM * buf , unsigned long * l , X509 * x ) {
int n ;
unsigned char * p ;
n = i2d_X509 ( x , NULL ) ;
if ( ! BUF_MEM_grow_clean ( buf , ( int ) ( n + ( * l ) + 3 ) ) ) {
SSLerr ( SSL_F_DTLS1_ADD_CERT_TO_BUF , ERR_R_BUF_LIB ) ;
return 0 ;
}
p = ( unsigned char * ) & ( buf ->... |
56 | 0 | void dwarf_elf_object_access_finish ( Dwarf_Obj_Access_Interface * obj ) {
if ( ! obj ) {
return ;
}
if ( obj -> object ) {
dwarf_elf_object_access_internals_t * internals = ( dwarf_elf_object_access_internals_t * ) obj -> object ;
if ( internals -> libdwarf_owns_elf ) {
elf_end ( internals -> elf ) ;
}
}
fre... |
57 | 1 | IN_PROC_BROWSER_TEST_F ( AppApiTest , DISABLED_AppProcess ) {
LOG ( INFO ) << "Start of test." ;
extensions : : ProcessMap * process_map = extensions : : ProcessMap : : Get ( browser ( ) -> profile ( ) ) ;
ASSERT_TRUE ( LoadExtension ( test_data_dir_ . AppendASCII ( "app_process" ) ) ) ;
LOG ( INFO ) << "Loaded ext... |
58 | 0 | static int get_hf_elem_id ( int pdu_type ) {
int hf_elem_id = 0 ;
switch ( pdu_type ) {
case GSM_A_PDU_TYPE_BSSMAP : hf_elem_id = hf_gsm_a_bssmap_elem_id ;
break ;
case GSM_A_PDU_TYPE_DTAP : hf_elem_id = hf_gsm_a_dtap_elem_id ;
break ;
case GSM_A_PDU_TYPE_RP : hf_elem_id = hf_gsm_a_rp_elem_id ;
break ;
case GS... |
59 | 0 | static int dissect_rsl_ie_rach_load ( tvbuff_t * tvb , packet_info * pinfo _U_ , proto_tree * tree , int offset , gboolean is_mandatory ) {
proto_item * ti ;
proto_tree * ie_tree ;
guint length ;
guint8 ie_id ;
int ie_offset ;
if ( is_mandatory == FALSE ) {
ie_id = tvb_get_guint8 ( tvb , offset ) ;
if ( ie_id !... |
60 | 0 | void simplestring_addn ( simplestring * target , const char * source , size_t add_len ) {
size_t newsize = target -> size , incr = 0 ;
if ( target && source ) {
if ( ! target -> str ) {
simplestring_init_str ( target ) ;
}
if ( ( SIZE_MAX - add_len ) < target -> len || ( SIZE_MAX - add_len - 1 ) < target -> len )... |
61 | 1 | static int parse_CDbProp ( tvbuff_t * tvb , int offset , proto_tree * parent_tree , proto_tree * pad_tree , struct GuidPropertySet * propset , const char * fmt , ... ) {
static const value_string EMPTY_VS [ ] = {
{
0 , NULL }
}
;
const value_string * vs = ( propset && propset -> id_map ) ? propset -> id_map : EMP... |
62 | 1 | static int mjpegb_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {
const uint8_t * buf = avpkt -> data ;
int buf_size = avpkt -> size ;
MJpegDecodeContext * s = avctx -> priv_data ;
const uint8_t * buf_end , * buf_ptr ;
AVFrame * picture = data ;
GetBitContext hgb ;
ui... |
63 | 0 | void gx_device_copy_color_params ( gx_device * dev , const gx_device * target ) {
COPY_PARAM ( color_info ) ;
COPY_PARAM ( cached_colors ) ;
gx_device_copy_color_procs ( dev , target ) ;
} |
64 | 0 | static void signal_window_item_changed ( WINDOW_REC * window , WI_ITEM_REC * item ) {
g_return_if_fail ( window != NULL ) ;
if ( item == NULL ) return ;
if ( g_slist_length ( window -> items ) > 1 && IS_CHANNEL ( item ) ) {
printformat ( item -> server , item -> visible_name , MSGLEVEL_CLIENTNOTICE , TXT_TALKING_IN... |
65 | 0 | static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) {
OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ;
}
static ossl_inline int sk_ ## t1 ## _is_sorted ( const STACK_OF ( t1 ) * sk ) {
return OPENSSL_sk_is_sorted ( ( const OPENSSL_STACK * ) sk ) ;
}
static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _d... |
66 | 1 | int ieee80211_radiotap_iterator_next ( struct ieee80211_radiotap_iterator * iterator ) {
while ( 1 ) {
int hit = 0 ;
int pad , align , size , subns ;
guint32 oui ;
if ( ( iterator -> _arg_index % 32 ) == IEEE80211_RADIOTAP_EXT && ! ( iterator -> _bitmap_shifter & 1 ) ) return - ENOENT ;
if ( ! ( iterator -> _bitm... |
67 | 0 | int i2d_RSAPublicKey_bio ( BIO * bp , RSA * rsa ) {
return ASN1_item_i2d_bio ( ASN1_ITEM_rptr ( RSAPublicKey ) , bp , rsa ) ;
} |
68 | 0 | static int copy_parameter_set ( void * * to , void * * from , int count , int size ) {
int i ;
for ( i = 0 ;
i < count ;
i ++ ) {
if ( to [ i ] && ! from [ i ] ) {
av_freep ( & to [ i ] ) ;
}
else if ( from [ i ] && ! to [ i ] ) {
to [ i ] = av_malloc ( size ) ;
if ( ! to [ i ] ) return AVERROR ( ENOMEM ) ;
... |
69 | 0 | static void U_CALLCONV _UTF16ToUnicodeWithOffsets ( UConverterToUnicodeArgs * pArgs , UErrorCode * pErrorCode ) {
UConverter * cnv = pArgs -> converter ;
const char * source = pArgs -> source ;
const char * sourceLimit = pArgs -> sourceLimit ;
int32_t * offsets = pArgs -> offsets ;
int32_t state , offsetDelta ;
u... |
70 | 0 | void dtap_mm_mm_info ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len ) {
guint32 curr_offset ;
guint32 consumed ;
guint curr_len ;
curr_offset = offset ;
curr_len = len ;
is_uplink = IS_UPLINK_TRUE ;
ELEM_OPT_TLV ( 0x43 , GSM_A_PDU_TYPE_DTAP , DE_NETWORK_NAME , " - Ful... |
71 | 0 | static void dissect_rsvp_exclude_route ( proto_item * ti , packet_info * pinfo , proto_tree * rsvp_object_tree , tvbuff_t * tvb , int offset , int obj_length , int rsvp_class , int ctype ) {
proto_item_set_text ( ti , "EXCLUDE ROUTE: " ) ;
switch ( ctype ) {
case 1 : proto_tree_add_uint ( rsvp_object_tree , hf_rsvp_... |
72 | 0 | static inline gsize label_concat ( char * label_str , gsize pos , const char * str ) {
if ( pos < ITEM_LABEL_LENGTH ) pos += g_strlcpy ( label_str + pos , str , ITEM_LABEL_LENGTH - pos ) ;
return pos ;
} |
73 | 0 | IN_PROC_BROWSER_TEST_F ( PageLoadMetricsBrowserTest , FirstMeaningfulPaintNotRecorded ) {
ASSERT_TRUE ( embedded_test_server ( ) -> Start ( ) ) ;
auto waiter = CreatePageLoadMetricsWaiter ( ) ;
waiter -> AddPageExpectation ( TimingField : : FIRST_CONTENTFUL_PAINT ) ;
ui_test_utils : : NavigateToURL ( browser ( ) , ... |
74 | 0 | static void cluster_one_database ( const char * dbname , bool verbose , const char * table , const char * host , const char * port , const char * username , enum trivalue prompt_password , const char * progname , bool echo ) {
PQExpBufferData sql ;
PGconn * conn ;
initPQExpBuffer ( & sql ) ;
appendPQExpBufferStr ( ... |
75 | 0 | static void build_mc_border ( const uint8_t * src , int src_stride , uint8_t * dst , int dst_stride , int x , int y , int b_w , int b_h , int w , int h ) {
const uint8_t * ref_row = src - x - y * src_stride ;
if ( y >= h ) ref_row += ( h - 1 ) * src_stride ;
else if ( y > 0 ) ref_row += y * src_stride ;
do {
int r... |
76 | 1 | void nautilus_file_mark_desktop_file_trusted ( GFile * file , GtkWindow * parent_window , gboolean interactive , NautilusOpCallback done_callback , gpointer done_callback_data ) {
GTask * task ;
MarkTrustedJob * job ;
job = op_job_new ( MarkTrustedJob , parent_window ) ;
job -> file = g_object_ref ( file ) ;
job -... |
77 | 0 | static TranslationBlock * tb_alloc ( target_ulong pc ) {
TranslationBlock * tb ;
if ( tcg_ctx . tb_ctx . nb_tbs >= tcg_ctx . code_gen_max_blocks || ( tcg_ctx . code_gen_ptr - tcg_ctx . code_gen_buffer ) >= tcg_ctx . code_gen_buffer_max_size ) {
return NULL ;
}
tb = & tcg_ctx . tb_ctx . tbs [ tcg_ctx . tb_ctx . nb_... |
78 | 0 | static void erase_screen ( AVCodecContext * avctx ) {
AnsiContext * s = avctx -> priv_data ;
int i ;
for ( i = 0 ;
i < avctx -> height ;
i ++ ) memset ( s -> frame -> data [ 0 ] + i * s -> frame -> linesize [ 0 ] , DEFAULT_BG_COLOR , avctx -> width ) ;
s -> x = s -> y = 0 ;
} |
79 | 0 | void proto_reg_handoff_pvfs ( void ) {
dissector_handle_t pvfs_handle ;
pvfs_handle = create_dissector_handle ( dissect_pvfs_heur , proto_pvfs ) ;
dissector_add_uint_with_preference ( "tcp.port" , TCP_PORT_PVFS2 , pvfs_handle ) ;
heur_dissector_add ( "tcp" , dissect_pvfs_heur , "PVFS over TCP" , "pvfs_tcp" , proto_... |
80 | 0 | void gic_update ( GICState * s ) {
int best_irq ;
int best_prio ;
int irq ;
int level ;
int cpu ;
int cm ;
for ( cpu = 0 ;
cpu < NUM_CPU ( s ) ;
cpu ++ ) {
cm = 1 << cpu ;
s -> current_pending [ cpu ] = 1023 ;
if ( ! s -> enabled || ! s -> cpu_enabled [ cpu ] ) {
qemu_irq_lower ( s -> parent_irq [ cpu ] ) ... |
81 | 0 | static void dissect_rsvp_fast_reroute ( proto_tree * ti , packet_info * pinfo , proto_tree * rsvp_object_tree , tvbuff_t * tvb , int offset , int obj_length , int rsvp_class _U_ , int type ) {
guint8 flags ;
proto_tree * ti2 , * rsvp_frr_flags_tree ;
proto_item_set_text ( ti , "FAST_REROUTE: " ) ;
switch ( type ) {... |
82 | 1 | mbfl_string * mbfl_ja_jp_hantozen ( mbfl_string * string , mbfl_string * result , int mode ) {
int n ;
unsigned char * p ;
const mbfl_encoding * encoding ;
mbfl_memory_device device ;
mbfl_convert_filter * decoder = NULL ;
mbfl_convert_filter * encoder = NULL ;
mbfl_convert_filter * tl_filter = NULL ;
mbfl_conv... |
83 | 0 | static void dca_downmix ( float * * samples , int srcfmt , int downmix_coef [ DCA_PRIM_CHANNELS_MAX ] [ 2 ] , const int8_t * channel_mapping ) {
int c , l , r , sl , sr , s ;
int i ;
float t , u , v ;
float coef [ DCA_PRIM_CHANNELS_MAX ] [ 2 ] ;
for ( i = 0 ;
i < DCA_PRIM_CHANNELS_MAX ;
i ++ ) {
coef [ i ] [ 0 ... |
84 | 0 | static void gpgsm_io_event ( void * engine , gpgme_event_io_t type , void * type_data ) {
engine_gpgsm_t gpgsm = engine ;
TRACE3 ( DEBUG_ENGINE , "gpgme:gpgsm_io_event" , gpgsm , "event %p, type %d, type_data %p" , gpgsm -> io_cbs . event , type , type_data ) ;
if ( gpgsm -> io_cbs . event ) ( * gpgsm -> io_cbs . ev... |
85 | 0 | static char * fieldflags2str ( uint f ) {
static char buf [ 1024 ] ;
char * s = buf ;
* s = 0 ;
# define ff2s_check_flag ( X ) if ( f & X ## _FLAG ) {
s = strmov ( s , # X " " ) ;
f &= ~ X ## _FLAG ;
}
ff2s_check_flag ( NOT_NULL ) ;
ff2s_check_flag ( PRI_KEY ) ;
ff2s_check_flag ( UNIQUE_KEY ) ;
ff2s_check_fl... |
86 | 1 | static int parse_vType ( tvbuff_t * tvb , int offset , guint16 * vtype ) {
guint16 tmp_vtype = tvb_get_letohs ( tvb , offset ) ;
guint16 modifier = tmp_vtype & 0xFF00 ;
switch ( tmp_vtype & 0xFF ) {
case VT_EMPTY : * vtype = VT_EMPTY ;
break ;
case VT_NULL : * vtype = VT_NULL ;
break ;
case VT_I2 : * vtype = VT... |
87 | 0 | static int mime_header_encoder_block_collector ( int c , void * data ) {
int n ;
struct mime_header_encoder_data * pe = ( struct mime_header_encoder_data * ) data ;
switch ( pe -> status2 ) {
case 1 : pe -> prevpos = pe -> outdev . pos ;
mbfl_convert_filter_copy ( pe -> conv2_filter , pe -> conv2_filter_backup ) ;... |
88 | 0 | static gpgme_error_t gpgsm_set_fd ( engine_gpgsm_t gpgsm , fd_type_t fd_type , const char * opt ) {
gpg_error_t err = 0 ;
char line [ COMMANDLINELEN ] ;
char * which ;
iocb_data_t * iocb_data ;
# if USE_DESCRIPTOR_PASSING int dir ;
# endif switch ( fd_type ) {
case INPUT_FD : which = "INPUT" ;
iocb_data = & gpg... |
89 | 0 | static Asn1Generic * Asn1GenericNew ( void ) {
Asn1Generic * obj ;
obj = SCMalloc ( sizeof ( Asn1Generic ) ) ;
if ( obj != NULL ) memset ( obj , 0 , sizeof ( Asn1Generic ) ) ;
return obj ;
} |
90 | 1 | static void fadst4 ( const int16_t * input , int16_t * output ) {
int x0 , x1 , x2 , x3 ;
int s0 , s1 , s2 , s3 , s4 , s5 , s6 , s7 ;
x0 = input [ 0 ] ;
x1 = input [ 1 ] ;
x2 = input [ 2 ] ;
x3 = input [ 3 ] ;
if ( ! ( x0 | x1 | x2 | x3 ) ) {
output [ 0 ] = output [ 1 ] = output [ 2 ] = output [ 3 ] = 0 ;
retu... |
91 | 0 | static int decode_frame ( AVCodecContext * avctx , void * data , int * got_frame_ptr , AVPacket * avpkt ) {
BinkAudioContext * s = avctx -> priv_data ;
AVFrame * frame = data ;
GetBitContext * gb = & s -> gb ;
int ret , consumed = 0 ;
if ( ! get_bits_left ( gb ) ) {
uint8_t * buf ;
if ( ! avpkt -> size ) {
* go... |
92 | 0 | static uint32_t gic_dist_readw ( void * opaque , hwaddr offset ) {
uint32_t val ;
val = gic_dist_readb ( opaque , offset ) ;
val |= gic_dist_readb ( opaque , offset + 1 ) << 8 ;
return val ;
} |
93 | 0 | int vp9_hex_search ( const MACROBLOCK * x , MV * ref_mv , int search_param , int sad_per_bit , int do_init_search , int * sad_list , const vp9_variance_fn_ptr_t * vfp , int use_mvcost , const MV * center_mv , MV * best_mv ) {
static const int hex_num_candidates [ MAX_PATTERN_SCALES ] = {
8 , 6 , 6 , 6 , 6 , 6 , 6 , 6... |
94 | 0 | static void pk_transaction_repo_remove ( PkTransaction * transaction , GVariant * params , GDBusMethodInvocation * context ) {
PkBitfield transaction_flags ;
const gchar * repo_id ;
gboolean autoremove ;
gboolean ret ;
g_autoptr ( GError ) error = NULL ;
g_autofree gchar * tmp = NULL ;
g_return_if_fail ( PK_IS_T... |
95 | 1 | static int parse_CRestriction ( tvbuff_t * tvb , int offset , proto_tree * parent_tree , proto_tree * pad_tree , struct CRestriction * v , const char * fmt , ... ) {
proto_tree * tree ;
proto_item * item ;
const char * str , * txt ;
va_list ap ;
va_start ( ap , fmt ) ;
txt = wmem_strdup_vprintf ( wmem_packet_scop... |
96 | 1 | static void UConverter_toUnicode_ISCII_OFFSETS_LOGIC ( UConverterToUnicodeArgs * args , UErrorCode * err ) {
const char * source = ( char * ) args -> source ;
UChar * target = args -> target ;
const char * sourceLimit = args -> sourceLimit ;
const UChar * targetLimit = args -> targetLimit ;
uint32_t targetUniChar ... |
97 | 0 | static guint composite_offset ( const tvbuff_t * tvb _U_ , const guint counter ) {
return counter ;
} |
98 | 1 | static void dissect_q931_IEs ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * root_tree , proto_tree * q931_tree , gboolean is_over_ip , int offset , int initial_codeset ) {
proto_item * ti ;
proto_tree * ie_tree = NULL ;
guint8 info_element ;
guint8 dummy ;
guint16 info_element_len ;
int codeset , locked_co... |
99 | 0 | static void bamboo_machine_init ( void ) {
qemu_register_machine ( & bamboo_machine ) ;
} |
@article{DBLP:journals/corr/abs-2009-07235,
author = {Saikat Chakraborty and
Rahul Krishna and
Yangruibo Ding and
Baishakhi Ray},
title = {Deep Learning based Vulnerability Detection: Are We There Yet?},
journal = {CoRR},
volume = {abs/2009.07235},
year = {2020},
url = {https://arxiv.org/abs/2009.07235},
eprinttype = {arXiv},
eprint = {2009.07235},
timestamp = {Fri, 18 Sep 2020 15:17:35 +0200},
biburl = {https://dblp.org/rec/journals/corr/abs-2009-07235.bib},
bibsource = {dblp computer science bibliography, https://dblp.org}
}