mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
RFC 2279 states that, in UTF-8: "The octet values FE and FF never appear." RFC 3629 states that, in UTF-8: "The octet values C0, C1, F5 to FF never appear." Generalize the check to advance past invalid starting bytes for a UTF-8 sequence to fix a crash in the lexer.
3 lines
101 B
Swift
3 lines
101 B
Swift
// RUN: %target-swift-ide-test -code-completion -code-completion-token=A -source-filename=%s
|
||
<EFBFBD><EFBFBD>#^A^#
|