Commit 194a6af
committed
Guard against overflow in
There a number of recent issues that report the bug here. See
e.g. #24761 and #24954.
This change does *not* fix them; it just makes the assert more
immediate (and also injects a more conservative check, in that we are
also checking that the files match up).
So, this does not directly fix any bugs, and is expected ot actually
inject new ICE's. But those will all represent latent bugs that need
fixing.codemap::span_to_lines.1 parent 551a74d commit 194a6af
1 file changed
+7
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
670 | 670 | | |
671 | 671 | | |
672 | 672 | | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
673 | 680 | | |
674 | 681 | | |
675 | 682 | | |
| |||
0 commit comments