Archived issue #0030564

Coding - math_Gauss uninitialized 'Singular' member variable

CommunityOCCT:Codingclosed4 public notes

Search issues

Description

I got the following error running with OCCT 7.3.0 compiled with -fsanitize=undefined:

src/math/math_Gauss.hxx:43:7: runtime error: load of value 156, which is not a valid value for type 'bool'

Initializing 'Singular' in the constructor resolved this issue. Notably 'Singular' does not appear to be used at all in the class...

Steps to reproduce

Compile OCCT 7.3.0 with -fsanitize=undefined and run the test suite.

Public activity

4 archived notes

Participants are labeled by their role within this record.

01Commenter 3
Branch [archived branch] has been created by Commenter 4.

[revision removed]


Detailed log of new commits:

Author: Commenter 4
Date: Wed Mar 13 07:49:59 2019 +0300

    0030564: Coding - math_Gauss uninitialized 'Singular' member variable
    
    Removed unused class field Singular.
02Commenter 4
03Commenter 1
Combination -
OCCT branch : [archived branch]
master SHA - [revision removed]
[revision removed]
Products branch : [archived branch] SHA - [revision removed]
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:
Debian80-64:
OCCT
Total CPU difference: 16615.46999999998 / 16599.24999999996 [+0.10%]
Products
Total CPU difference: 9089.820000000022 / 9092.71000000004 [-0.03%]
Windows-64-VC14:
OCCT
Total CPU difference: 18003.609375 / 17985.28125 [+0.10%]
Products
Total CPU difference: 10497.203125 / 10460.953125 [+0.35%]

Image differences :
No differences that require special attention

Memory differences :
No differences that require special attention
04Commenter 3
Branch [archived branch] has been deleted by Participant.

[revision removed]

Related records