Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
flatbuffers
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
flatbuffers
Commits
f353fd88
Commit
f353fd88
authored
Feb 10, 2015
by
Stefan Eilemann
Committed by
Wouter van Oortmerssen
Feb 13, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix pointer underrun when allocating large vectors
Change-Id: Ia69fc3098468eb64420215dc1068342ccbbb1ede
parent
c9a840e9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
flatbuffers.h
include/flatbuffers/flatbuffers.h
+1
-1
No files found.
include/flatbuffers/flatbuffers.h
View file @
f353fd88
...
...
@@ -367,7 +367,7 @@ class vector_downward {
}
uint8_t
*
make_space
(
size_t
len
)
{
if
(
buf_
>
cur_
-
len
)
{
if
(
len
>
static_cast
<
size_t
>
(
cur_
-
buf_
)
)
{
auto
old_size
=
size
();
reserved_
+=
std
::
max
(
len
,
growth_policy
(
reserved_
));
auto
new_buf
=
allocator_
.
allocate
(
reserved_
);
...
...
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