diff options
Diffstat (limited to 'src/sksl/SkSLLayoutLexer.cpp')
-rw-r--r-- | src/sksl/SkSLLayoutLexer.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sksl/SkSLLayoutLexer.cpp b/src/sksl/SkSLLayoutLexer.cpp index 27efa89d92..432095ab12 100644 --- a/src/sksl/SkSLLayoutLexer.cpp +++ b/src/sksl/SkSLLayoutLexer.cpp @@ -353,6 +353,9 @@ LayoutToken LayoutLexer::next() { LayoutToken::Kind lastAccept = LayoutToken::Kind::INVALID; int lastAcceptEnd = startOffset + 1; while (offset < fLength) { + if ((uint8_t) fText[offset] >= 127) { + break; + } state = transitions[mappings[(int)fText[offset]]][state]; ++offset; if (!state) { |