From a0bacadc80bdf6adc8e0a31d64362082ffb3b142 Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Thu, 1 Jul 2010 20:32:47 +0000 Subject: 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. --- test/files/run/xml-loop-bug.check | Bin 0 -> 280 bytes test/files/run/xml-loop-bug.scala | 5 +++++ 2 files changed, 5 insertions(+) create mode 100644 test/files/run/xml-loop-bug.check create mode 100644 test/files/run/xml-loop-bug.scala (limited to 'test/files/run') diff --git a/test/files/run/xml-loop-bug.check b/test/files/run/xml-loop-bug.check new file mode 100644 index 0000000000..a31b93d0cf Binary files /dev/null and b/test/files/run/xml-loop-bug.check differ 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(" "), true).document.docElem + } +} -- cgit v1.2.3