Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(deps): bump pyo3 from 0.22.2 to 0.22.4 (#3)
Bumps [pyo3](https://github.com/pyo3/pyo3) from 0.22.2 to 0.22.4. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/pyo3/pyo3/releases">pyo3's releases</a>.</em></p> <blockquote> <h2>PyO3 0.22.4</h2> <p><em><strong>This release is a security fix for PyO3 0.22.0 through 0.22.3.</strong></em></p> <p>The <code>PyWeakrefMethods</code> trait functions for reading borrowed values from Python weak references have been identified as unsound, because they did not account for the possibility the last strong reference could be cleared at any time, leading the borrowed value to be dangling and risk of use-after-free.</p> <p>PyO3 0.22.4 protects against this issue by making these methods permanently leak strong references. The methods are also marked deprecated and will be removed in PyO3 0.23. Users should switch to use the use <code>PyWeakrefMethods</code> functions which return owned references (the deprecation messages indicate the appropriate upgrade paths).</p> <p>These functions were added in PyO3 0.22.0; all versions from 0.22.0 through 0.22.3 have been yanked.</p> <p>Aside from the security fix, PyO3 0.22.4 contains a number of other bugfixes, including:</p> <ul> <li>A fix for cases where <code>__traverse__</code> functions of base types were not called when using <code>#[pyclass(extends = ...)]</code></li> <li>A fix for a regression in 0.22.3 where PyO3 generated code would trigger compile failures with crates using <code>#![forbid(unsafe_code)]</code></li> </ul> <p>Thank you to the following contributors for the improvements:</p> <p><a href="https://github.com/davidhewitt"><code>@davidhewitt</code></a> <a href="https://github.com/ngoldbaum"><code>@ngoldbaum</code></a> <a href="https://github.com/exg"><code>@exg</code></a> <a href="https://github.com/Icxolu"><code>@Icxolu</code></a></p> <h2>PyO3 0.22.3</h2> <p>This release contains a number of quality improvements building upon PyO3 0.22.2.</p> <p>Python function calls (using <code>.call0()</code>, <code>.call1(args)</code> and <code>.call(args, kwargs)</code>) will now make use of the "vectorcall" calling conventions where possible, which can reduce overheads in many cases.</p> <p>There have been several fix-ups to PyO3's FFI definitions. A new <code>pyo3::ffi::compat</code> namespace has been added which offers some backwards-compatible implementations of Python APIs otherwise normally only available on recent Pythons.</p> <p>There have been numerous other bug-fixes and minor tweaks to improve user experience.</p> <p>Thank you to the following contributors for the improvements:</p> <p><a href="https://github.com/birkenfeld"><code>@birkenfeld</code></a> <a href="https://github.com/ChayimFriedman2"><code>@ChayimFriedman2</code></a> <a href="https://github.com/csernazs"><code>@csernazs</code></a> <a href="https://github.com/davidhewitt"><code>@davidhewitt</code></a> <a href="https://github.com/Icxolu"><code>@Icxolu</code></a> <a href="https://github.com/jakelishman"><code>@jakelishman</code></a> <a href="https://github.com/LilyFoote"><code>@LilyFoote</code></a> <a href="https://github.com/ngoldbaum"><code>@ngoldbaum</code></a> <a href="https://github.com/Zyell"><code>@Zyell</code></a></p> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/PyO3/pyo3/blob/main/CHANGELOG.md">pyo3's changelog</a>.</em></p> <blockquote> <h2>[0.22.4] - 2024-10-12</h2> <h3>Added</h3> <ul> <li>Add FFI definition <code>PyWeakref_GetRef</code> and <code>compat::PyWeakref_GetRef</code>. <a href="https://redirect.github.com/PyO3/pyo3/pull/4528">#4528</a></li> </ul> <h3>Changed</h3> <ul> <li>Deprecate <code>_borrowed</code> methods on <code>PyWeakRef</code> and <code>PyWeakrefProxy</code> (just use the owning forms). <a href="https://redirect.github.com/PyO3/pyo3/pull/4590">#4590</a></li> </ul> <h3>Fixed</h3> <ul> <li>Revert removal of private FFI function <code>_PyLong_NumBits</code> on Python 3.13 and later. <a href="https://redirect.github.com/PyO3/pyo3/pull/4450">#4450</a></li> <li>Fix <code>__traverse__</code> functions for base classes not being called by subclasses created with <code>#[pyclass(extends = ...)]</code>. <a href="https://redirect.github.com/PyO3/pyo3/pull/4563">#4563</a></li> <li>Fix regression in 0.22.3 failing compiles under <code>#![forbid(unsafe_code)]</code>. <a href="https://redirect.github.com/PyO3/pyo3/pull/4574">#4574</a></li> <li>Fix <code>create_exception</code> macro triggering lint and compile errors due to interaction with <code>gil-refs</code> feature. <a href="https://redirect.github.com/PyO3/pyo3/pull/4589">#4589</a></li> <li>Workaround possible use-after-free in <code>_borrowed</code> methods on <code>PyWeakRef</code> and <code>PyWeakrefProxy</code> by leaking their contents. <a href="https://redirect.github.com/PyO3/pyo3/pull/4590">#4590</a></li> <li>Fix crash calling <code>PyType_GetSlot</code> on static types before Python 3.10. <a href="https://redirect.github.com/PyO3/pyo3/pull/4599">#4599</a></li> </ul> <h2>[0.22.3] - 2024-09-15</h2> <h3>Added</h3> <ul> <li>Add <code>pyo3::ffi::compat</code> namespace with compatibility shims for C API functions added in recent versions of Python.</li> <li>Add FFI definition <code>PyDict_GetItemRef</code> on Python 3.13 and newer, and <code>compat::PyDict_GetItemRef</code> for all versions. <a href="https://redirect.github.com/PyO3/pyo3/pull/4355">#4355</a></li> <li>Add FFI definition <code>PyList_GetItemRef</code> on Python 3.13 and newer, and <code>pyo3_ffi::compat::PyList_GetItemRef</code> for all versions. <a href="https://redirect.github.com/PyO3/pyo3/pull/4410">#4410</a></li> <li>Add FFI definitions <code>compat::Py_NewRef</code> and <code>compat::Py_XNewRef</code>. <a href="https://redirect.github.com/PyO3/pyo3/pull/4445">#4445</a></li> <li>Add FFI definitions <code>compat::PyObject_CallNoArgs</code> and <code>compat::PyObject_CallMethodNoArgs</code>. <a href="https://redirect.github.com/PyO3/pyo3/pull/4461">#4461</a></li> <li>Add <code>GilOnceCell<Py<T>>::clone_ref</code>. <a href="https://redirect.github.com/PyO3/pyo3/pull/4511">#4511</a></li> </ul> <h3>Changed</h3> <ul> <li>Improve error messages for <code>#[pyfunction]</code> defined inside <code>#[pymethods]</code>. <a href="https://redirect.github.com/PyO3/pyo3/pull/4349">#4349</a></li> <li>Improve performance of calls to Python by using the vectorcall calling convention where possible. <a href="https://redirect.github.com/PyO3/pyo3/pull/4456">#4456</a></li> <li>Mention the type name in the exception message when trying to instantiate a class with no constructor defined. <a href="https://redirect.github.com/PyO3/pyo3/pull/4481">#4481</a></li> </ul> <h3>Removed</h3> <ul> <li>Remove private FFI definition <code>_Py_PackageContext</code>. <a href="https://redirect.github.com/PyO3/pyo3/pull/4420">#4420</a></li> </ul> <h3>Fixed</h3> <ul> <li>Fix compile failure in declarative <code>#[pymodule]</code> under presence of <code>#![no_implicit_prelude]</code>. <a href="https://redirect.github.com/PyO3/pyo3/pull/4328">#4328</a></li> <li>Fix use of borrowed reference in <code>PyDict::get_item</code> (unsafe in free-threaded Python). <a href="https://redirect.github.com/PyO3/pyo3/pull/4355">#4355</a></li> <li>Fix <code>#[pyclass(eq)]</code> macro hygiene issues for structs and enums. <a href="https://redirect.github.com/PyO3/pyo3/pull/4359">#4359</a></li> <li>Fix hygiene/span issues of <code>#[pyfunction]</code> and <code>#[pymethods]</code> generated code which affected expansion in <code>macro_rules</code> context. <a href="https://redirect.github.com/PyO3/pyo3/pull/4382">#4382</a></li> <li>Fix <code>unsafe_code</code> lint error in <code>#[pyclass]</code> generated code. <a href="https://redirect.github.com/PyO3/pyo3/pull/4396">#4396</a></li> <li>Fix async functions returning a tuple only returning the first element to Python. <a href="https://redirect.github.com/PyO3/pyo3/pull/4407">#4407</a></li> <li>Fix use of borrowed reference in <code>PyList::get_item</code> (unsafe in free-threaded Python). <a href="https://redirect.github.com/PyO3/pyo3/pull/4410">#4410</a></li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/PyO3/pyo3/commit/dff972320287043777fd77063175d23879fef90f"><code>dff9723</code></a> release: 0.22.4</li> <li><a href="https://github.com/PyO3/pyo3/commit/3330bf2641144e2dc4d2730470af4d8623001c60"><code>3330bf2</code></a> fix garbage collection in inheritance cases (<a href="https://redirect.github.com/pyo3/pyo3/issues/4563">#4563</a>)</li> <li><a href="https://github.com/PyO3/pyo3/commit/8b23397c38a5ac7c3631d10ecdb60e249799d736"><code>8b23397</code></a> ci: pypy 3.7 macos on x64 still</li> <li><a href="https://github.com/PyO3/pyo3/commit/ce63713a9dda4a90ef2ab6ff7925751300561e11"><code>ce63713</code></a> ci: run benchmarks on ubuntu 22.04 (<a href="https://redirect.github.com/pyo3/pyo3/issues/4609">#4609</a>)</li> <li><a href="https://github.com/PyO3/pyo3/commit/b1173f5d434071300c48a93520732d9de1c81ddd"><code>b1173f5</code></a> ci: fix more ubuntu-24.04 failures (<a href="https://redirect.github.com/pyo3/pyo3/issues/4610">#4610</a>)</li> <li><a href="https://github.com/PyO3/pyo3/commit/7371028d3fe9bba440e683be8f8b3a4957ad166a"><code>7371028</code></a> ci: move more jobs to macOS arm (<a href="https://redirect.github.com/pyo3/pyo3/issues/4600">#4600</a>)</li> <li><a href="https://github.com/PyO3/pyo3/commit/8e3dc4524875b4b6b427373e7c42d7f0e22e9258"><code>8e3dc45</code></a> avoid calling <code>PyType_GetSlot</code> on static types before Python 3.10 (<a href="https://redirect.github.com/pyo3/pyo3/issues/4599">#4599</a>)</li> <li><a href="https://github.com/PyO3/pyo3/commit/969300d73d9da10e74c311ba3454ce2df4583b31"><code>969300d</code></a> leak references for safety in <code>PyWeakRefMethods::upgrade_borrowed</code> (<a href="https://redirect.github.com/pyo3/pyo3/issues/4590">#4590</a>)</li> <li><a href="https://github.com/PyO3/pyo3/commit/d01fbab77e4edb7c086c5a9407d866d5f60a8e5f"><code>d01fbab</code></a> fix case of gil-refs feature breaking <code>create_exception!</code> macro (<a href="https://redirect.github.com/pyo3/pyo3/issues/4589">#4589</a>)</li> <li><a href="https://github.com/PyO3/pyo3/commit/9a641f7380a92c1a94190a319a903c8f40045ded"><code>9a641f7</code></a> fix unintentional <code>unsafe_code</code> trigger (<a href="https://redirect.github.com/pyo3/pyo3/issues/4574">#4574</a>)</li> <li>Additional commits viewable in <a href="https://github.com/pyo3/pyo3/compare/v0.22.2...v0.22.4">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=pyo3&package-manager=cargo&previous-version=0.22.2&new-version=0.22.4)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/statsig-io/statsig-server-core/network/alerts). </details>
- Loading branch information