Coverity Scan: Zephyr

Project Name Zephyr
Lines of code analyzed 5,061,971
On Coverity Scan since Jul 01, 2016
Last build analyzed 18 days ago
   
Language C/C++
Repository URL https://github.com/zephyrproject-rtos/zephyr
Homepage URL https://www.zephyrproject.org/
License Apache (Apache License )

Want to view defects or help fix defects?

 Add me to project

Analysis Metrics

Version: v4.2.0-2622-g294f7e52c5f

Oct 11, 2025
Last Analyzed
5,061,971
Lines of Code Analyzed
2,354,150
Lines of Code in Selected Components
0.26
Defect Density

Defect changes since previous build dated Sep 03, 2025

70
Newly detected
7
Eliminated

Defects by status for current build

19,036
Total defects
609
Outstanding
18,220
Fixed
See how defect density for 'Zephyr' 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
Modules .*/modules/.* Yes 1,460,763 N/A
HALs .*/ext/hal/.* Yes 0 N/A
Bluetooth .*/bluetooth/.* No 270,279 0.07
Kernel .*/kernel/.* No 49,377 0.02
External Components /ext/.* Yes 0 N/A
Drivers .*/drivers/.* No 1,365,669 0.04
Architectures /arch/.* No 8,028 0.00
libc .*/lib/libc/.* No 3,138 1.27
Testsuite .*/subsys/testsuite/.* No 11,507 0.00
USB .*/subsys/usb/.* No 50,887 0.00
Shell .*/subsys/shell/.* No 29,339 0.00
Power Management .*/subsys/pm/.* No 25,067 0.04
File System .*/subsys/fs/.* No 51,294 0.04
Logging .*/subsys/logging/.* No 43,564 0.00
Modbus .*/modbus/.* No 8,235 0.12
MCUBoot .*/bootloader/mcuboot/.* Yes 881 N/A
Tests .*/tests/.* Yes 1,092,354 N/A
Samples .*/samples/.* Yes 153,823 N/A
Other .* No 387,124 0.03

CWE Top 25 defects

ID CWE-Name Number of Defects
120 Buffer Copy without Checking Size of Input ('Classic Buffer Overflow') 3
131 Incorrect Calculation of Buffer Size 2
190 Integer Overflow or Wraparound 91
676 Use of Potentially Dangerous Function 3
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