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
e0b4e273
Commit
e0b4e273
authored
Sep 27, 2005
by
msvensson@neptunus.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug #13163 yassl: aix52 crash with ssl turned on
- It seems like malloc(0) returns a null pointer on aix52
parent
7de902fc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
extra/yassl/mySTL/vector.hpp
extra/yassl/mySTL/vector.hpp
+2
-1
No files found.
extra/yassl/mySTL/vector.hpp
View file @
e0b4e273
...
...
@@ -45,7 +45,8 @@ struct vector_base {
vector_base
()
:
start_
(
0
),
finish_
(
0
),
end_of_storage_
(
0
)
{}
vector_base
(
size_t
n
)
{
start_
=
static_cast
<
T
*>
(
malloc
(
n
*
sizeof
(
T
)));
// Don't allow malloc(0), if n is 0 use 1
start_
=
static_cast
<
T
*>
(
malloc
((
n
?
n
:
1
)
*
sizeof
(
T
)));
if
(
!
start_
)
abort
();
finish_
=
start_
;
end_of_storage_
=
start_
+
n
;
...
...
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