Coverity Scan: lammps/lammps

Project Name lammps/lammps
Lines of code analyzed 1,338,094
On Coverity Scan since Jul 01, 2026
Last build analyzed 3 days 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: 6f61d572297eb4c50977930dccbd28...

Jul 22, 2026
Last Analyzed
1,338,094
Lines of Code Analyzed
860,043
Lines of Code in Selected Components
0.05
Defect Density

Defect changes since previous build dated Jul 19, 2026

0
Newly detected
0
Eliminated

Defects by status for current build

2,501
Total defects
39
Outstanding
381
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,270 0.00
Accelerator Packages .*/src/(KOKKOS|INTEL|OPENMP|GPU|OPT)/.* No 220,573 0.14
Extra Packages .*/src/EXTRA-.*/.* No 88,873 0.02
Machine Learning .*/src/ML-.*/.* No 21,781 0.00
Mesoscale .*/src/(DPD-*|BPM|RHEO|GRANSURF|GRANULAR|PERI|MESONT|MACHDYN|LATBOLTZ|SPH|BROWNIAN) No 13,112 0.00
Advance Forcefield .*/src/(AMOEBA|BOCS|CLASS2|COLLOID|CG-*|DRUDE|CORESHELL|EFF|INTERLAYER|LEPTON|MEAM|MGPT|MOFF|REAXFF|QEQ|QTB|SMTBQ|YAFF)/.* No 82,141 0.02
External Libs .*/src/(MBX|COLVARS|KIM|PLUMED|ADIOS|SCAFACOS|COMPRESS|MOLFILE|MDI|NETCDF|H5MD|VTK)/.* No 6,289 0.00
Other Packages .*/src/[A-Z][A-Z_-]+/.*\.(cpp|h) No 147,377 0.01
Core Sources .*/src/.*\.(cpp|h) No 159,106 0.02
Other .* No 19,437 0.00

CWE Top 25 defects

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