Coverity Scan: OpenCV

Project Name OpenCV
Lines of code analyzed 1,508,915
On Coverity Scan since Dec 11, 2012
Last build analyzed 6 months ago
   
Language C/C++
Repository URL https://github.com/opencv/opencv
Homepage URL opencv.org
License BSD3Clause (BSD 3-Clause "New" or "Revised" License )

Want to view defects or help fix defects?

 Add me to project

Analysis Metrics

Version: master

May 30, 2024
Last Analyzed
1,508,915
Lines of Code Analyzed
943,262
Lines of Code in Selected Components
2.48
Defect Density

Defect changes since previous build dated Jan 31, 2024

20
Newly detected
5
Eliminated

Defects by status for current build

6,416
Total defects
2,336
Outstanding
3,885
Fixed
See how defect density for 'OpenCV' 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
3rdparty .*/opencv/3rdparty/.* Yes 159,397 N/A
3rdparty-build /3rdparty/.* Yes 26,140 N/A
3rdparty-bin .*/build/3rdparty/.* Yes 0 N/A
system /usr/.* Yes 339,608 N/A
Generated code (protobuf) .*\.pb\.cc Yes 40,508 N/A
modules-src .*/opencv/modules/.*/src/.* No 473,894 1.13
modules-include .*/opencv/modules/.*/include/opencv2/.* No 77,972 1.45
gen-python .*/modules/python.*/pyopencv.* No 76,341 0.18
gen-jni .*/modules/java.*/gen/cpp/.* No 48,333 11.19
gen-java .*/java/jar/opencv/.* No 19,313 5.07
test-java .*/java_test/.* No 10,281 3.21
test-accuracy .*/test/.* No 130,170 4.15
test-performance .*/perf/.* No 19,900 5.28
apps .*/opencv/apps/.* No 2,279 8.78
Other .* No 92,066 0.11

CWE Top 25 defects

ID CWE-Name Number of Defects
190 Integer Overflow or Wraparound 9
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