Coverity Scan: OpenBSD kernel

Project Name OpenBSD kernel
Lines of code analyzed 5,729,647
On Coverity Scan since Aug 19, 2016
Last build analyzed 2 months ago
   
Language C/C++
Repository URL [email protected]:/cvs
Homepage URL https://www.openbsd.org
License ISC (ISC License )

Want to view defects or help fix defects?

 Add me to project

Analysis Metrics

Version: 20240407_424974cc

Apr 08, 2024
Last Analyzed
5,729,647
Lines of Code Analyzed
0.22
Defect Density

Defect changes since previous build dated Feb 03, 2024

23
Newly detected
20
Eliminated

Defects by status for current build

2,842
Total defects
1,271
Outstanding
1,301
Fixed
See how defect density for 'OpenBSD kernel' compares with defect density for other open source projects.  Learn more

Note: Defect density is measured by the number of defects per 1,000 lines of code.


Analysis Metrics per Components

Component Name Pattern Ignore Line of Code Defect density
arch .*/sys/arch/.* No 27,698 0.51
acpi .*/sys/dev/acpi/.* No 24,927 0.92
ata .*/sys/dev/ata/.* No 3,914 1.02
crypto .*/sys/crypto/.* No 9,498 0.11
ddb .*/sys/ddb/.* No 4,580 1.09
kern .*/sys/kern/.* No 58,599 0.63
i2c .*/sys/dev/i2c/.* No 7,364 0.81
ic .*/sys/dev/ic/.* No 209,741 0.47
isa .*/sys/dev/isa/.* No 6,122 0.65
net .*/sys/net/.* No 84,233 0.61
net80211 .*/sys/net80211/.* No 17,590 0.74
netinet .*/sys/netinet/.* No 28,006 0.79
netinet6 .*/sys/netinet6/.* No 13,074 0.54
pcmcia .*/sys/dev/pcmcia/.* No 8,600 0.70
pv .*/sys/dev/pv/.* No 16,031 0.62
scsi .*/sys/scsi/.* No 13,436 0.30
sdmmc .*/sys/dev/sdmmc/.* No 6,318 0.32
softraid .*softraid.* No 7,696 2.21
usb .*/sys/dev/usb/.* No 132,579 0.20
uvm .*/sys/uvm/.* No 16,188 0.06
wscons .*/sys/dev/wscons/.* No 13,712 0.07
x86emu .*/sys/dev/x86emu/.* No 6,402 0.62
drm .*/sys/dev/pci/drm/.* No 4,484,601 0.15
pci .*/sys/dev/pci/.* No 321,292 0.36
dev .*/sys/dev/.* No 153,139 0.14
fs .*/*fs/.* No 41,802 2.22
Other .* No 45,160 0.04

CWE Top 25 defects

ID CWE-Name Number of Defects
120 Buffer Copy without Checking Size of Input ('Classic Buffer Overflow') 2
190 Integer Overflow or Wraparound 33
676 Use of Potentially Dangerous Function 1
Loading...

Loading...

Loading...

Loading...

Loading...

About Coverity Scan Static Analysis

Find and fix defects in your C/C++, Java, JavaScript or C# open source project for free.

Coverity Scan tests every line of code and potential execution path. The root cause of each defect is clearly explained, making it easy to fix bugs.

Would you like to view the project defects, or help improve its quality by fixing defects?

 Add me to project