Problem 643 - Missing protection in G4AtomicShells::GetNumberOfShells
Summary: Missing protection in G4AtomicShells::GetNumberOfShells
Status: RESOLVED FIXED
Alias: None
Product: Geant4
Classification: Unclassified
Component: materials (show other problems)
Version: 6.2
Hardware: PC Linux
: P2 trivial
Assignee: Michel.Maire
URL:
Depends on:
Blocks:
 
Reported: 2004-07-09 05:00 CEST by jpmeyer
Modified: 2004-07-19 06:50 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 jpmeyer 2004-07-09 05:00:56 CEST
There is a trivial missing protection in G4AtomicShells::GetNumberOfShells
checking that the Z do not exceed 101 which is "nicely" hardcoded at sereal
places in G4AtomicShells.cc . If one try to enter with elements of Zeff above
101 one get a core dumped which is not so nice.
Comment 1 Michel.Maire 2004-07-19 04:59:59 CEST
ok, will do