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
88cd1823
Commit
88cd1823
authored
Jul 19, 2018
by
Shivendra Agarwal
Committed by
Wouter van Oortmerssen
Jul 19, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Restricting (typed=false, fixed=true) combination in flexbuffer CreateVector (#4825)
https://github.com/google/flatbuffers/issues/4815
parent
7c824ef6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
flexbuffers.h
include/flatbuffers/flexbuffers.h
+1
-0
No files found.
include/flatbuffers/flexbuffers.h
View file @
88cd1823
...
...
@@ -1417,6 +1417,7 @@ class Builder FLATBUFFERS_FINAL_CLASS {
Value
CreateVector
(
size_t
start
,
size_t
vec_len
,
size_t
step
,
bool
typed
,
bool
fixed
,
const
Value
*
keys
=
nullptr
)
{
FLATBUFFERS_ASSERT
(
!
fixed
||
typed
);
// typed=false, fixed=true combination is not supported.
// Figure out smallest bit width we can store this vector with.
auto
bit_width
=
(
std
::
max
)(
force_min_bit_width_
,
WidthU
(
vec_len
));
auto
prefix_elems
=
1
;
...
...
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