MantisBT
Mantis Bug Tracker Workflow

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0022948Community[OCCT] OCCT:Visualizationpublic2012-01-30 20:122012-01-31 09:23
ReporterPawel 
Assigned Tosan 
PrioritynormalSeverityminor 
StatusclosedResolutionfixed 
PlatformAOSLOS VersionL
Product Version[OCCT] 6.5.2 
Target VersionFixed in Version[OCCT] 6.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
Attached Files

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

-  Notes
(0019317)
abv (manager)
2012-01-31 09:22

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 0022900
2012-01-31 09:23 abv Relationship added related to 0022947


Copyright © 2000 - 2018 MantisBT Team
Powered by Mantis Bugtracker