Skip to content

Update dependencies#69

Merged
Ectras merged 3 commits into
mainfrom
update_dependencies
Oct 7, 2025
Merged

Update dependencies#69
Ectras merged 3 commits into
mainfrom
update_dependencies

Conversation

@Ectras

@Ectras Ectras commented Sep 25, 2025

Copy link
Copy Markdown
Collaborator

Updates the pyO3 dependency to fix a potential minor security issue, see commit message for more information (I don't think our code was effected, though). Also, removes an unused dependency.

The old pyo3 version had a minor security issue that Dependabot warned
about. Here's the description:
PyString::from_object took &str arguments and forwarded them directly to
the Python C API without checking for terminating nul bytes. This could
lead the Python interpreter to read beyond the end of the &str data and
potentially leak contents of the out-of-bound read (by raising a Python
exception containing a copy of the data including the overflow).
In PyO3 0.24.1 this function will now allocate a CString to guarantee a
terminating nul byte. PyO3 0.25 will likely offer an alternative API
which takes &CStr arguments.
@Ectras Ectras merged commit 651cb80 into main Oct 7, 2025
2 checks passed
@Ectras Ectras deleted the update_dependencies branch October 7, 2025 14:24
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.

2 participants