MantisBT - Community
View Issue Details
0022948Community[OCCT] OCCT:Visualizationpublic2012-01-30 20:122012-01-31 09:23
Pawel 
san 
normalminor 
closedfixed 
ALL
[OCCT] 6.5.2 
[OCCT] 6.5.3 
Not needed
0022948: AIS_Shape.cxx: array index out of bounds ...
In the line 124 an array index exceeding array size is used:

B.Get(X[1], Y[1], Z[1], X[2], Y[2], Z[2]);

Change the line to:

B.Get(X[0], Y[0], Z[0], X[1], Y[1], Z[1]);

Besides, only 10 fields of the 'Indx' array are assigned in lines 121-123

Indx [0]=1;Indx [1]=2;Indx [2]=3;Indx [3]=4;Indx [4]=5;Indx [5]=6;Indx [6]=7;
Indx [7]=8;Indx [8]=1;Indx [9]=2;Indx [10]=6;Indx [10]=5;Indx [10]=3;
Indx [10]=4;Indx [10]=8;Indx [10]=7;
This problem is very similar to: http://tracker.dev.opencascade.org/view.php?id=22947 [^]
No tags attached.
related to 0022947closed bugmaster Community XCAFPrs_AISObject.cxx: array index out of bounds ... 
Issue History
2012-01-30 20:12PawelNew Issue
2012-01-30 20:12PawelAssigned To => san
2012-01-31 09:22abvTest case number => Not needed
2012-01-31 09:22abvNote Added: 0019317
2012-01-31 09:22abvStatusnew => closed
2012-01-31 09:23abvResolutionopen => fixed
2012-01-31 09:23abvFixed in Version => 6.5.3
2012-01-31 09:23abvRelationship addedrelated to 0022900
2012-01-31 09:23abvRelationship addedrelated to 0022947

Notes
(0019317)
abv   
2012-01-31 09:22   
This problem occurs in disabled code; the dead code is cleaned now in context of another bug fix (#22900)