You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix out of bounds access by checking length equality BEFORE accessing by index.
Fixes#5780
changelog: fix out of bounds access in unnested_or_patterns lint.
Edit: I did not bother reducing a testcase from `librustc_typeck` crate but I can confirm that with the change the crash no longer occurs.
flip1995
added a commit
to flip1995/rust-clippy
that referenced
this issue
Jul 13, 2020
Fix out of bounds access by checking length equality BEFORE accessing by index.
Fixesrust-lang#5780
changelog: fix out of bounds access in unnested_or_patterns lint.
Edit: I did not bother reducing a testcase from `librustc_typeck` crate but I can confirm that with the change the crash no longer occurs.
flip1995
added a commit
to flip1995/rust-clippy
that referenced
this issue
Jul 13, 2020
Fix out of bounds access by checking length equality BEFORE accessing by index.
Fixesrust-lang#5780
changelog: fix out of bounds access in unnested_or_patterns lint.
Edit: I did not bother reducing a testcase from `librustc_typeck` crate but I can confirm that with the change the crash no longer occurs.
Clippy crashes while checking rustcs
rustc_typeck
crate.clippy 0.0.212 (8aa18cb 2020-07-08)
Backtrace:
The text was updated successfully, but these errors were encountered: