about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs
diff options
context:
space:
mode:
authorPietro Albini <pietro@pietroalbini.org>2020-08-28 10:23:59 +0200
committerGitHub <noreply@github.com>2020-08-28 10:23:59 +0200
commitbe1b304ea4dec58255d76eca98442270ef17578a (patch)
treec6b8141b6bcebf9f7874b258cee3f51c1fbd6170 /src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs
parentbc553136c731db2038c4a7ebf7cb37b94c962813 (diff)
parent0cca5978a454fe7087d0182a8bfa1372a6aae320 (diff)
downloadrust-be1b304ea4dec58255d76eca98442270ef17578a.tar.gz
rust-be1b304ea4dec58255d76eca98442270ef17578a.zip
Rollup merge of #75943 - elichai:2020-align_offset-docs, r=RalfJung
Fix potential UB in align_offset doc examples

Currently it takes a pointer only to the first element in the array, this changes the code to take a pointer to the whole array.
miri can't catch this right now because it later calls `x.len()` which re-tags the pointer for the whole array.

https://github.com/rust-lang/miri/issues/1526#issuecomment-680897144
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs')
0 files changed, 0 insertions, 0 deletions