all repos — grayfriday @ cb288d6b5d02f1a7be20cf6efbdb63d4164b8e67

blackfriday fork with a few changes

Revert "add an infinity-loop detection to block-level parsing"

This reverts commit 0c62e28e900533ff5d0376fac2e5b0c4894e1fa3.
Mathias Leppich mleppich@muhqu.de
Tue, 08 Apr 2014 11:51:17 +0200
commit

cb288d6b5d02f1a7be20cf6efbdb63d4164b8e67

parent

17ca261449c01b960911b516b72f04cb6f6a4fd8

1 files changed, 0 insertions(+), 15 deletions(-)

jump to
M block.goblock.go

@@ -31,23 +31,8 @@ return

} p.nesting++ - lastLen := 0 - sameLenCount := 0 - // parse out one block-level construct at a time for len(data) > 0 { - curLen := len(data) - if curLen == lastLen { - sameLenCount += 1 - if sameLenCount >= 3 { - // infinity loop detection - return - } - } else { - sameLenCount = 0 - } - lastLen = curLen - // prefixed header: // // # Header 1