Coverity Scan: libgit2

Project Name libgit2
Lines of code analyzed 299,605
On Coverity Scan since Jul 24, 2013
Last build analyzed about 5 hours ago
   
Language C/C++
Repository URL https://github.com/libgit2/libgit2
Homepage URL http://libgit2.github.com/
License GPL (GNU General Public License version )

Want to view defects or help fix defects?

 Add me to project

Analysis Metrics

Version: d23f18fd8

May 14, 2026
Last Analyzed
299,605
Lines of Code Analyzed
205,232
Lines of Code in Selected Components
0.57
Defect Density

Defect changes since previous build dated May 13, 2026

0
Newly detected
0
Eliminated

Defects by status for current build

1,666
Total defects
118
Outstanding
1,119
Fixed
See how defect density for 'libgit2' 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
Source .*/src/.* No 97,540 0.58
Tests (ignored) .*/tests/.* Yes 94,373 N/A
Other .* No 107,692 0.57

CWE Top 25 defects

ID CWE-Name Number of Defects
190 Integer Overflow or Wraparound 22
676 Use of Potentially Dangerous Function 6
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