<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Lib/test, branch 3.7</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/test?h=3.7</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/test?h=3.7'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2023-06-05T04:02:03Z</updated>
<entry>
<title>[3.7] gh-102153: Start stripping C0 control and space chars in `urlsplit` (GH-104896)</title>
<updated>2023-06-05T04:02:03Z</updated>
<author>
<name>stratakis</name>
<email>cstratak@redhat.com</email>
</author>
<published>2023-06-05T04:02:03Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=d28bafa2d3e424b6fdcfd7ae7cde8e71d7177369'/>
<id>urn:sha1:d28bafa2d3e424b6fdcfd7ae7cde8e71d7177369</id>
<content type='text'>
`urllib.parse.urlsplit` has already been respecting the WHATWG spec a bit GH-25595.

This adds more sanitizing to respect the "Remove any leading C0 control or space from input" [rule](https://url.spec.whatwg.org/GH-url-parsing:~:text=Remove%20any%20leading%20and%20trailing%20C0%20control%20or%20space%20from%20input.) in response to [CVE-2023-24329](https://nvd.nist.gov/vuln/detail/CVE-2023-24329).

(cherry picked from commit d7f8a5fe07b0ff3a419ccec434cc405b21a5a304)
(cherry picked from commit 2f630e1ce18ad2e07428296532a68b11dc66ad10)
(cherry picked from commit 610cc0ab1b760b2abaac92bd256b96191c46b941)
(cherry picked from commit f48a96a28012d28ae37a2f4587a780a5eb779946)

Co-authored-by: Miss Islington (bot) &lt;31488909+miss-islington@users.noreply.github.com&gt;
Co-authored-by: Illia Volochii &lt;illia.volochii@gmail.com&gt;
Co-authored-by: Gregory P. Smith [Google] &lt;greg@krypto.org&gt;
</content>
</entry>
<entry>
<title>[3.7] gh-99889: Fix directory traversal security flaw in uu.decode() (GH-104333)</title>
<updated>2023-05-27T07:04:28Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2023-05-27T07:04:28Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=1ce801b81ce63867ce382f6e9f56873a844c2bc6'/>
<id>urn:sha1:1ce801b81ce63867ce382f6e9f56873a844c2bc6</id>
<content type='text'>
(cherry picked from commit 0aeda297931820436a50b78f4f7f0597274b5df4)
Co-authored-by: Sam Carroll &lt;70000253+samcarroll42@users.noreply.github.com&gt;</content>
</entry>
<entry>
<title>[3.7] gh-104049: do not expose on-disk location from SimpleHTTPRequestHandler (GH-104122)</title>
<updated>2023-05-27T06:41:46Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2023-05-27T06:41:46Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=4e2dd0c3626649224b87b757a292959d94152a00'/>
<id>urn:sha1:4e2dd0c3626649224b87b757a292959d94152a00</id>
<content type='text'>
Do not expose the local server's on-disk location from `SimpleHTTPRequestHandler` when generating a directory index. (unnecessary information disclosure)

(cherry picked from commit c7c3a60c88de61a79ded9fdaf6bc6a29da4efb9a)

Co-authored-by: Ethan Furman &lt;ethan@stoneleaf.us&gt;
Co-authored-by: Gregory P. Smith &lt;greg@krypto.org&gt;
Co-authored-by: Jelle Zijlstra &lt;jelle.zijlstra@gmail.com&gt;</content>
</entry>
<entry>
<title>[3.7] gh-100001: Omit control characters in http.server stderr logs. (GH-100002) (GH-100034)</title>
<updated>2022-12-05T23:10:10Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2022-12-05T23:10:10Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=b5bdf6a90d0c2a9c12b671340f7776e233ef625a'/>
<id>urn:sha1:b5bdf6a90d0c2a9c12b671340f7776e233ef625a</id>
<content type='text'>
Replace control characters in http.server.BaseHTTPRequestHandler.log_message with an escaped \xHH sequence to avoid causing problems for the terminal the output is printed to.
(cherry picked from commit d8ab0a4dfa48f881b4ac9ab857d2e9de42f72828)

Co-authored-by: Gregory P. Smith &lt;greg@krypto.org&gt;</content>
</entry>
<entry>
<title>[3.7] gh-98433: Fix quadratic time idna decoding. (GH-99092) (GH-99232)</title>
<updated>2022-11-08T03:22:14Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2022-11-08T03:22:14Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=b0b590be9597fd5919228d251812dd54145f70a7'/>
<id>urn:sha1:b0b590be9597fd5919228d251812dd54145f70a7</id>
<content type='text'>
There was an unnecessary quadratic loop in idna decoding. This restores
the behavior to linear.

(cherry picked from commit a6f6c3a3d6f2b580f2d87885c9b8a9350ad7bf15)

Co-authored-by: Miss Islington (bot) &lt;31488909+miss-islington@users.noreply.github.com&gt;
Co-authored-by: Gregory P. Smith &lt;greg@krypto.org&gt;</content>
</entry>
<entry>
<title>[3.7] gh-98517: Fix buffer overflows in _sha3 module (GH-98519) (GH-98528)</title>
<updated>2022-10-22T03:37:54Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2022-10-22T03:37:54Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=8088c90044ba04cd5624b278340ebf934dbee4a5'/>
<id>urn:sha1:8088c90044ba04cd5624b278340ebf934dbee4a5</id>
<content type='text'>
This is a port of the applicable part of XKCP's fix [1] for
CVE-2022-37454 and avoids the segmentation fault and the infinite
loop in the test cases published in [2].

[1]: https://github.com/XKCP/XKCP/commit/fdc6fef075f4e81d6b1bc38364248975e08e340a
[2]: https://mouha.be/sha-3-buffer-overflow/

Regression test added by: Gregory P. Smith [Google LLC] &lt;greg@krypto.org&gt;
(cherry picked from commit 0e4e058602d93b88256ff90bbef501ba20be9dd3)

Co-authored-by: Theo Buehler &lt;botovq@users.noreply.github.com&gt;</content>
</entry>
<entry>
<title>[3.7] gh-96710: Make the test timing more lenient for the int/str DoS regression test. (GH-96717) (#98195)</title>
<updated>2022-10-11T21:14:05Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2022-10-11T21:14:05Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=e7fe11186504ec59937a3364cf62e76848d32361'/>
<id>urn:sha1:e7fe11186504ec59937a3364cf62e76848d32361</id>
<content type='text'>
gh-96710: Make the test timing more lenient for the int/str DoS regression test. (GH-96717)

A regression would still absolutely fail and even a flaky pass isn't
harmful as it'd fail most of the time across our N system test runs.

Windows has a low resolution timer and CI systems are prone to odd
timing so this just gives more leeway to avoid flakiness.
(cherry picked from commit 11e3548fd1d3445ccde971d613633b58d73c3016)

Co-authored-by: Gregory P. Smith &lt;greg@krypto.org&gt;</content>
</entry>
<entry>
<title>[3.7] gh-68966: Make mailcap refuse to match unsafe filenames/types/params (GH-91993) (GH-98191)</title>
<updated>2022-10-11T20:27:14Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2022-10-11T20:27:14Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=6e8e9e7c030b6236ff220362944cba1b93c84bc4'/>
<id>urn:sha1:6e8e9e7c030b6236ff220362944cba1b93c84bc4</id>
<content type='text'>
gh-68966: Make mailcap refuse to match unsafe filenames/types/params (GH-91993)
(cherry picked from commit b9509ba7a9c668b984dab876c7926fe1dc5aa0ba)

Co-authored-by: Petr Viktorin &lt;encukou@gmail.com&gt;</content>
</entry>
<entry>
<title>[3.7] gh-97616: list_resize() checks for integer overflow (GH-97617) (#97629)</title>
<updated>2022-10-05T21:55:53Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2022-10-05T21:55:53Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=fd82f16c1e4d9a0661e9a2250004032797652e69'/>
<id>urn:sha1:fd82f16c1e4d9a0661e9a2250004032797652e69</id>
<content type='text'>
Fix multiplying a list by an integer (list *= int): detect the
integer overflow when the new allocated length is close to the
maximum size.  Issue reported by Jordan Limor.

list_resize() now checks for integer overflow before multiplying the
new allocated length by the list item size (sizeof(PyObject*)).
(cherry picked from commit a5f092f3c469b674b8d9ccbd4e4377230c9ac7cf)

Co-authored-by: Victor Stinner &lt;vstinner@python.org&gt;</content>
</entry>
<entry>
<title>[3.7] gh-96848: Fix -X int_max_str_digits option parsing (#96988) (#97576)</title>
<updated>2022-10-05T21:55:28Z</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2022-10-05T21:55:28Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=98884f523d783ecd9933c1ca52d80fbbd7d6bdf5'/>
<id>urn:sha1:98884f523d783ecd9933c1ca52d80fbbd7d6bdf5</id>
<content type='text'>
Fix command line parsing: reject "-X int_max_str_digits" option with
no value (invalid) when the PYTHONINTMAXSTRDIGITS environment
variable is set to a valid limit.

(cherry picked from commit 41351662bcd21672d8ccfa62fe44d72027e6bcf8)</content>
</entry>
</feed>
