8000 no attack vector, there are only 4 cases · tricknotes/coderay@af04107 · GitHub
[go: up one dir, main page]

Skip to content

Commit af04107

Browse files
committed
no attack vector, there are only 4 cases
1 parent 368e053 commit af04107

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

lib/coderay/scanners/python.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,10 @@ class Python < Scanner
7575
<<=? | >>=? | [<>=]=? | != # comparison and assignment
7676
/x # :nodoc:
7777

78-
# FIXME: cache attack
7978
STRING_DELIMITER_REGEXP = Hash.new { |h, delimiter|
8079
h[delimiter] = Regexp.union delimiter # :nodoc:
8180
}
8281

83-
# FIXME: cache attack
8482
STRING_CONTENT_REGEXP = Hash.new { |h, delimiter|
8583
h[delimiter] = / [^\\\n]+? (?= \\ | $ | #{Regexp.escape(delimiter)} ) /x # :nodoc:
8684
}

0 commit comments

Comments
 (0)
0