summaryrefslogtreecommitdiff
path: root/ndb
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
commit45cbd3c187c508d3aa856f0a65326722b8c19853 (patch)
treea2d0dc5c1cfda0955c6532e74b19fa2a7acbaec9 /ndb
parent18f66e026ed090f383bee683ed0d1019f76044c4 (diff)
downloadmariadb-git-45cbd3c187c508d3aa856f0a65326722b8c19853.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
Diffstat (limited to 'ndb')
-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;