summaryrefslogtreecommitdiff
path: root/test/files/neg/unicode-unterminated-quote.scala
Commit message (Collapse)AuthorAgeFilesLines
* Fix for parser OOM.Paul Phillips2012-02-011-0/+2
The scanner performs some sketchy heuristics when it sees an ascii 1A since it may be EOF or it may be part of a literal. Due to this, it failed to detect an unterminated string literal if the opening quote was unicode-escaped, leading to memory exhaustion as it read SUs until the universe ended. We're parsing a fixed input with known length! There's no reason to be guessing about whether a char is EOF. If we're at the end of the file, it's the end of file. Otherwise, it is not the end of the file.