Skip to content

Commit 92e36e6

Browse files
authored
Merge pull request #257 from bluetech/svn-redos
svnwc: fix regular expression vulnerable to DoS in blame functionality
2 parents 5038984 + 4a9017d commit 92e36e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

py/_path/svnwc.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ def makecmdoptions(self):
396396
def __str__(self):
397397
return "<SvnAuth username=%s ...>" %(self.username,)
398398

399-
rex_blame = re.compile(r'\s*(\d+)\s*(\S+) (.*)')
399+
rex_blame = re.compile(r'\s*(\d+)\s+(\S+) (.*)')
400400

401401
class SvnWCCommandPath(common.PathBase):
402402
""" path implementation offering access/modification to svn working copies.

0 commit comments

Comments
 (0)