Skip to content

Fix/security pyo3 update 0.29#120

Merged
pierre-rouanet merged 3 commits into
developfrom
fix/security-pyo3-update-0.29
Jun 17, 2026
Merged

Fix/security pyo3 update 0.29#120
pierre-rouanet merged 3 commits into
developfrom
fix/security-pyo3-update-0.29

Conversation

@pierre-rouanet

Copy link
Copy Markdown
Member

No description provided.

Out-of-bounds read in nth/nth_back for PyList/PyTuple iterators; the fix
is only available in pyo3 >=0.29.0 (not backported to 0.27.x/0.28.x).

Also bumps pyo3-stub-gen to 0.22.3 and pyo3-log to >=0.13.4. Our own
code compiles cleanly against pyo3 0.29; the default (non-python) build
passes.

NOTE: pyo3-stub-gen 0.22.3 does not yet compile against pyo3 0.29
(downcast->cast rename + OSError alias dedup), so the `python` feature
build is blocked until a 0.29-compatible release lands. Tracking:
Jij-Inc/pyo3-stub-gen#475.

Assisted-by: Claude:claude-opus-4-8
The earlier commit bumped pyo3 to 0.29.0 (RUSTSEC-2026-0176) but left the
`python` feature build blocked on pyo3-stub-gen, which had no 0.29-compatible
release. pyo3-stub-gen 0.23.0 is now published with pyo3 0.29 support, so this
finishes the migration:

- Bump pyo3-stub-gen =0.22.3 -> =0.23.0 (first release supporting pyo3 0.29).
- Replace removed PyObject alias with Py<PyAny> in servo_macro.rs (pyo3 0.28
  removed the deprecated alias).
- Opt the Pid pyclasses into the FromPyObject derive via pyclass(from_py_object);
  it became opt-in in pyo3 0.28 and MotorValue<Pid> still needs it for the
  writable PID registers.

Both default and `python` builds compile warning-free; all tests pass and stub
generation succeeds.

Assisted-by: Claude:claude-opus-4-8
@pierre-rouanet
pierre-rouanet merged commit 2a71c80 into develop Jun 17, 2026
15 checks passed
@pierre-rouanet
pierre-rouanet deleted the fix/security-pyo3-update-0.29 branch June 17, 2026 11:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant