Research Article

A Buffer Overflow Prediction Approach Based on Software Metrics and Machine Learning

Table 4

Mutual information value calculation results.

MetricsC/C++ datasetJava dataset
Mutual information valueSortMutual information valueSort

CountInput0.1892110.63753
CountLine0.558410.79961
CountLineCode0.490220.64462
CountLineCodeDecl0.432750.437311
CountLineCodeExe0.389390.57
CountLineComment0.398080.4998
CountOutput0.1625120.347713
CountPathNan130.395912
CountPathLogNan130.263817
CountSemicolon0.430770.54845
CountStmt0.446540.58794
CountStmtDecl0.431360.43910
CountStmtExe0.3434100.51236
CyclomaticNan130.312214
CyclomaticModifiedNan130.312215
CyclomaticStrictNan130.296816
EssentialNan130.009920
KnotsNan130.250818
MaxEssentialKnotsNan130.009921
MaxNestingNan130.223619
MinEssentialKnotsNan130.009922
RatioCommentToCode0.460330.49599