sirthias / pegdown

A pure-Java Markdown processor based on a parboiled PEG parser supporting a number of extensions
http://pegdown.org
Apache License 2.0
1.29k stars 217 forks source link

OutOfMemoryError (OOME) on single-line code blocks #127

Closed charleso closed 10 years ago

charleso commented 10 years ago

The following text results in Pegdown running out of memory.

```result.toEither.left.foreach{ case .... }```

or 

```result.swap.foreach{ case ... } // foreach is only defined on the right side of validation```

Replacing `` with fixes it.

sirthias commented 10 years ago

Interesting! Thanks for the report!

charleso commented 10 years ago

Another, possibly unrelated, case. The combination of a blank line after the first fence plus a "type".


b
charleso commented 10 years ago

This is the case of me being an idiot. The bug is in Stash, and not Pegdown. Apologies for the noise.