mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-27 07:02:18 +00:00
Fix Rust UB problems (#6393)
* Fix miri problems by assuming alignment is 1 in rust * Removed is_aligned fn from rust verifier. * Add back is_aligned, but make it w.r.t. buffer[0] * touch unused variable * touch unused variable * +nightly * Move Rust miri testing into its own docker * fix bash * missing one endian conversion * fix endianness2 * format stuff Co-authored-by: Casper Neo <cneo@google.com>
This commit is contained in:
@@ -50,3 +50,9 @@ else
|
||||
fi
|
||||
|
||||
cargo bench $TARGET_FLAG
|
||||
|
||||
# RUST_NIGHTLY environment variable set in dockerfile.
|
||||
if [[ $RUST_NIGHTLY == 1 ]]; then
|
||||
rustup +nightly component add miri
|
||||
cargo +nightly miri test -- -Zmiri-disable-isolation
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user