mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 02:03:53 +00:00
96195a5e24
interpret, miri: fix dealing with overflow during slice indexing and allocation This is mostly to fix https://github.com/rust-lang/rust/issues/130284. I then realized we're using somewhat sketchy arguments for a similar multiplication in `copy`/`copy_nonoverlapping`/`write_bytes`, so I made them all share the same function that checks exactly the right thing. (The intrinsics would previously fail on allocations larger than `1 << 47` bytes... which are theoretically possible maybe? Anyway it seems conceptually wrong to use any other bound than `isize::MAX` here.) |
||
---|---|---|
.. | ||
bootstrap | ||
ci | ||
doc | ||
etc | ||
gcc@fd3498bff0 | ||
librustdoc | ||
llvm-project@4b8d29c585 | ||
rustdoc-json-types | ||
tools | ||
README.md | ||
stage0 | ||
version |
This directory contains some source code for the Rust project, including:
- The bootstrapping build system
- Various submodules for tools, like cargo, tidy, etc.
For more information on how various parts of the compiler work, see the rustc dev guide.