Coverity Scan: lammps/lammps

Project Name lammps/lammps
Lines of code analyzed 1,382,304
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: patch_30Sep2026-820-g7dbed4944...

Oct 31, 2026
Last Analyzed
1,382,304
Lines of Code Analyzed
894,380
Lines of Code in Selected Components
0.07
Defect Density

Defect changes since previous build dated Oct 28, 2026

28
Newly detected
17
Eliminated

Defects by status for current build

2,593
Total defects
65
Outstanding
417
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 136,493 N/A
Vendored .*/src/(fmt|nlohmann)/.* Yes 21,691 N/A
System Header /usr/include/.* Yes 205,664 N/A
Downloaded Libs .*/((kim|kokkos|Eigen3|mbx|mdi|n2p2|quip|runner|plumed|scafacos|voro|phana)_build|lammps-user-pace).*/.* Yes 124,076 N/A
Basic Packages .*/src/(MOLECULE|GRAPHICS|KSPACE|RIGID|MANYBODY)/.* No 102,102 0.00
Accelerator Packages .*/src/(KOKKOS|INTEL|OPENMP|GPU|OPT)/.* No 259,455 0.20
Extra Packages .*/src/EXTRA-.*/.* No 91,455 0.01
Machine Learning .*/src/ML-.*/.* No 21,610 0.00
Mesoscale .*/src/(DPD-*|BPM|RHEO|GRANSURF|GRANULAR|PERI|MESONT|MACHDYN|LATBOLTZ|SPH|BROWNIAN) No 13,020 0.00
Advance Forcefield .*/src/(AMOEBA|BOCS|CLASS2|COLLOID|CG-*|DRUDE|CORESHELL|EFF|INTERLAYER|LEPTON|MEAM|MGPT|MOFF|REAXFF|QEQ|QTB|SMTBQ|YAFF)/.* No 81,582 0.05
External Libs .*/src/(MBX|COLVARS|KIM|PLUMED|ADIOS|SCAFACOS|COMPRESS|MOLFILE|MDI|NETCDF|H5MD|VTK)/.* No 6,277 0.00
Other Packages .*/src/[A-Z][A-Z_-]+/.*\.(cpp|h) No 152,473 0.05
Core Sources .*/src/.*\.(cpp|h) No 160,441 0.01
Other .* No 20,766 0.00

CWE Top 25 defects

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