Coverity Scan: lammps/lammps

Project Name lammps/lammps
Lines of code analyzed 1,338,234
On Coverity Scan since Jul 01, 2026
Last build analyzed 1 day ago
   
Language C/C++
Repository URL https://github.com/lammps/lammps.git
Homepage URL https://www.lammps.org/
License GPL (GNU General Public License version )

Want to view defects or help fix defects?

 Add me to project

Analysis Metrics

Version: dbf1152c6984edd080ad649374f71e...

Jul 04, 2026
Last Analyzed
1,338,234
Lines of Code Analyzed
860,183
Lines of Code in Selected Components
0.55
Defect Density

Defect changes since previous build dated Jul 04, 2026

0
Newly detected
0
Eliminated

Defects by status for current build

2,358
Total defects
472
Outstanding
169
Fixed
See how defect density for 'lammps/lammps' 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
Library sources .*/lib/(colvars|gpu|h5md|kokkos|lepton|linalg|molfile|qmmm)/.* Yes 143,511 N/A
Vendored .*/src/(fmt|nlohmann)/.* Yes 21,685 N/A
System Header /usr/include/.* Yes 257,313 N/A
Downloaded Libs .*/((kim|kokkos|Eigen3|mbx|mdi|n2p2|quip|runner|plumed|scafacos|voro|phana)_build|lammps-user-pace).*/.* Yes 55,542 N/A
Basic Packages .*/src/(MOLECULE|GRAPHICS|KSPACE|RIGID|MANYBODY)/.* No 101,219 0.38
Accelerator Packages .*/src/(KOKKOS|INTEL|OPENMP|GPU|OPT)/.* No 220,796 0.54
Extra Packages .*/src/EXTRA-.*/.* No 88,839 0.26
Machine Learning .*/src/ML-.*/.* No 27,283 0.88
Mesoscale .*/src/(DPD-*|BPM|RHEO|GRANSURF|GRANULAR|PERI|MESONT|MACHDYN|LATBOLTZ|SPH|BROWNIAN) No 13,053 0.31
Advance Forcefield .*/src/(AMOEBA|BOCS|CLASS2|COLLOID|CG-*|DRUDE|CORESHELL|EFF|INTERLAYER|LEPTON|MEAM|MGPT|MOFF|REAXFF|QEQ|QTB|SMTBQ|YAFF)/.* No 82,111 0.72
External Libs .*/src/(MBX|COLVARS|KIM|PLUMED|ADIOS|SCAFACOS|COMPRESS|MOLFILE|MDI|NETCDF|H5MD|VTK)/.* No 6,287 0.48
Other Packages .*/src/[A-Z][A-Z_-]+/.*\.(cpp|h) No 147,683 0.51
Core Sources .*/src/.*\.(cpp|h) No 158,962 0.68
Other .* No 19,432 0.93

CWE Top 25 defects

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