Coverity Scan: LAMMPS

Project Name LAMMPS
Lines of code analyzed 1,228,281
On Coverity Scan since Dec 06, 2018
Last build analyzed 1 day ago
   
Language C/C++
Repository URL https://github.com/lammps/lammps.git
Homepage URL https://lammps.sandia.gov
License GPL (GNU General Public License version )

Want to view defects or help fix defects?

 Add me to project

Analysis Metrics

Version: 43fbdc2d9385715ac01f9218defc5b...

Nov 22, 2024
Last Analyzed
1,228,281
Lines of Code Analyzed
1,217,625
Lines of Code in Selected Components
1.91
Defect Density

Defect changes since previous build dated Nov 18, 2024

0
Newly detected
0
Eliminated

Defects by status for current build

4,397
Total defects
2,324
Outstanding
1,984
Fixed
See how defect density for '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
ASPHERE .*/ASPHERE/.* No 3,783 4.76
BODY .*/BODY/.* No 6,119 2.12
CLASS2 .*/CLASS2/.* No 3,608 3.05
COLLOID .*/COLLOID/.* No 4,460 3.59
COMPRESS .*/COMPRESS/.* No 1,753 0.00
DIPOLE .*/DIPOLE/.* No 2,103 2.38
GPU .*/GPU/.* No 1,825 0.00
KIM .*/KIM/.* No 120 0.00
KOKKOS .*/KOKKOS/.* No 157,545 1.30
KSPACE .*/KSPACE/.* No 31,116 1.19
LATTE .*/LATTE/.* No 0 N/A
MANYBODY .*/MANYBODY/.* No 26,592 1.50
MC .*/MC/.* No 8,874 1.69
MOLECULE .*/MOLECULE/.* No 10,582 2.65
OPT .*/OPT/.* No 3,170 0.00
QEQ .*/QEQ/.* No 2,106 0.95
PYTHON .*/PYTHON/.* No 74 0.00
REPLICA .*/REPLICA/.* No 9,055 3.64
RIGID .*/RIGID/.* No 10,760 3.53
SHOCK .*/SHOCK/.* No 1,768 2.83
SNAP .*/SNAP/.* No 0 N/A
SPIN .*/SPIN/.* No 7,308 3.01
USER-MISC .*/USER-MISC/.* No 0 N/A
Kokkos .*/lib/kokkos/.*\.(cpp|hpp|h) Yes 0 N/A
Libraries .*/lib/.* No 190,116 2.72
fmt .*/fmt/.* Yes 10,656 N/A
OPENMP .*/OPENMP/.* No 54,943 0.91
INTEL .*/INTEL/.* No 34,452 1.89
COLVARS .*/COLVARS/.* No 1,118 0.89
ADIOS .*/ADIOS/.* No 81 0.00
CG-DNA .*/CG-DNA/.* No 9,085 1.54
CG-SDK .*/CG-SDK/.* No 0 N/A
BOCS .*/BOCS/.* No 2,211 0.45
AWPMD .*/AWPMD/.* No 772 5.18
CORESHELL .*/CORESHELL/.* No 2,106 0.95
DIELECTRIC .*/DIELECTRIC/.* No 5,185 4.63
DIFFRACTION .*/DIFFRACTION/.* No 1,736 2.30
DPD-BASIC .*/DPD-BASIC/.* No 1,594 2.51
DPD-MESO .*/DPD-MESO/.* No 2,356 6.79
DPD-REACT .*/DPD-REACT/.* No 7,710 3.89
DPD-SMOOTH .*/DPD-SMOOTH/.* No 1,347 1.48
DRUDE .*/DRUDE/.* No 4,284 1.87
EFF .*/EFF/.* No 3,006 2.99
FEP .*/FEP/.* No 6,837 3.80
GRANULAR .*/GRANULAR/.* No 6,511 5.07
H5MD .*/H5MD/.* No 502 0.00
LATBOLTZ .*/LATBOLTZ/.* No 3,882 0.52
REAXFF .*/REAXFF/.* No 9,124 1.10
Other .* No 575,945 1.74

CWE Top 25 defects

ID CWE-Name Number of Defects
120 Buffer Copy without Checking Size of Input ('Classic Buffer Overflow') 4
190 Integer Overflow or Wraparound 27
676 Use of Potentially Dangerous Function 5
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