diff options
author | Paul Phillips <paulp@improving.org> | 2010-07-01 20:32:47 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2010-07-01 20:32:47 +0000 |
commit | a0bacadc80bdf6adc8e0a31d64362082ffb3b142 (patch) | |
tree | 1e04c63650f67692854fd91751cca58c8d4f4177 /test | |
parent | deaf94e5f2bcbd719c1b80dfba2aaf16eaa9f75e (diff) | |
download | scala-a0bacadc80bdf6adc8e0a31d64362082ffb3b142.tar.gz scala-a0bacadc80bdf6adc8e0a31d64362082ffb3b142.tar.bz2 scala-a0bacadc80bdf6adc8e0a31d64362082ffb3b142.zip |
Fixed an infinite loop in the xml parser on inv...
Fixed an infinite loop in the xml parser on invalid input. Also found an
off by one bug in Source while fixing it. No review.
Diffstat (limited to 'test')
-rw-r--r-- | test/files/run/xml-loop-bug.check | bin | 0 -> 280 bytes | |||
-rw-r--r-- | test/files/run/xml-loop-bug.scala | 5 |
2 files changed, 5 insertions, 0 deletions
diff --git a/test/files/run/xml-loop-bug.check b/test/files/run/xml-loop-bug.check Binary files differnew file mode 100644 index 0000000000..a31b93d0cf --- /dev/null +++ b/test/files/run/xml-loop-bug.check diff --git a/test/files/run/xml-loop-bug.scala b/test/files/run/xml-loop-bug.scala new file mode 100644 index 0000000000..acb3c5c6da --- /dev/null +++ b/test/files/run/xml-loop-bug.scala @@ -0,0 +1,5 @@ +object Test { + def main(args: Array[String]): Unit = { + scala.xml.parsing.ConstructingParser.fromSource(scala.io.Source.fromString("<!DOCTYPE xmeml SYSTEM> <xmeml> <sequence> </sequence> </xmeml> "), true).document.docElem + } +} |