Skip to content

Commit

Permalink
Merge pull request #257 from bluetech/svn-redos
Browse files Browse the repository at this point in the history
svnwc: fix regular expression vulnerable to DoS in blame functionality
  • Loading branch information
bluetech authored Sep 20, 2020
2 parents 5038984 + 4a9017d commit 92e36e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py/_path/svnwc.py
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ def makecmdoptions(self):
def __str__(self):
return "<SvnAuth username=%s ...>" %(self.username,)

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

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

0 comments on commit 92e36e6

Please sign in to comment.