unconditional_panic
array bounds check doesn't work through Deref
#109260
Labels
A-const-eval
Area: constant evaluation (mir interpretation)
A-lint
Area: Lints (warnings about flaws in source code) such as unused_mut.
A-mir
Area: Mid-level IR (MIR) - https://blog.rust-lang.org/2016/04/19/MIR.html
C-bug
Category: This is a bug.
(Initially reported on URLO)
In the following program:
The out-of-bounds access of
ptr_0[11]
is not flagged at compile time, but the similar access ofarr_0[11]
is.The text was updated successfully, but these errors were encountered: