Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Vulnerable regex conditions are removed
bpo-41712: Removal of Vulnerable regex conditions  
Using suggestion  ""For example, you can modify the sub-pattern \w+\d+ to ([A-Za-z_]*\d)+""  and converted to ([A-za-z_]+\d+)
which should Fix the issue of vulnerable regex.
Test Result : Working as intended

Sorry if this not much this is my first pr to big org.
  • Loading branch information
Pixmew authored Nov 5, 2020
commit f3f47257266ef44832819ec24eb629434d8b7dd3
2 changes: 1 addition & 1 deletion Tools/msi/purge.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

from urllib.request import *

VERSION_RE = re.compile(r'(\d+\.\d+\.\d+)(\w+)$')
VERSION_RE = re.compile(r'(\d+\.\d+\.\d+)([A-Za-z_]+\d+)$')

try:
m = VERSION_RE.match(sys.argv[1])
Expand Down