Coverity Scan: libgit2

Project Name libgit2
Lines of code analyzed 290,080
On Coverity Scan since Jul 24, 2013
Last build analyzed about 7 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: 86c7738ca

Feb 14, 2026
Last Analyzed
290,080
Lines of Code Analyzed
196,275
Lines of Code in Selected Components
0.44
Defect Density

Defect changes since previous build dated Jan 30, 2026

0
Newly detected
0
Eliminated

Defects by status for current build

1,631
Total defects
87
Outstanding
1,103
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 95,781 0.57
Tests (ignored) .*/tests/.* Yes 93,805 N/A
Other .* No 100,496 0.32

CWE Top 25 defects

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