projects
/
platform
/
upstream
/
flatbuffers.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cb2b2be
)
Fixed null root_table access in binary schema generation.
author
Wouter van Oortmerssen
<wvo@google.com>
Mon, 29 Jun 2015 22:21:48 +0000
(15:21 -0700)
committer
Wouter van Oortmerssen
<wvo@google.com>
Mon, 29 Jun 2015 22:21:48 +0000
(15:21 -0700)
Change-Id: Ia2b7abc10bee52814e815befcad6a89697295d8f
Tested: on Linux.
src/idl_parser.cpp
patch
|
blob
|
history
diff --git
a/src/idl_parser.cpp
b/src/idl_parser.cpp
index
b036220
..
bf4b931
100644
(file)
--- a/
src/idl_parser.cpp
+++ b/
src/idl_parser.cpp
@@
-1338,7
+1338,9
@@
void Parser::Serialize() {
builder_.CreateVectorOfSortedTables(&enum_offsets),
builder_.CreateString(file_identifier_),
builder_.CreateString(file_extension_),
- root_struct_def_->serialized_location);
+ root_struct_def_
+ ? root_struct_def_->serialized_location
+ : 0);
builder_.Finish(schema_offset, reflection::SchemaIdentifier());
}