]> git.lizzy.rs Git - rust.git/commit
When a vec/str bounds check fails, include the bad index and the length of the str...
authorGareth Daniel Smith <garethdanielsmith@gmail.com>
Sat, 29 Sep 2012 11:34:11 +0000 (12:34 +0100)
committerBrian Anderson <banderson@mozilla.com>
Sun, 30 Sep 2012 21:55:56 +0000 (14:55 -0700)
commit1c76d189c02ddc6cb6fcf15ae94f3a3ae4de5fa7
tree064a5a635790111611b04e678e1c1db90ce00426
parent2f95f7d8de29baca271d04ef89021146061ce975
When a vec/str bounds check fails, include the bad index and the length of the str/vec in the fail message.
src/libcore/rt.rs
src/rustc/middle/trans/controlflow.rs
src/rustc/middle/trans/expr.rs
src/test/run-fail/bug-2470-bounds-check-overflow-2.rs
src/test/run-fail/bug-2470-bounds-check-overflow-3.rs
src/test/run-fail/bug-2470-bounds-check-overflow.rs
src/test/run-fail/small-negative-indexing.rs
src/test/run-fail/str-overrun.rs
src/test/run-fail/vec-overrun.rs
src/test/run-fail/vec-underrun.rs