Problem 685

Summary: subscript out of range
Product: Geant4 Reporter: zog
Component: geometry/solidsAssignee: Gabriele Cosmo <Gabriele.Cosmo>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P1    
Version: 6.2   
Hardware: All   
OS: Linux   

Description zog 2004-11-08 15:14:51 CET
Hi,

The icc compiler warns about a:
include/G4VSurface.icc(307): warning #175: subscript out of range
     fNeighbours[4] = axis1max;

If one looks into the source code than fNeighbors is indeed only defined from
0..3, so fNeighbours[4] is out of bounds and will probably cause a seg fault.

Ciao,
Andreas
Comment 1 Gabriele Cosmo 2004-11-13 11:33:59 CET
Thanks for the report. The problem is now fixed in the development
tag "geom-specific-V06-02-04" and the fix will be included in the
next release.
Comment 2 Gabriele Cosmo 2004-11-13 11:34:59 CET
Thanks for the report. The problem is now fixed in the development
tag "geom-specific-V06-02-04" and the fix will be included in the
next release.