Added extra checks for reading binaries in flatc

By default, disallow reading binaries that do not correspond to
the schema file_identifier. Override with --raw-binary

Change-Id: I24822c0e4c80dab4e5a238ae2b6e601a09025c27
Tested: on Linux.
This commit is contained in:
Wouter van Oortmerssen
2015-05-04 13:36:27 -07:00
parent 37e6efe1f9
commit c49c6da803
3 changed files with 55 additions and 30 deletions

View File

@@ -54,6 +54,9 @@ be generated for each file processed:
- `--gen-mutable` : Generate additional non-const accessors for mutating
FlatBuffers in-place.
- `--raw-binary` : Allow binaries without a file_indentifier to be read.
This may crash flatc given a mismatched schema.
- `--proto`: Expect input files to be .proto files (protocol buffers).
Output the corresponding .fbs file.
Currently supports: `package`, `message`, `enum`.