File tree 2 files changed +3
-2
lines changed
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ Release Notes
9
9
- The handling of ``license_files `` (including glob patterns and default
10
10
values) is now delegated to ``setuptools>=57.0.0 `` (#466).
11
11
The package dependencies were updated to reflect this change.
12
+ - Fixed potential DoS attack via the ``WHEEL_INFO_RE `` regular expression
12
13
13
14
**0.37.1 (2021-12-22) **
14
15
Original file line number Diff line number Diff line change 16
16
# Non-greedy matching of an optional build number may be too clever (more
17
17
# invalid wheel filenames will match). Separate regex for .dist-info?
18
18
WHEEL_INFO_RE = re .compile (
19
- r"""^(?P<namever>(?P<name>. +?)-(?P<ver>. +?))(-(?P<build>\d[^-]*))?
20
- -(?P<pyver>. +?)-(?P<abi>. +?)-(?P<plat>. +?)\.whl$""" ,
19
+ r"""^(?P<namever>(?P<name>[^-] +?)-(?P<ver>[^-] +?))(-(?P<build>\d[^-]*))?
20
+ -(?P<pyver>[^-] +?)-(?P<abi>[^-] +?)-(?P<plat>[^.] +?)\.whl$""" ,
21
21
re .VERBOSE ,
22
22
)
23
23
You can’t perform that action at this time.
0 commit comments