View Issue Details

IDProjectCategoryView StatusLast Update
0027544CommunityOCCT:Modeling Algorithmspublic2016-12-09 16:38
ReporterFredK Assigned Tobugmaster  
PrioritynormalSeverityblock 
Status closedResolutionfixed 
Product Version6.9.0 
Target Version7.1.0Fixed in Version7.1.0 
Summary0027544: problem compiling OCCT with gcc version 4.8.2 gives error 'array subscript is above array bounds'
DescriptionWhen compiling the OpenCASCADE library with gcc compiler version 4.8.2, the compiler generates the error 'array subscript is above array bounds' with the following code in IntPatch/IntPatch_InterferencePolyhedron.cxx:

line 903:
      if (nob>=0) {
    while (nob<nbNoInserted) {
      piToInsert[nob]=piToInsert[nob+1]; // here the error is generated
      nob++;
    }
    nbNoInserted--;
    nob=nbNoInserted-1;
      }
Steps To ReproduceCompile OpenCascade\src\IntPatch\IntPatch_InterferencePolyhedron.cxx with gcc 4.8.2

#Test case is not applicable.
Additional information
and documentation updates
fix:

line 903:
      if (nob>=0) {
    while (nob<nbNoInserted) {
      if (nob + 1 < 6)
        piToInsert[nob]=piToInsert[nob+1];
      nob++;
    }
    nbNoInserted--;
    nob=nbNoInserted-1;
      }
TagsNo tags attached.
Test case number

Relationships

related to 0026852 closedabv Open CASCADE Coding - compiler warnings issued by GCC 5.2.1 

Activities

kgv

2016-05-26 15:52

developer   ~0054451

The original code looks strange, or I misunderstand it.
Probably there might be a bug.

git

2016-05-26 20:09

administrator   ~0054458

Branch CR27544 has been created by aml.

SHA-1: 60ea52b523c28436faf745c5293bff3ec9f37792


Detailed log of new commits:

Author: aml
Date: Thu May 26 20:08:48 2016 +0300

    0027544: problem compiling OCCT with gcc version 4.8.2 gives error 'array subscript is above array bounds'
    
    Possible out of borders problem is fixed.

git

2016-05-31 07:50

administrator   ~0054551

Branch CR27544 has been updated forcibly by aml.

SHA-1: 53712ef65810a44695eea7910ea1e6c65ea18821

git

2016-05-31 11:09

administrator   ~0054561

Branch CR27544 has been updated forcibly by aml.

SHA-1: 67ad0ec9a24960de8f32cc59322bbd913fbc9898

aml

2016-05-31 11:10

developer   ~0054562

Dear msv,
Please check current state of the CR27544 branch.

git

2016-05-31 19:27

administrator   ~0054581

Branch CR27544 has been updated forcibly by aml.

SHA-1: bf81f9e4cbc1eed830bc8b047d42821fa1aad14a

msv

2016-05-31 19:28

developer   ~0054582

Reviewed.

bugmaster

2016-06-02 09:56

administrator   ~0054614

Fix has been successfully compile on all platforms.

git

2016-06-03 13:12

administrator   ~0054664

Branch CR27544 has been deleted by inv.

SHA-1: bf81f9e4cbc1eed830bc8b047d42821fa1aad14a

Related Changesets

occt: master 93dc7934

2016-05-26 17:08:48

aml


Committer: bugmaster Details Diff
0027544: problem compiling OCCT with gcc version 4.8.2 gives error 'array subscript is above array bounds'

Possible out of borders problem is fixed.
Affected Issues
0027544
mod - src/IntPatch/IntPatch_InterferencePolyhedron.cxx Diff File

Issue History

Date Modified Username Field Change
2016-05-26 15:25 FredK New Issue
2016-05-26 15:25 FredK Assigned To => kgv
2016-05-26 15:48 kgv Relationship added related to 0026852
2016-05-26 15:52 kgv Note Added: 0054451
2016-05-26 15:52 kgv Assigned To kgv => msv
2016-05-26 18:28 abv Category OCCT:Coding => OCCT:Modeling Algorithms
2016-05-26 19:01 msv Assigned To msv => aml
2016-05-26 19:01 msv Status new => assigned
2016-05-26 20:09 git Note Added: 0054458
2016-05-31 07:50 git Note Added: 0054551
2016-05-31 11:09 git Note Added: 0054561
2016-05-31 11:10 aml Note Added: 0054562
2016-05-31 11:10 aml Assigned To aml => msv
2016-05-31 11:10 aml Status assigned => resolved
2016-05-31 11:10 aml Steps to Reproduce Updated
2016-05-31 19:27 git Note Added: 0054581
2016-05-31 19:28 msv Note Added: 0054582
2016-05-31 19:28 msv Assigned To msv => bugmaster
2016-05-31 19:28 msv Status resolved => reviewed
2016-05-31 20:10 mkv Assigned To bugmaster => mkv
2016-06-01 12:17 mkv Assigned To mkv => bugmaster
2016-06-02 09:56 bugmaster Note Added: 0054614
2016-06-02 09:56 bugmaster Status reviewed => tested
2016-06-03 12:50 bugmaster Changeset attached => occt master 93dc7934
2016-06-03 12:50 bugmaster Status tested => verified
2016-06-03 12:50 bugmaster Resolution open => fixed
2016-06-03 13:12 git Note Added: 0054664
2016-07-25 14:42 bugmaster Target Version => 7.1.0
2016-12-09 16:31 aiv Status verified => closed
2016-12-09 16:38 aiv Fixed in Version => 7.1.0