diff options
author | Paul Phillips <paulp@improving.org> | 2012-01-31 00:14:47 -0800 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2012-02-01 14:09:23 -0800 |
commit | 264ff5d5e8dbec4ae2e13bf52e66a965d884b25c (patch) | |
tree | 4af5300946ce2fe20064f153b703b1317769093e /test/pending/run/t5256h.scala | |
parent | fbd5efe49cf23b446762dfa5026e8bac82ab04fc (diff) | |
download | scala-264ff5d5e8dbec4ae2e13bf52e66a965d884b25c.tar.gz scala-264ff5d5e8dbec4ae2e13bf52e66a965d884b25c.tar.bz2 scala-264ff5d5e8dbec4ae2e13bf52e66a965d884b25c.zip |
Fix for parser OOM.
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.
Diffstat (limited to 'test/pending/run/t5256h.scala')
0 files changed, 0 insertions, 0 deletions