Title: Bump pyo3 from 0.24.0 to 0.24.1 by dependabot[bot] · Pull Request #1 · urlpattern/python-urlpattern · GitHub
Open Graph Title: Bump pyo3 from 0.24.0 to 0.24.1 by dependabot[bot] · Pull Request #1 · urlpattern/python-urlpattern
X Title: Bump pyo3 from 0.24.0 to 0.24.1 by dependabot[bot] · Pull Request #1 · urlpattern/python-urlpattern
Description: Bumps pyo3 from 0.24.0 to 0.24.1.
Release notes
Sourced from pyo3's releases.
PyO3 0.24.1
This release is a security fix for the PyString::from_object method, which passed &str data to the Python C API without checking for a terminating nul byte. All historical PyO3 versions are affected, and we recommend you upgrade if you are using PyString::from_object. Thank you to @vthib for the report and @Dr-Emann for the fix. A RUSTSEC advisory will be published shortly.
Aside from the security fix, this release contains a number of other non-breaking additions:
An abi3-py313 feature to support compiling with the Python 3.13 stable ABI.
PyAnyMethods::getattr_opt to get optional attributes without paying the cost of a Python exception when the attribute in question does not exist.
Constructor for PyInt::new.
with_critical_section2 for locking two objects at the same time on the free-threaded build.
Fix for a PyO3 0.24.0 regression with Option<&str> and Option<&T> (where T: PyClass) function arguments no longer being permitted
There are also a few other small bug fixes for edge cases, mostly related to compile errors from PyO3's macro code.
Thank you to the following contributors for the improvements:
@bschoenmaeckers
@davidhewitt
@Dr-Emann
@emmagordon
@epontan
@Icxolu
@IvanIsCoding
@jelmer
@jonaspleyer
@ngoldbaum
@Owen-CH-Leung
@Tpt
@Trolldemorted
@XuehaiPan
Changelog
Sourced from pyo3's changelog.
[0.24.1] - 2025-03-31
Added
Add abi3-py313 feature. #4969
Add PyAnyMethods::getattr_opt. #4978
Add PyInt::new constructor for all supported number types (i32, u32, i64, u64, isize, usize). #4984
Add pyo3::sync::with_critical_section2. #4992
Implement PyCallArgs for Borrowed<'_, 'py, PyTuple>, &Bound<'py, PyTuple>, and &Py
Open Graph Description: Bumps pyo3 from 0.24.0 to 0.24.1. Release notes Sourced from pyo3's releases. PyO3 0.24.1 This release is a security fix for the PyString::from_object method, which passed &str data to th...
X Description: Bumps pyo3 from 0.24.0 to 0.24.1. Release notes Sourced from pyo3's releases. PyO3 0.24.1 This release is a security fix for the PyString::from_object method, which passed &str da...
Opengraph URL: https://github.com/urlpattern/python-urlpattern/pull/1
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:c33b168e-dabe-09d5-5e4e-0b4c64821b60 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A58C:F56C9:5D976:7AC03:698E497E |
| html-safe-nonce | 3d5c3fd51081f45ccc1b019cfcd84d28782d9288c617d89715234a7fdc5b7764 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNThDOkY1NkM5OjVEOTc2OjdBQzAzOjY5OEU0OTdFIiwidmlzaXRvcl9pZCI6IjMxNjg1MTk4NTU2MTI1MTI2MzgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 619d385d9ef6f27aac10ae7c17e2c5bee92a7982c868feb4ef5be51481a46c75 |
| hovercard-subject-tag | pull_request:2493208419 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/urlpattern/python-urlpattern/pull/1/files |
| twitter:image | https://avatars.githubusercontent.com/in/29110?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/in/29110?s=400&v=4 |
| og:image:alt | Bumps pyo3 from 0.24.0 to 0.24.1. Release notes Sourced from pyo3's releases. PyO3 0.24.1 This release is a security fix for the PyString::from_object method, which passed &str data to th... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | a5632af64f7fed7bff1d6a428d1aca1b94fa7a48f760de2d39d9b1effdbf0082 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/urlpattern/python-urlpattern git https://github.com/urlpattern/python-urlpattern.git |
| octolytics-dimension-user_id | 175113037 |
| octolytics-dimension-user_login | urlpattern |
| octolytics-dimension-repository_id | 834329749 |
| octolytics-dimension-repository_nwo | urlpattern/python-urlpattern |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 834329749 |
| octolytics-dimension-repository_network_root_nwo | urlpattern/python-urlpattern |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 3dda52e29a416820ced574e74040033b820613a2 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width