about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
diff options
context:
space:
mode:
authordswij <dharmasw@outlook.com>2025-02-27 10:45:31 +0000
committerGitHub <noreply@github.com>2025-02-27 10:45:31 +0000
commit527ab050faf7f8ce12290a2c00c59be98cffb221 (patch)
tree419c581d9b2244cfd5a7f60bd6602842a72760bb /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
parentf50266a4236d85af5ba83f986000a0b1ca38166b (diff)
parente399e152e8e5c0060c4f37d39de202d5c9b546d1 (diff)
downloadrust-527ab050faf7f8ce12290a2c00c59be98cffb221.tar.gz
rust-527ab050faf7f8ce12290a2c00c59be98cffb221.zip
fix: Avoid ICE in `doc_nested_refdefs` check by checking range (#14308)
The `looks_like_refdef` function was assuming the range was valid, this
just adds a check to ensure that is the case. It also works around a
subtraction underflow due to the same invalid range.

changelog: [`doc_nested_refdefs`]: Fix #14287 by avoiding invalid ranges
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions