Skip to content

Commit

Permalink
Bump pyo3 from 0.22.3 to 0.22.5 (#122)
Browse files Browse the repository at this point in the history
Bumps [pyo3](https://github.com/pyo3/pyo3) from 0.22.3 to 0.22.5.
<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.5</h2>
<p>This release fixes a compile regression from 0.22.4 where
<code>#[pymethods]</code> with name <code>__clear__</code> and
<code>clear</code> would generate code with a naming conflict. Thanks <a
href="https://github.com/awolverp"><code>@​awolverp</code></a> for the
report and <a href="https://github.com/Icxolu"><code>@​Icxolu</code></a>
for the fix!</p>
<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>
</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.5] - 2024-10-15</h2>
<h3>Fixed</h3>
<ul>
<li>Fix regression in 0.22.4 of naming collision in
<code>__clear__</code> slot and <code>clear</code> method generated
code. <a
href="https://redirect.github.com/PyO3/pyo3/pull/4619">#4619</a></li>
</ul>
<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>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>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/PyO3/pyo3/commit/4c88e9afe8ece2b50af7e0dc0d7650c838f444ac"><code>4c88e9a</code></a>
release: 0.22.5</li>
<li><a
href="https://github.com/PyO3/pyo3/commit/8f6464e5ee65c89b993307b23f01878045a1769c"><code>8f6464e</code></a>
fix <code>__clear__</code> slot naming collision with <code>clear</code>
method (<a
href="https://redirect.github.com/pyo3/pyo3/issues/4619">#4619</a>)</li>
<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>Additional commits viewable in <a
href="https://github.com/pyo3/pyo3/compare/v0.22.3...v0.22.5">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.3&new-version=0.22.5)](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)


</details>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
dependabot[bot] authored Oct 21, 2024
1 parent b73b0ff commit dcc3a81
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 27 deletions.
53 changes: 27 additions & 26 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ name = "sourmash_plugin_directsketch"
crate-type = ["cdylib"]

[dependencies]
pyo3 = { version = "0.22.3", features = ["extension-module", "anyhow"] }
pyo3 = { version = "0.22.5", features = ["extension-module", "anyhow"] }
rayon = "1.10.0"
serde = { version = "1.0.204", features = ["derive"] }
sourmash = { version = "0.16.0"}
Expand Down

0 comments on commit dcc3a81

Please sign in to comment.