Coverity Scan: Samba

Project Name Samba
Lines of code analyzed 3,303,986
On Coverity Scan since Feb 23, 2006
Last build analyzed 4 days ago
   
Language C/C++
Repository URL https://git.samba.org/samba.git
Homepage URL https://www.samba.org/
License N/A

Want to view defects or help fix defects?

 Add me to project

Analysis Metrics

Feb 25, 2026
Last Analyzed
3,303,986
Lines of Code Analyzed
2,817,103
Lines of Code in Selected Components
0.32
Defect Density

Defect changes since previous build dated Feb 22, 2026

0
Newly detected
1
Eliminated

Defects by status for current build

14,682
Total defects
904
Outstanding
12,846
Fixed
See how defect density for 'Samba' 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
torture /source./torture/.* Yes 271,526 N/A
Library /lib/.* No 157,257 0.81
rpc_server /source./rpc_server/.* No 77,164 0.31
smbd /source./smbd/.* No 86,671 1.22
ctdb /ctdb/.* No 91,235 0.05
thirt_party /third_party/.* Yes 215,357 N/A
Other .* No 2,405,069 0.27

CWE Top 25 defects

ID CWE-Name Number of Defects
131 Incorrect Calculation of Buffer Size 1
190 Integer Overflow or Wraparound 173
676 Use of Potentially Dangerous Function 118
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