MantisBT
Mantis Bug Tracker Workflow

View Issue Details Jump to Notes ] Related Changesets ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0029859Open CASCADE[OCCT] OCCT:Codingpublic2018-06-12 22:142018-06-14 18:20
Reporterabv 
Assigned Tobugmaster 
PrioritynormalSeverityminor 
StatusverifiedResolutionfixed 
PlatformOSOS Version
Product Version[OCCT] 7.3.0 
Target Version[OCCT] 7.4.0*Fixed in Version 
Summary0029859: Coding - GCC compiler warning -Warray-bounds in IntPatch_InterferencePolyhedron.cxx
DescriptionSee 0029106:0075439:

OCCT-ARCH463-64-opt-compile
IntPatch_InterferencePolyhedron.cxx:905, GNU C Compiler 4 (gcc), Priority: Normal
array subscript is above array bounds [-Warray-bounds]

This looks as real issue (even if not affecting anything): the cycle copies too many elements of array, so the last copy will be for uninitialized data (but still in the buffer, thus no actual out of bounds error).
Steps To ReproduceAsk INV to build on ARCH463-64 system
TagsNo tags attached.
Test case numberNot needed
Attached Files

- Relationships

-  Notes
(0076727)
git (administrator)
2018-06-12 22:18

Branch CR29859 has been created by abv.

SHA-1: efde975a4747e55909d4b722cba7667be0587321


Detailed log of new commits:

Author: abv
Date: Tue Jun 12 22:18:34 2018 +0300

    0029859: Coding - GCC compiler warning -Warray-bounds in IntPatch_InterferencePolyhedron.cxx
    
    Code is corrected to avoid copying uninitialized element of the array
(0076749)
abv (manager)
2018-06-13 17:57

Fix pushed to CR29859; tests passed in Jenkins job CR29859-master-abv; please review
(0076751)
msv (developer)
2018-06-13 19:10

Reviewed.
(0076752)
bugmaster (administrator)
2018-06-13 20:19

Combination -
OCCT branch : CR29859 SHA - efde975a4747e55909d4b722cba7667be0587321
Products branch : master SHA - 82570c1f4b0e27eb09789f573087eef089260f59
was compiled on Linux, MacOS and Windows platforms and tested in optimize mode.

Number of compiler warnings:
No new/fixed warnings

Regressions/Differences/Improvements:
No regressions/differences

CPU differences:
Debian70-64:
OCCT
Total CPU difference: 16984.369999999824 / 17011.039999999866 [-0.16%]
Products
Total CPU difference: 7483.2400000000325 / 7441.7800000000125 [+0.56%]
Windows-64-VC10:
OCCT
Total CPU difference: 16783.41438529866 / 16821.806231398525 [-0.23%]
Products
Total CPU difference: 8264.043774299873 / 8237.071201399893 [+0.33%]


Image differences :
No differences that require special attention

Memory differences :
No differences that require special attention

- Related Changesets
occt: master a820bd4f
Timestamp: 2018-06-12 19:18:34
Author: abv
Committer: bugmaster
Details ] Diff ]
0029859: Coding - GCC compiler warning -Warray-bounds in IntPatch_InterferencePolyhedron.cxx

Code is corrected to avoid copying uninitialized element of the array
mod - src/IntPatch/IntPatch_InterferencePolyhedron.cxx Diff ] File ]

- Issue History
Date Modified Username Field Change
2018-06-12 22:14 abv New Issue
2018-06-12 22:14 abv Assigned To => abv
2018-06-12 22:14 abv Relationship added child of 0029106
2018-06-12 22:18 git Note Added: 0076727
2018-06-13 17:57 abv Note Added: 0076749
2018-06-13 17:57 abv Assigned To abv => msv
2018-06-13 17:57 abv Status new => resolved
2018-06-13 17:57 abv Steps to Reproduce Updated View Revisions
2018-06-13 19:10 msv Note Added: 0076751
2018-06-13 19:10 msv Assigned To msv => bugmaster
2018-06-13 19:10 msv Status resolved => reviewed
2018-06-13 20:19 bugmaster Test case number => Not needed
2018-06-13 20:19 bugmaster Note Added: 0076752
2018-06-13 20:19 bugmaster Status reviewed => tested
2018-06-14 18:20 bugmaster Changeset attached => occt master a820bd4f
2018-06-14 18:20 bugmaster Status tested => verified
2018-06-14 18:20 bugmaster Resolution open => fixed


Copyright © 2000 - 2018 MantisBT Team
Powered by Mantis Bugtracker