tristanjuricek / knockoff

A Markdown parser + object model in scala
http://tristanjuricek.github.com/knockoff
BSD 3-Clause "New" or "Revised" License
102 stars 17 forks source link

Stack Overflow in findStart #42

Open jan-christiansen opened 9 years ago

jan-christiansen commented 9 years ago

The following test case causes a stack overflow.

knockoff(List.fill(5000)("a").mkString(""))
tristanjuricek commented 9 years ago

Thanks for the test case!

Solving for 5000 character words might require a bit of a rewrite, so, I can't say when I'd get around to addressing this issue.

jan-christiansen commented 9 years ago

Thanks for the feedback! In fact this isn't high priority. We just happened to stumble upon this problem because we had a markdown text that contained carriage returns instead of newlines by accident. Rendering this text caused the overflow.