Problem 1642 - MTwistEngine.cc uses out of bound array
Summary: MTwistEngine.cc uses out of bound array
Status: RESOLVED INVALID
Alias: None
Product: Geant4
Classification: Unclassified
Component: analysis (show other problems)
Version: 10.0
Hardware: PC Linux
: P5 minor
Assignee: Gabriele Cosmo
URL:
Depends on:
Blocks:
 
Reported: 2014-06-21 12:40 CEST by Vittorio Zecca
Modified: 2014-06-30 10:41 CEST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this problem.
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.