Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

disable marshal.rs on Py_LIMITED_API #3490

Merged
merged 1 commit into from
Oct 4, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
disable marshal.rs on Py_LIMITED_API
davidhewitt committed Oct 2, 2023

Verified

This commit was signed with the committer’s verified signature.
svc-excavator-bot Excavator Bot
commit c80a61ee30575d30a3ded7e1674b3b313e27536c
1 change: 1 addition & 0 deletions newsfragments/3490.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Disable `PyMarshal_WriteObjectToString` from `PyMarshal_ReadObjectFromString` with the `abi3` feature.
4 changes: 3 additions & 1 deletion pyo3-ffi/src/lib.rs
Original file line number Diff line number Diff line change
@@ -281,6 +281,7 @@ pub use self::intrcheck::*;
pub use self::iterobject::*;
pub use self::listobject::*;
pub use self::longobject::*;
#[cfg(not(Py_LIMITED_API))]
pub use self::marshal::*;
pub use self::memoryobject::*;
pub use self::methodobject::*;
@@ -351,7 +352,8 @@ mod iterobject;
mod listobject;
// skipped longintrepr.h
mod longobject;
pub(crate) mod marshal;
#[cfg(not(Py_LIMITED_API))]
pub mod marshal;
mod memoryobject;
mod methodobject;
mod modsupport;