Commit 495e369
Fix crash for diagnostics around source with embedded nulls (microsoft#8164)
Previously if the source contained embedded nulls and a diagnostic range
included that this would result in an assert firing (and then a crash in
builds without asserts).
This change makes it quietly return in this case, and adds a regression
test for this situation.
---------
Co-authored-by: Copilot <[email protected]>1 parent ba40d77 commit 495e369
2 files changed
Lines changed: 11 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
965 | 965 | | |
966 | 966 | | |
967 | 967 | | |
968 | | - | |
969 | | - | |
970 | | - | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
| 971 | + | |
971 | 972 | | |
972 | 973 | | |
973 | 974 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
0 commit comments