<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/cpython-git.git/Modules, branch 3.10</title>
<subtitle>github.com: python/cpython.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/'/>
<entry>
<title>[3.10] GH-95494: Fix transport EOF handling in OpenSSL 3.0 (GH-95495) (#103007)</title>
<updated>2023-03-27T14:14:24+00:00</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2023-03-27T14:14:24+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=b5bf6c1b2275bfa93e77989bec0711c3e97932a6'/>
<id>b5bf6c1b2275bfa93e77989bec0711c3e97932a6</id>
<content type='text'>
GH-25309 enabled SSL_OP_IGNORE_UNEXPECTED_EOF by default, with a comment
that it restores OpenSSL 1.1.1 behavior, but this wasn't quite right.
That option causes OpenSSL to treat transport EOF as the same as
close_notify (i.e. SSL_ERROR_ZERO_RETURN), whereas Python actually has
distinct SSLEOFError and SSLZeroReturnError exceptions. (The latter is
usually mapped to a zero return from read.) In OpenSSL 1.1.1, the ssl
module would raise them for transport EOF and close_notify,
respectively. In OpenSSL 3.0, both act like close_notify.

Fix this by, instead, just detecting SSL_R_UNEXPECTED_EOF_WHILE_READING
and mapping that to the other exception type.

There doesn't seem to have been any unit test of this error, so fill in
the missing one. This had to be done with the BIO path because it's
actually slightly tricky to simulate a transport EOF with Python's fd
based APIs. (If you instruct the server to close the socket, it gets
confused, probably because the server's SSL object is still referencing
the now dead fd?)
(cherry picked from commit 420bbb783b43216cc897dc8914851899db37a31d)

Co-authored-by: David Benjamin &lt;davidben@google.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
GH-25309 enabled SSL_OP_IGNORE_UNEXPECTED_EOF by default, with a comment
that it restores OpenSSL 1.1.1 behavior, but this wasn't quite right.
That option causes OpenSSL to treat transport EOF as the same as
close_notify (i.e. SSL_ERROR_ZERO_RETURN), whereas Python actually has
distinct SSLEOFError and SSLZeroReturnError exceptions. (The latter is
usually mapped to a zero return from read.) In OpenSSL 1.1.1, the ssl
module would raise them for transport EOF and close_notify,
respectively. In OpenSSL 3.0, both act like close_notify.

Fix this by, instead, just detecting SSL_R_UNEXPECTED_EOF_WHILE_READING
and mapping that to the other exception type.

There doesn't seem to have been any unit test of this error, so fill in
the missing one. This had to be done with the BIO path because it's
actually slightly tricky to simulate a transport EOF with Python's fd
based APIs. (If you instruct the server to close the socket, it gets
confused, probably because the server's SSL object is still referencing
the now dead fd?)
(cherry picked from commit 420bbb783b43216cc897dc8914851899db37a31d)

Co-authored-by: David Benjamin &lt;davidben@google.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>[3.10] gh-102027: Fix macro name (GH-102124) (#102917)</title>
<updated>2023-03-24T12:40:32+00:00</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2023-03-24T12:40:32+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=581dd8caba692f58087bb7beca7fc42f2eddfdda'/>
<id>581dd8caba692f58087bb7beca7fc42f2eddfdda</id>
<content type='text'>
gh-102027: Fix macro name (GH-102124)

This fixes the ssse3 / sse2 detection when sse4 is available.

(cherry picked from commit ea93bde4ece139d4152a59f2c38aa6568559447c)

Co-authored-by: Max Bachmann &lt;kontakt@maxbachmann.de&gt;
Co-authored-by: Oleg Iarygin &lt;oleg@arhadthedev.net&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
gh-102027: Fix macro name (GH-102124)

This fixes the ssse3 / sse2 detection when sse4 is available.

(cherry picked from commit ea93bde4ece139d4152a59f2c38aa6568559447c)

Co-authored-by: Max Bachmann &lt;kontakt@maxbachmann.de&gt;
Co-authored-by: Oleg Iarygin &lt;oleg@arhadthedev.net&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>[3.10] gh-96931: Fix incorrect results in ssl.SSLSocket.shared_ciphers (GH-96932) (#102919)</title>
<updated>2023-03-24T12:33:32+00:00</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2023-03-24T12:33:32+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=0a2b63f6adfa010fa9b18c1deaac4e738bb99c84'/>
<id>0a2b63f6adfa010fa9b18c1deaac4e738bb99c84</id>
<content type='text'>
gh-96931: Fix incorrect results in ssl.SSLSocket.shared_ciphers (GH-96932)
(cherry picked from commit af9c34f6ef8dceb21871206eb3e4d350f6e3d3dc)

Co-authored-by: Benjamin Fogle &lt;benfogle@gmail.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
gh-96931: Fix incorrect results in ssl.SSLSocket.shared_ciphers (GH-96932)
(cherry picked from commit af9c34f6ef8dceb21871206eb3e4d350f6e3d3dc)

Co-authored-by: Benjamin Fogle &lt;benfogle@gmail.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>GH-100989: Revert Improve the accuracy of collections.deque docstrings (GH-102979)</title>
<updated>2023-03-24T01:10:34+00:00</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2023-03-24T01:10:34+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=206c2b1b123f82a8edfe8619756b1f1b77d54feb'/>
<id>206c2b1b123f82a8edfe8619756b1f1b77d54feb</id>
<content type='text'>
(cherry picked from commit 7f01a11199864bcf230b243b99e8a51e9044675d)

Co-authored-by: Raymond Hettinger &lt;rhettinger@users.noreply.github.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
(cherry picked from commit 7f01a11199864bcf230b243b99e8a51e9044675d)

Co-authored-by: Raymond Hettinger &lt;rhettinger@users.noreply.github.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>gh-100989: Improve the accuracy of collections.deque docstrings (GH-100990)</title>
<updated>2023-03-22T12:39:45+00:00</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2023-03-22T12:39:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=100da7c31aeb3888962bf33c8cc3594272964815'/>
<id>100da7c31aeb3888962bf33c8cc3594272964815</id>
<content type='text'>
(cherry picked from commit c74073657e32b8872f91b3bbe1efa9af20adbea9)

Co-authored-by: Timo Ludwig &lt;ti.ludwig@web.de&gt;
Co-authored-by: C.A.M. Gerlach &lt;CAM.Gerlach@Gerlach.CAM&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
(cherry picked from commit c74073657e32b8872f91b3bbe1efa9af20adbea9)

Co-authored-by: Timo Ludwig &lt;ti.ludwig@web.de&gt;
Co-authored-by: C.A.M. Gerlach &lt;CAM.Gerlach@Gerlach.CAM&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>[3.10] GH-102397: Fix segfault from race condition in signal handling (GH-102399) (#102527)</title>
<updated>2023-03-08T08:21:13+00:00</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2023-03-08T08:21:13+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=c4fb41816f6045dd608d4d97266f16feaf974b83'/>
<id>c4fb41816f6045dd608d4d97266f16feaf974b83</id>
<content type='text'>
GH-102397: Fix segfault from race condition in signal handling (GH-102399)
(cherry picked from commit 1a84cc007e207f2dd61f86a7fc3d86632fdce72f)

Co-authored-by: Kumar Aditya &lt;59607654+kumaraditya303@users.noreply.github.com&gt;
Co-authored-by: Gregory P. Smith &lt;greg@krypto.org&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
GH-102397: Fix segfault from race condition in signal handling (GH-102399)
(cherry picked from commit 1a84cc007e207f2dd61f86a7fc3d86632fdce72f)

Co-authored-by: Kumar Aditya &lt;59607654+kumaraditya303@users.noreply.github.com&gt;
Co-authored-by: Gregory P. Smith &lt;greg@krypto.org&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>[3.10] gh-102179: Fix `os.dup2` error reporting for negative fds (GH-102180) (#102419)</title>
<updated>2023-03-04T15:27:32+00:00</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2023-03-04T15:27:32+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=925ebfbfd22ac2ba3315ff427b9739d1e1907664'/>
<id>925ebfbfd22ac2ba3315ff427b9739d1e1907664</id>
<content type='text'>
* gh-102179: Fix `os.dup2` error reporting for negative fds (GH-102180)
(cherry picked from commit c2bd55d26f8eb2850eb9f9026b5d7f0ed1420b65)

Co-authored-by: Alexey Izbyshev &lt;izbyshev@ispras.ru&gt;
Co-authored-by: Kumar Aditya &lt;59607654+kumaraditya303@users.noreply.github.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* gh-102179: Fix `os.dup2` error reporting for negative fds (GH-102180)
(cherry picked from commit c2bd55d26f8eb2850eb9f9026b5d7f0ed1420b65)

Co-authored-by: Alexey Izbyshev &lt;izbyshev@ispras.ru&gt;
Co-authored-by: Kumar Aditya &lt;59607654+kumaraditya303@users.noreply.github.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>[3.10] Add missing 'is' to `cmath.log()` docstring (GH-102049) (#102280)</title>
<updated>2023-02-26T14:56:10+00:00</updated>
<author>
<name>Mark Dickinson</name>
<email>dickinsm@gmail.com</email>
</author>
<published>2023-02-26T14:56:10+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=8e9ffd956aaec3aa82bb91a4fa0dd390209013f2'/>
<id>8e9ffd956aaec3aa82bb91a4fa0dd390209013f2</id>
<content type='text'>
Fix missing 'is' in cmath.log() docstring.
(cherry picked from commit 71f614ef2a3d66213b9cae807cbbc1ed03741221)

Co-authored-by: Owain Davies &lt;116417456+OTheDev@users.noreply.github.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix missing 'is' in cmath.log() docstring.
(cherry picked from commit 71f614ef2a3d66213b9cae807cbbc1ed03741221)

Co-authored-by: Owain Davies &lt;116417456+OTheDev@users.noreply.github.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>gh-101372: Fix unicodedata.is_normalized to properly handle the UCD 3… (gh-101388)</title>
<updated>2023-02-06T10:32:58+00:00</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2023-02-06T10:32:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=33250297411d38c16e0a4df1831edd17e5de8616'/>
<id>33250297411d38c16e0a4df1831edd17e5de8616</id>
<content type='text'>
(cherry picked from commit 9ef7e75434587fc8f167d73eee5dd9bdca62714b)

Co-authored-by: Dong-hee Na &lt;donghee.na@python.org&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
(cherry picked from commit 9ef7e75434587fc8f167d73eee5dd9bdca62714b)

Co-authored-by: Dong-hee Na &lt;donghee.na@python.org&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>[3.10] [3.11] gh-99952: fix refcount issues in ctypes.Structure from_param() result (GH-101339) (#101340)</title>
<updated>2023-02-04T20:09:29+00:00</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2023-02-04T20:09:29+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=b134978467409eb1a7ed0d5ca4a656fab1927919'/>
<id>b134978467409eb1a7ed0d5ca4a656fab1927919</id>
<content type='text'>
[3.11] gh-99952: [ctypes] fix refcount issues in from_param() result. (GH-100169)

Fixes a reference counting issue with `ctypes.Structure` when a `from_param()` method call is used and the structure size is larger than a C pointer `sizeof(void*)`.

This problem existed for a very long time, but became more apparent in 3.8+ by change likely due to garbage collection cleanup timing changes..
(cherry picked from commit dfad678d7024ab86d265d84ed45999e031a03691)

(cherry picked from commit fa7c37af4936abfe34aa261d6ed9703bc5842ad4)

Co-authored-by: Gregory P. Smith &lt;greg@krypto.org&gt;
Co-authored-by: Yukihiro Nakadaira &lt;yukihiro.nakadaira@gmail.com&gt;
Co-authored-by: Kumar Aditya &lt;59607654+kumaraditya303@users.noreply.github.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
[3.11] gh-99952: [ctypes] fix refcount issues in from_param() result. (GH-100169)

Fixes a reference counting issue with `ctypes.Structure` when a `from_param()` method call is used and the structure size is larger than a C pointer `sizeof(void*)`.

This problem existed for a very long time, but became more apparent in 3.8+ by change likely due to garbage collection cleanup timing changes..
(cherry picked from commit dfad678d7024ab86d265d84ed45999e031a03691)

(cherry picked from commit fa7c37af4936abfe34aa261d6ed9703bc5842ad4)

Co-authored-by: Gregory P. Smith &lt;greg@krypto.org&gt;
Co-authored-by: Yukihiro Nakadaira &lt;yukihiro.nakadaira@gmail.com&gt;
Co-authored-by: Kumar Aditya &lt;59607654+kumaraditya303@users.noreply.github.com&gt;</pre>
</div>
</content>
</entry>
</feed>
