Coverity Scan: mamedev/mame

Project Name mamedev/mame
Lines of code analyzed 8,563,630
On Coverity Scan since Jul 11, 2015
Last build analyzed about 8 hours ago
   
Language C/C++
Repository URL https://github.com/mamedev/mame
Homepage URL http://www.mamedev.org/
License GPL (GNU General Public License version )

Want to view defects or help fix defects?

 Add me to project

Analysis Metrics

Version: mame0280-190-g47286a56f9f

Sep 06, 2025
Last Analyzed
8,563,630
Lines of Code Analyzed
7,594,623
Lines of Code in Selected Components
1.90
Defect Density

Defect changes since previous build dated Jul 25, 2025

855
Newly detected
170
Eliminated

Defects by status for current build

38,271
Total defects
14,458
Outstanding
23,770
Fixed
See how defect density for 'mamedev/mame' 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 /3rdparty/.* Yes 829,749 N/A
msys64 /msys64/.* Yes 0 N/A
generated /build/generated/.* No 774,229 0.02
devices /src/devices/.* No 3,896,006 2.94
emu /src/emu/.* No 85,634 1.90
frontend /src/frontend/.* No 43,219 1.16
formats /src/lib/formats/.* No 46,963 2.51
netlist /src/lib/netlist/.* No 116,708 0.51
util /src/lib/util/.* No 29,772 4.50
mame /src/mame/.* No 2,427,439 0.65
osd /src/osd/.* No 46,227 2.29
tools /src/tools/.* No 42,268 2.79
zexall /src/zexall/.* No 0 N/A
System includes /usr/include/.* Yes 139,258 N/A
Other .* No 102,859 0.00

CWE Top 25 defects

ID CWE-Name Number of Defects
120 Buffer Copy without Checking Size of Input ('Classic Buffer Overflow') 14
131 Incorrect Calculation of Buffer Size 2
190 Integer Overflow or Wraparound 371
676 Use of Potentially Dangerous Function 7
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