<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Python, branch 3.8</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Python?h=3.8</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Python?h=3.8'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2023-06-05T15:41:14Z</updated>
<entry>
<title>[3.8] gh-105184: document that marshal functions can fail and need to be checked with PyErr_Occurred (GH-105185) (#105222)</title>
<updated>2023-06-05T15:41:14Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2023-06-05T15:41:14Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=c43c50e07ec35e4f66b6893fd940b8e098a12eb2'/>
<id>urn:sha1:c43c50e07ec35e4f66b6893fd940b8e098a12eb2</id>
<content type='text'>
(cherry picked from commit ee26ca13a129da8cf549409d0a1b2e892ff2b4ec)

Co-authored-by: Irit Katriel &lt;1055913+iritkatriel@users.noreply.github.com&gt;</content>
</entry>
<entry>
<title>[3.8] Correct CVE-2020-10735 documentation (GH-100306) (#100698)</title>
<updated>2023-01-20T22:20:09Z</updated>
<author>
<name>Gregory P. Smith</name>
<email>greg@krypto.org</email>
</author>
<published>2023-01-20T22:20:09Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=594ba1901cd0ad49e353bc10a031be439856ccbf'/>
<id>urn:sha1:594ba1901cd0ad49e353bc10a031be439856ccbf</id>
<content type='text'>
(cherry picked from commit 1cf3d78c92eb07dc09d15cc2e773b0b1b9436825)
(cherry picked from commit 88fe8d701af3316c8869ea18ea1c7acec6f68c04)

Co-authored-by: Jeremy Paige &lt;ucodery@gmail.com&gt;
Co-authored-by: Gregory P. Smith &lt;greg@krypto.org&gt;</content>
</entry>
<entry>
<title>[3.8] Update copyright years to 2023. (gh-100852)</title>
<updated>2023-01-08T23:00:31Z</updated>
<author>
<name>Benjamin Peterson</name>
<email>benjamin@python.org</email>
</author>
<published>2023-01-08T23:00:31Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=30afa75ad8deca57a2bd0218f8fd6b3437c89507'/>
<id>urn:sha1:30afa75ad8deca57a2bd0218f8fd6b3437c89507</id>
<content type='text'>
* [3.8] Update copyright years to 2023. (gh-100848).
(cherry picked from commit 11f99323c2ae0ec428c370a335695e3d8d4afc1d)

Co-authored-by: Benjamin Peterson &lt;benjamin@python.org&gt;

* Update additional copyright years to 2023.

Co-authored-by: Ned Deily &lt;nad@python.org&gt;</content>
</entry>
<entry>
<title>[3.8] gh-87604: Avoid publishing list of active per-interpreter audit hooks via the gc module (GH-99373) (GH-99661)</title>
<updated>2022-11-21T21:06:01Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2022-11-21T21:06:01Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=b50b6f95a1afacf76cc6ec3da4229cdeb33a7cf6'/>
<id>urn:sha1:b50b6f95a1afacf76cc6ec3da4229cdeb33a7cf6</id>
<content type='text'>
(cherry picked from commit 7b98207aa46bd637d07a7c4a84e998726b74acde)

Co-authored-by: Steve Dower &lt;steve.dower@python.org&gt;
</content>
</entry>
<entry>
<title>[3.8] gh-96848: Fix -X int_max_str_digits option parsing (GH-96988) (GH-97575)</title>
<updated>2022-10-04T18:57:06Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2022-10-04T18:57:06Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=18a0cdb2dc86452d8d75aac7e9bb610270979411'/>
<id>urn:sha1:18a0cdb2dc86452d8d75aac7e9bb610270979411</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)

Co-authored-by: Victor Stinner &lt;vstinner@python.org&gt;</content>
</entry>
<entry>
<title>[3.8] gh-95778: CVE-2020-10735: Prevent DoS by very large int() (#96503)</title>
<updated>2022-09-05T20:26:09Z</updated>
<author>
<name>Gregory P. Smith</name>
<email>greg@krypto.org</email>
</author>
<published>2022-09-05T20:26:09Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=b5e331fdb38684808ffc540d53e8595bdc408b89'/>
<id>urn:sha1:b5e331fdb38684808ffc540d53e8595bdc408b89</id>
<content type='text'>
* Correctly pre-check for int-to-str conversion

Converting a large enough `int` to a decimal string raises `ValueError` as expected. However, the raise comes _after_ the quadratic-time base-conversion algorithm has run to completion. For effective DOS prevention, we need some kind of check before entering the quadratic-time loop. Oops! =)

The quick fix: essentially we catch _most_ values that exceed the threshold up front. Those that slip through will still be on the small side (read: sufficiently fast), and will get caught by the existing check so that the limit remains exact.

The justification for the current check. The C code check is:
```c
max_str_digits / (3 * PyLong_SHIFT) &lt;= (size_a - 11) / 10
```

In GitHub markdown math-speak, writing $M$ for `max_str_digits`, $L$ for `PyLong_SHIFT` and $s$ for `size_a`, that check is:
$$\left\lfloor\frac{M}{3L}\right\rfloor \le \left\lfloor\frac{s - 11}{10}\right\rfloor$$

From this it follows that
$$\frac{M}{3L} &lt; \frac{s-1}{10}$$
hence that
$$\frac{L(s-1)}{M} &gt; \frac{10}{3} &gt; \log_2(10).$$
So
$$2^{L(s-1)} &gt; 10^M.$$
But our input integer $a$ satisfies $|a| \ge 2^{L(s-1)}$, so $|a|$ is larger than $10^M$. This shows that we don't accidentally capture anything _below_ the intended limit in the check.

&lt;!-- gh-issue-number: gh-95778 --&gt;
* Issue: gh-95778
&lt;!-- /gh-issue-number --&gt;

Co-authored-by: Gregory P. Smith [Google LLC] &lt;greg@krypto.org&gt;
Co-authored-by: Christian Heimes &lt;christian@python.org&gt;
Co-authored-by: Mark Dickinson &lt;dickinsm@gmail.com&gt;</content>
</entry>
<entry>
<title>[3.8] gh-93065: Fix HAMT to iterate correctly over 7-level deep trees (GH-93066) (#93148)</title>
<updated>2022-05-24T09:26:25Z</updated>
<author>
<name>Łukasz Langa</name>
<email>lukasz@langa.pl</email>
</author>
<published>2022-05-24T09:26:25Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=6d4927ad1383e8bb8bda6659d24b6d05094a7b99'/>
<id>urn:sha1:6d4927ad1383e8bb8bda6659d24b6d05094a7b99</id>
<content type='text'>
Also while there, clarify a few things about why we reduce the hash to 32 bits.

Co-authored-by: Eli Libman &lt;eli@hyro.ai&gt;
Co-authored-by: Yury Selivanov &lt;yury@edgedb.com&gt;
Co-authored-by: Łukasz Langa &lt;lukasz@langa.pl&gt;

(cherry picked from commit c1f5c903a7e4ed27190488f4e33b00d3c3d952e5)
</content>
</entry>
<entry>
<title>Update copyright year to 2022. (GH-30335) (GH-31478)</title>
<updated>2022-03-08T09:35:32Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2022-03-08T09:35:32Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=28ad79e732f8bba7b7cf02e006c1e36b88adeefd'/>
<id>urn:sha1:28ad79e732f8bba7b7cf02e006c1e36b88adeefd</id>
<content type='text'>
Automerge-Triggered-By: GH:benjaminp
(cherry picked from commit ba00f0d93a4aea85ae8089f139856a7c450584d7)

Co-authored-by: Benjamin Peterson &lt;benjamin@python.org&gt;</content>
</entry>
<entry>
<title>bpo-44849: Fix os.set_inheritable() on FreeBSD 14 with O_PATH (GH-27623) (GH-28978)</title>
<updated>2021-10-19T19:15:29Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2021-10-19T19:15:29Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=67e10be3fee7c69d4ece26e75a0b7a84dab68ce5'/>
<id>urn:sha1:67e10be3fee7c69d4ece26e75a0b7a84dab68ce5</id>
<content type='text'>
Fix the os.set_inheritable() function on FreeBSD 14 for file
descriptor opened with the O_PATH flag: ignore the EBADF error on
ioctl(), fallback on the fcntl() implementation.
(cherry picked from commit c24896c0e3b32c8a9f614ef51366007b67d5c665)

Co-authored-by: Victor Stinner &lt;vstinner@python.org&gt;</content>
</entry>
<entry>
<title>bpo-44856: Possible reference leak in error paths of update_bases() and __build_class__ (GH-27647) (GH-27652)</title>
<updated>2021-08-07T11:17:16Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2021-08-07T11:17:16Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=0a423096e8d8bbe22c0fb0904f7520387a8d4247'/>
<id>urn:sha1:0a423096e8d8bbe22c0fb0904f7520387a8d4247</id>
<content type='text'>
(cherry picked from commit a40675c659cd8c0699f85ee9ac31660f93f8c2f5)

Co-authored-by: Pablo Galindo Salgado &lt;Pablogsal@gmail.com&gt;</content>
</entry>
</feed>
