Problem 1519 - geant4 10.00.b01 TestEm8 testPAI.mac array index beyond upper limit
Summary: geant4 10.00.b01 TestEm8 testPAI.mac array index beyond upper limit
Status: RESOLVED FIXED
Alias: None
Product: Geant4
Classification: Unclassified
Component: processes/electromagnetic (show other problems)
Version: other
Hardware: PC Linux
: P5 normal
Assignee: Vladimir.Grichine
URL:
Depends on:
Blocks:
 
Reported: 2013-08-13 10:50 CEST by Vittorio Zecca
Modified: 2013-09-29 18:44 CEST (History)
1 user (show)

See Also:


Attachments

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