Research Article

[Retracted] SFN: A Novel Scalable Feature Network for Vulnerability Representation of Open-Source Codes

Table 1

Function granularity metrics.

Function granularity metricsFormulas

Program length (N)
Number of delivered bugs (B)
Difficulty (D)
Effort (E)
Time required to program (T)
Volume (V)
Calculated program length ()
McCabe number (CC)
Maintainability (M)
The number of committed bugs per line (O)

Note: are the total number of all operators and the total number of operands in this sample, are the number of different operators and the number of different operands, respectively. In this subsection, we give a code slice as a sample of functional granularity code metric extraction. This code slice is from constructed from CWE-119-CVE-2010-1444-vlc_media_player_1.1.0_CVE-2010-1444_zipstream.c as shown in Figure 1.