about summary refs log tree commit diff
path: root/src/rustllvm/CoverageMappingWrapper.cpp
diff options
context:
space:
mode:
authorPhilipp Krones <hello@philkrones.com>2020-07-13 15:59:45 +0200
committerGitHub <noreply@github.com>2020-07-13 15:59:45 +0200
commit26ede3115fbaaab5aecf6ca32ab97cd0feb9f38b (patch)
treeb3e95076013e9d5c5bb44c997d9ed510e6c82925 /src/rustllvm/CoverageMappingWrapper.cpp
parent32ef448bdb915f5ccb37daf7c32ad50b85c8ef0d (diff)
parent1b3bc16533a3e701616648920603c10674eb653b (diff)
downloadrust-26ede3115fbaaab5aecf6ca32ab97cd0feb9f38b.tar.gz
rust-26ede3115fbaaab5aecf6ca32ab97cd0feb9f38b.zip
Rollup merge of #5784 - matthiaskrgr:ice_5780, r=phansch
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.
Diffstat (limited to 'src/rustllvm/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions