CVE-2022-40899 安全更新:Python Charmers Future 0.18.2版本及之前版本安全漏洞.

This commit is contained in:
huang 2023-02-21 14:17:36 +08:00
parent 499a6c756f
commit 6dea783a98
2 changed files with 18 additions and 6 deletions

6
debian/changelog vendored
View File

@ -1,3 +1,9 @@
pytohn-future (0.18.2-ok2) yangtze; urgency=medium
* zfj_h CVE-2022-40899 安全更新Python Charmers Future 0.18.2版本及之前版本安全漏洞.
-- huang <hrz@bupt.edu.cn> Tue, 21 Feb 2023 14:14:10 +0800
python-future (0.18.2-ok1) yangtze; urgency=medium
* Build for openKylin.

View File

@ -225,10 +225,14 @@ LOOSE_HTTP_DATE_RE = re.compile(
(?::(\d\d))? # optional seconds
)? # optional clock
\s*
([-+]?\d{2,4}|(?![APap][Mm]\b)[A-Za-z]+)? # timezone
(?:
([-+]?\d{2,4}|(?![APap][Mm]\b)[A-Za-z]+) # timezone
\s*
(?:\(\w+\))? # ASCII representation of timezone in parens.
\s*$""", re.X | re.ASCII)
)?
(?:
\(\w+\) # ASCII representation of timezone in parens.
\s*
)?$""", re.X | re.ASCII)
def http2time(text):
"""Returns time in seconds since epoch of time represented by a string.
@ -298,9 +302,11 @@ ISO_DATE_RE = re.compile(
(?::?(\d\d(?:\.\d*)?))? # optional seconds (and fractional)
)? # optional clock
\s*
([-+]?\d\d?:?(:?\d\d)?
|Z|z)? # timezone (Z is "zero meridian", i.e. GMT)
\s*$""", re.X | re. ASCII)
(?:
([-+]?\d\d?:?(:?\d\d)?
|Z|z) # timezone (Z is "zero meridian", i.e. GMT)
\s*
)?$""", re.X | re. ASCII)
def iso2time(text):
"""
As for http2time, but parses the ISO 8601 formats: