Skip to content

Commit f07283f

Browse files
committed
security: tests for REDOS
Demonstrate catastrophic backtracking in two regexes
1 parent 56d1bcf commit f07283f

File tree

4 files changed

+2
-0
lines changed

4 files changed

+2
-0
lines changed

test/new/redos-html-closing.html

Whitespace-only changes.

test/new/redos-html-closing.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<tag "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" ""<" />a'a

test/new/redos-nolink.html

Whitespace-only changes.

test/new/redos-nolink.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
![\[[]\[[]\[[]\[[]\[[]\[[]\[[]\[[]\[[]\[[]\[[]\[[]\[[]\[[]\[[]\[[]\[[]\[[]\[[]\[[]\[[]\[[]\[[]\[[]\[[]\[[]\[[]\[[]\[[]\[[]\[[]\[[]\[[]\[[]\[[]\[[]\[[]\[[]\[[]\[[]\[[]\[[]\[[]!\

0 commit comments

Comments
 (0)