Problem 1519

Summary: geant4 10.00.b01 TestEm8 testPAI.mac array index beyond upper limit
Product: Geant4 Reporter: Vittorio Zecca <vitti570>
Component: processes/electromagneticAssignee: Vladimir.Grichine
Status: RESOLVED FIXED    
Severity: normal CC: Vladimir.Ivantchenko
Priority: P5    
Version: other   
Hardware: PC   
OS: Linux   

Description Vittorio Zecca 2013-08-13 10:50:19 CEST
In geant4 version 10.00.b01 running TestEm8 testPAI.mac, 
in G4PhysicsVector.icc:85 in operator() 
and executing "return dataVector[binNumber]" the index binNumber is 91
and is larger than dataVector.size() (or equal) thus accessing storage beyond
the one allocated to dataVector. 
You may double check with an assert(binNumber < dataVector.size()); 
just before the return statement.
operator() is called from G4PAIModel.cc:942 iTransfer too large?
Comment 1 Vladimir.Ivantchenko 2013-09-29 16:41:34 CEST
Hello,

Thanks for pointing out to the bug.

Bug has been fixed and included into reference version of Geant4.

VI