summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2007-08-15 11:21:50 +0000
committerJohnny Willemsen <jwillemsen@remedy.nl>2007-08-15 11:21:50 +0000
commit17f6d03f4d143a5caeb688baeabd31e5186039cb (patch)
tree5ef4a1e251cc2421678c0880c5bf5038277108d7
parente1c63a3f2200217feed885b235bc2f78967bf5a9 (diff)
downloadATCD-17f6d03f4d143a5caeb688baeabd31e5186039cb.tar.gz
Wed Aug 15 11:21:12 UTC 2007 Johnny Willemsen <jwillemsen@remedy.nl>
-rw-r--r--TAO/ChangeLog15
-rw-r--r--TAO/tao/Bounded_Array_Allocation_Traits_T.h2
-rw-r--r--TAO/tao/Bounded_Reference_Allocation_Traits_T.h2
-rw-r--r--TAO/tao/Bounded_Value_Allocation_Traits_T.h2
-rw-r--r--TAO/tao/Valuetype/Bounded_Valuetype_Allocation_Traits_T.h2
5 files changed, 19 insertions, 4 deletions
diff --git a/TAO/ChangeLog b/TAO/ChangeLog
index ed7340d955c..d784e7b507b 100644
--- a/TAO/ChangeLog
+++ b/TAO/ChangeLog
@@ -1,3 +1,18 @@
+Wed Aug 15 11:21:12 UTC 2007 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/Bounded_Array_Allocation_Traits_T.h:
+ * tao/Bounded_Reference_Allocation_Traits_T.h:
+ * tao/Bounded_Value_Allocation_Traits_T.h:
+ * tao/Valuetype/Bounded_Valuetype_Allocation_Traits_T.h:
+ Don't preallocate all sequence members when using bound sequences,
+ this could lead to a stack overflow when using recursive types
+ as described in bugzilla 3042. Thanks to Stanislaw Trytek
+ <tryteks at pit dot edu dot pl> for reporting this.
+
+ * tests/Bug_3042_Regression/*:
+ New regression test for bug 3042, thanks to Stanislaw Trytek
+ <tryteks at pit dot edu dot pl> for creating this one
+
Tue Aug 14 21:50:40 UTC 2007 Phil Mesnier <mesnier_p@ociweb.com>
* orbsvcs/orbsvcs/HTIOP/HTIOP_Acceptor.cpp:
diff --git a/TAO/tao/Bounded_Array_Allocation_Traits_T.h b/TAO/tao/Bounded_Array_Allocation_Traits_T.h
index af6849f407c..7c838f50e79 100644
--- a/TAO/tao/Bounded_Array_Allocation_Traits_T.h
+++ b/TAO/tao/Bounded_Array_Allocation_Traits_T.h
@@ -32,7 +32,7 @@ struct bounded_array_allocation_traits
inline static value_type * default_buffer_allocation()
{
- return allocbuf(MAX);
+ return 0;
}
inline static value_type * allocbuf(CORBA::ULong /* maximum */)
diff --git a/TAO/tao/Bounded_Reference_Allocation_Traits_T.h b/TAO/tao/Bounded_Reference_Allocation_Traits_T.h
index b5ff17fca98..3ef2b3a26d4 100644
--- a/TAO/tao/Bounded_Reference_Allocation_Traits_T.h
+++ b/TAO/tao/Bounded_Reference_Allocation_Traits_T.h
@@ -33,7 +33,7 @@ struct bounded_reference_allocation_traits
inline static value_type * default_buffer_allocation()
{
- return allocbuf(MAX);
+ return 0;
}
inline static value_type * allocbuf(CORBA::ULong /* maximum */)
diff --git a/TAO/tao/Bounded_Value_Allocation_Traits_T.h b/TAO/tao/Bounded_Value_Allocation_Traits_T.h
index aa94641e539..f7fd827bb59 100644
--- a/TAO/tao/Bounded_Value_Allocation_Traits_T.h
+++ b/TAO/tao/Bounded_Value_Allocation_Traits_T.h
@@ -32,7 +32,7 @@ struct bounded_value_allocation_traits
inline static value_type * default_buffer_allocation()
{
- return allocbuf(MAX);
+ return 0;
}
inline static value_type * allocbuf(CORBA::ULong /* maximum */)
diff --git a/TAO/tao/Valuetype/Bounded_Valuetype_Allocation_Traits_T.h b/TAO/tao/Valuetype/Bounded_Valuetype_Allocation_Traits_T.h
index 321fa834aba..e05a040685a 100644
--- a/TAO/tao/Valuetype/Bounded_Valuetype_Allocation_Traits_T.h
+++ b/TAO/tao/Valuetype/Bounded_Valuetype_Allocation_Traits_T.h
@@ -33,7 +33,7 @@ struct bounded_valuetype_allocation_traits
inline static value_type * default_buffer_allocation()
{
- return allocbuf(MAX);
+ return 0;
}
inline static value_type * allocbuf(CORBA::ULong /* maximum */)