diff options
| author | dswij <dharmasw@outlook.com> | 2025-02-27 10:45:31 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-27 10:45:31 +0000 |
| commit | 527ab050faf7f8ce12290a2c00c59be98cffb221 (patch) | |
| tree | 419c581d9b2244cfd5a7f60bd6602842a72760bb /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp | |
| parent | f50266a4236d85af5ba83f986000a0b1ca38166b (diff) | |
| parent | e399e152e8e5c0060c4f37d39de202d5c9b546d1 (diff) | |
| download | rust-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
