Coverity Scan: libgphoto2

Project Name libgphoto2
Lines of code analyzed 127,489
On Coverity Scan since May 04, 2007
Last build analyzed 21 days ago
   
Language C/C++
Repository URL git://github.com/gphoto/libgphoto2.git
Homepage URL http://gphoto.org/
License LGPL (GNU Library or "Lesser" General Public License version )

Want to view defects or help fix defects?

 Add me to project

Analysis Metrics

Version: 2.5.31.1

Jun 08, 2025
Last Analyzed
127,489
Lines of Code Analyzed
4.63
Defect Density

Defect changes since previous build dated May 25, 2024

317
Newly detected
38
Eliminated

Defects by status for current build

1,223
Total defects
590
Outstanding
592
Fixed
See how defect density for 'libgphoto2' 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
camlibs .*camlibs.* No 117,067 4.53
libgphoto2_port .*libgphoto2_port.* No 5,510 0.91
examples .*examples.* No 1,885 12.20
tests .*tests.* No 336 2.98
Other .* No 38,259 0.81

CWE Top 25 defects

ID CWE-Name Number of Defects
120 Buffer Copy without Checking Size of Input ('Classic Buffer Overflow') 29
190 Integer Overflow or Wraparound 23
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