Coverity Scan: Zephyr

Project Name Zephyr
Lines of code analyzed 4,821,716
On Coverity Scan since Jul 01, 2016
Last build analyzed 19 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.3.0-7582-g9a8265c28fa

Mar 10, 2026
Last Analyzed
4,821,716
Lines of Code Analyzed
2,211,572
Lines of Code in Selected Components
0.07
Defect Density

Defect changes since previous build dated Dec 05, 2025

59
Newly detected
104
Eliminated

Defects by status for current build

18,989
Total defects
152
Outstanding
18,295
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,226,850 N/A
HALs .*/ext/hal/.* Yes 0 N/A
Bluetooth .*/bluetooth/.* No 295,718 0.10
Kernel .*/kernel/.* No 48,859 0.00
External Components /ext/.* Yes 0 N/A
Drivers .*/drivers/.* No 1,100,366 0.04
Architectures /arch/.* No 8,238 0.00
libc .*/lib/libc/.* No 3,281 1.22
Testsuite .*/subsys/testsuite/.* No 11,527 0.09
USB .*/subsys/usb/.* No 62,055 0.03
Shell .*/subsys/shell/.* No 30,886 0.00
Power Management .*/subsys/pm/.* No 26,242 0.00
File System .*/subsys/fs/.* No 50,593 0.04
Logging .*/subsys/logging/.* No 44,671 0.02
Modbus .*/modbus/.* No 8,441 0.12
MCUBoot .*/bootloader/mcuboot/.* Yes 828 N/A
Tests .*/tests/.* Yes 1,203,342 N/A
Samples .*/samples/.* Yes 179,124 N/A
Other .* No 394,658 0.07

CWE Top 25 defects

ID CWE-Name Number of Defects
131 Incorrect Calculation of Buffer Size 3
190 Integer Overflow or Wraparound 67
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