Skip to content

Commit

Permalink
Low risk ReDoS vuln
Browse files Browse the repository at this point in the history
  • Loading branch information
theWorstComrade authored and Byron committed Feb 20, 2022
1 parent d0b48f3 commit 75f4f63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git/remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ class FetchInfo(IterableObj, object):
NEW_TAG, NEW_HEAD, HEAD_UPTODATE, TAG_UPDATE, REJECTED, FORCED_UPDATE, \
FAST_FORWARD, ERROR = [1 << x for x in range(8)]

_re_fetch_result = re.compile(r'^\s*(.) (\[?[\w\s\.$@]+\]?)\s+(.+) -> ([^\s]+)( \(.*\)?$)?')
_re_fetch_result = re.compile(r'^\s*(.) (\[[\w\s\.$@]+\]|[\w\.$@]+)\s+(.+) -> ([^\s]+)( \(.*\)?$)?')

_flag_map: Dict[flagKeyLiteral, int] = {
'!': ERROR,
Expand Down

0 comments on commit 75f4f63

Please sign in to comment.