Files
sourcekit-lsp/Sources/SourceKitLSP
Alex Hoppen da10fbbdcb Fix a crash when trying to apply in edit that has out of line positions
`LineTable.replace` did not actually validate that the edit is in range. This could cause crashes of SourceKit-LSP if the editor is sending us bogus edits. Validate the position, like we do in all the other position conversions and log a fault if the edit is out-of-range.

While fixing this, I found a couple more places where line table accesses were not properly guarded. I migrated them to safe alternatives as well.

rdar://138962353
2024-10-30 20:02:31 -07:00
..
2024-09-27 09:17:13 -07:00