Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
ff6e598e
Commit
ff6e598e
authored
Nov 03, 2006
by
stewart@willster.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BUG#22299 mgmd crash due to unchecked TransporterFacade::ThreadData expand()
abort if we ever fail to expand a Vector
parent
26484ac9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
ndb/include/util/Vector.hpp
ndb/include/util/Vector.hpp
+2
-0
No files found.
ndb/include/util/Vector.hpp
View file @
ff6e598e
...
@@ -94,6 +94,8 @@ void
...
@@ -94,6 +94,8 @@ void
Vector
<
T
>::
push_back
(
const
T
&
t
){
Vector
<
T
>::
push_back
(
const
T
&
t
){
if
(
m_size
==
m_arraySize
){
if
(
m_size
==
m_arraySize
){
T
*
tmp
=
new
T
[
m_arraySize
+
m_incSize
];
T
*
tmp
=
new
T
[
m_arraySize
+
m_incSize
];
if
(
!
tmp
)
abort
();
for
(
unsigned
k
=
0
;
k
<
m_size
;
k
++
)
for
(
unsigned
k
=
0
;
k
<
m_size
;
k
++
)
tmp
[
k
]
=
m_items
[
k
];
tmp
[
k
]
=
m_items
[
k
];
delete
[]
m_items
;
delete
[]
m_items
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment