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.
101 B
101 B