summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorunknown <stewart@willster.(none)>2006-11-03 23:56:25 +1100
committerunknown <stewart@willster.(none)>2006-11-03 23:56:25 +1100
commitc09c1b97843f7e6cc362f2ee25e94259a4961732 (patch)
treea2d0dc5c1cfda0955c6532e74b19fa2a7acbaec9
parentc088fa4aecbd3b084775e4a47e6e4cc64bd965bb (diff)
downloadmariadb-git-c09c1b97843f7e6cc362f2ee25e94259a4961732.tar.gz
BUG#22299 mgmd crash due to unchecked TransporterFacade::ThreadData expand()
abort if we ever fail to expand a Vector ndb/include/util/Vector.hpp: abort on failure to allocate memory
-rw-r--r--ndb/include/util/Vector.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/ndb/include/util/Vector.hpp b/ndb/include/util/Vector.hpp
index 480dddf8243..e7f83ff9d2c 100644
--- a/ndb/include/util/Vector.hpp
+++ b/ndb/include/util/Vector.hpp
@@ -94,6 +94,8 @@ void
Vector<T>::push_back(const T & t){
if(m_size == m_arraySize){
T * tmp = new T [m_arraySize + m_incSize];
+ if(!tmp)
+ abort();
for (unsigned k = 0; k < m_size; k++)
tmp[k] = m_items[k];
delete[] m_items;