View Issue Details

IDProjectCategoryView StatusLast Update
0022948CommunityOCCT:Visualizationpublic2012-01-31 09:23
ReporterPawel Assigned Tosan 
PrioritynormalSeverityminor 
Status closedResolutionfixed 
PlatformAOSL 
Product Version6.5.2 
Fixed in Version6.5.3 
Summary0022948: AIS_Shape.cxx: array index out of bounds ...
DescriptionIn 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;
Additional information
and documentation updates
This problem is very similar to: http://tracker.dev.opencascade.org/view.php?id=22947
TagsNo tags attached.
Test case numberNot needed

Relationships

related to 0022947 closedbugmaster Community XCAFPrs_AISObject.cxx: array index out of bounds ... 

Activities

abv

2012-01-31 09:22

manager   ~0019317

This problem occurs in disabled code; the dead code is cleaned now in context of another bug fix (#22900)

Issue History

Date Modified Username Field Change
2012-01-30 20:12 Pawel New Issue
2012-01-30 20:12 Pawel Assigned To => san
2012-01-31 09:22 abv Test case number => Not needed
2012-01-31 09:22 abv Note Added: 0019317
2012-01-31 09:22 abv Status new => closed
2012-01-31 09:23 abv Resolution open => fixed
2012-01-31 09:23 abv Fixed in Version => 6.5.3
2012-01-31 09:23 abv Relationship added related to 0022947