[idl_parser] Check the range of explicitly set field's id value (#6363)
authorVladimir Glavnyy <31897320+vglavnyy@users.noreply.github.com>
Mon, 4 Jan 2021 20:33:31 +0000 (03:33 +0700)
committerGitHub <noreply@github.com>
Mon, 4 Jan 2021 20:33:31 +0000 (12:33 -0800)
commite7430bbebd413b7d9f9a9a156c9c36ba80411580
tree926d0e490efc43c64423798b32c155ff0722dcb1
parent24dd85fd28b002d1dc6bca331b3e9516ea55c8cf
[idl_parser] Check the range of explicitly set field's id value (#6363)

* [idl_parser] Check the range of explicitly set field's id value

The explicitly set `id` attribute should be a non-negative value of the `voffset_t` type.

* Format FieldIdentifierTest()
src/idl_parser.cpp
tests/test.cpp