mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-14 00:25:26 +00:00
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:
@@ -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`.
|
||||
|
||||
Reference in New Issue
Block a user