mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-12 07:50:59 +00:00
[Rust] Add length checks to arrays and vectors. (#7130)
* [Rust] Add length checks to arrays and vectors. The previous behavior allowed for out of bounds access in the public API (#7011). * bump semver and test warning Co-authored-by: Casper Neo <cneo@google.com>
This commit is contained in:
@@ -61,7 +61,8 @@ mod optional_scalars_generated;
|
||||
#[path = "../../arrays_test/mod.rs"]
|
||||
mod arrays_test_generated;
|
||||
|
||||
#[allow(dead_code, unused_imports)]
|
||||
// We use incorrect casing to test keywords.
|
||||
#[allow(dead_code, unused_imports, non_camel_case_types, non_snake_case)]
|
||||
#[path = "../../keyword_test/mod.rs"]
|
||||
mod keyword_test_generated;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user