MantisBT
Mantis Bug Tracker Workflow

View Revisions: Issue #22595 All Revisions ] Back to Issue ]
Summary 0022595: gp_Mat's constructors incompletely initilize memory
Revision 2011-07-29 15:30 by bugmaster
Description RLN_fix435
- Summary: gp_Mat's constructors incompletely initilize memory when compiled by
gcc 4.1.2 with -O2
- Detailed description: gp_Mat constructors use indirect memory reference
((Standard_Real*)&matrix[0][0])[i]) to access elements of the member field
matrix[3][3]. Likely due to gcc bug this results in uninitialized memory and
further crashes when using that garbage. See details at
http://www.opencascade.org/org/forum/thread_19603/. [^]
gp_XYZ.lxx had to be fixed as well since it used the same macros defined in
gp_Mat.lxx. Macros in gp_Mat.lxx could be removed too to avoid possible
conflicts with user's code but currently left to minimize modifications.
Revision 2011-07-14 18:36 by bugmaster
Description RLN_fix435
- Summary: gp_Mat's constructors incompletely initilize memory when compiled by
gcc 4.1.2 with -O2
- Detailed description: gp_Mat constructors use indirect memory reference
((Standard_Real*)&matrix[0][0])[i]) to access elements of the member field
matrix[3][3]. Likely due to gcc bug this results in uninitialized memory and
further crashes when using that garbage. See details at
http://www.opencascade.org/org/forum/thread_19603/. [^]
gp_XYZ.lxx had to be fixed as well since it used the same macros defined in
gp_Mat.lxx. Macros in gp_Mat.lxx could be removed too to avoid possible
conflicts with user's code but currently left to minimize modifications.


Copyright © 2000 - 2019 MantisBT Team
Powered by Mantis Bugtracker