Coverity Scan: LAMMPS

Project Name LAMMPS
Lines of code analyzed 1,206,801
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: 90291a9b3abe3c8cc84c5252604fd9...

Jul 26, 2024
Last Analyzed
1,206,801
Lines of Code Analyzed
1,196,493
Lines of Code in Selected Components
1.96
Defect Density

Defect changes since previous build dated Jul 24, 2024

0
Newly detected
0
Eliminated

Defects by status for current build

4,263
Total defects
2,347
Outstanding
1,849
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,595 3.06
COLLOID .*/COLLOID/.* No 4,463 5.15
COMPRESS .*/COMPRESS/.* No 1,753 5.70
DIPOLE .*/DIPOLE/.* No 2,095 2.39
GPU .*/GPU/.* No 1,827 0.00
KIM .*/KIM/.* No 120 0.00
KOKKOS .*/KOKKOS/.* No 149,090 1.15
KSPACE .*/KSPACE/.* No 31,084 1.22
LATTE .*/LATTE/.* No 0 N/A
MANYBODY .*/MANYBODY/.* No 26,582 1.62
MC .*/MC/.* No 8,854 1.69
MOLECULE .*/MOLECULE/.* No 10,536 2.66
OPT .*/OPT/.* No 3,170 0.32
QEQ .*/QEQ/.* No 1,722 1.16
PYTHON .*/PYTHON/.* No 74 0.00
REPLICA .*/REPLICA/.* No 9,050 3.65
RIGID .*/RIGID/.* No 10,742 3.54
SHOCK .*/SHOCK/.* No 1,768 2.83
SNAP .*/SNAP/.* No 0 N/A
SPIN .*/SPIN/.* No 7,300 3.01
USER-MISC .*/USER-MISC/.* No 0 N/A
Kokkos .*/lib/kokkos/.*\.(cpp|hpp|h) Yes 0 N/A
Libraries .*/lib/.* No 188,385 2.84
fmt .*/fmt/.* Yes 10,308 N/A
OPENMP .*/OPENMP/.* No 54,939 1.04
INTEL .*/INTEL/.* No 34,458 1.89
COLVARS .*/COLVARS/.* No 1,070 1.87
ADIOS .*/ADIOS/.* No 81 0.00
CG-DNA .*/CG-DNA/.* No 9,084 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,230 4.59
DIFFRACTION .*/DIFFRACTION/.* No 1,735 2.31
DPD-BASIC .*/DPD-BASIC/.* No 1,593 2.51
DPD-MESO .*/DPD-MESO/.* No 2,347 6.82
DPD-REACT .*/DPD-REACT/.* No 7,710 3.89
DPD-SMOOTH .*/DPD-SMOOTH/.* No 1,343 1.49
DRUDE .*/DRUDE/.* No 4,284 1.87
EFF .*/EFF/.* No 3,006 2.99
FEP .*/FEP/.* No 6,813 3.82
GRANULAR .*/GRANULAR/.* No 6,509 5.38
H5MD .*/H5MD/.* No 502 0.00
LATBOLTZ .*/LATBOLTZ/.* No 3,882 0.52
REAXFF .*/REAXFF/.* No 8,170 1.10
Other .* No 566,541 1.78

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