Problem 1642

Summary: MTwistEngine.cc uses out of bound array
Product: Geant4 Reporter: Vittorio Zecca <vitti570>
Component: analysisAssignee: Gabriele Cosmo <Gabriele.Cosmo>
Status: RESOLVED INVALID    
Severity: minor    
Priority: P5    
Version: 10.0   
Hardware: PC   
OS: Linux   

Description Vittorio Zecca 2014-06-21 12:40:22 CEST
MTwistEngine.cc line 216
"<< mt[i+3] << " " << mt[i+4] << std::endl;"
accesses mt[624] at last iteration when i==620
mt is dimensioned [624] however in MTwistEngine.h
so the array mt is accessed out of bounds
Comment 1 Gabriele Cosmo 2014-06-30 10:41:08 CEST
You should report this to the CLHEP support:
https://savannah.cern.ch/projects/clhep/
Note, however, that this problem is already fixed in the latest version of CLHEP, and in Geant4 in 10.1-beta.