]> OCCT Git - occt-copy.git/commitdiff
0030552: Foundation Classes - Stack overflow due to math_SingleTab static array size CR30552
authorkgv <kgv@opencascade.com>
Tue, 12 Mar 2019 07:51:40 +0000 (10:51 +0300)
committerkgv <kgv@opencascade.com>
Tue, 12 Mar 2019 07:51:40 +0000 (10:51 +0300)
math_Vector, math_IntegerVector - static size of NCollection_LocalArray has been reduced from 512 to 32.

src/math/math_IntegerVector.hxx
src/math/math_Vector.hxx

index 1fc47dea9879bef6cdee3c8ef13020dddb932c67..5241fc18200ebfe92daf9f0cbf2eddb6f7764811 100644 (file)
@@ -263,7 +263,7 @@ protected:
 
 private:
 
-  NCollection_LocalArray<Standard_Integer, 512> myLocArray;
+  NCollection_LocalArray<Standard_Integer, 32> myLocArray;
   NCollection_Array1<Standard_Integer> Array;
 
 };
index 0c49d5166c6e5629e981d91e953830e5e3dbcdb5..308d889880df3552ab6063f3ab6694a984aa8ab1 100644 (file)
@@ -338,7 +338,7 @@ protected:
 
 private:
 
-  NCollection_LocalArray<Standard_Real, 512> myLocArray;
+  NCollection_LocalArray<Standard_Real, 32> myLocArray;
   NCollection_Array1<Standard_Real> Array;
 
 };