You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Type confusion when accessing data from sublasses of subclasses of native types with `abi3` feature targeting Python 3.12 and up
17
+
18
+
PyO3 0.28.1 added support for `#[pyclass(extends=PyList)] struct NativeSub` (and other native types) when targeting Python 3.12 and up with the `abi3` feature.
19
+
20
+
It was discovered that subclasses of such classes would use the type of the subclass when attempting to access to data of `NativeSub` contained within Python objects, amounting to memory corruption.
21
+
22
+
PyO3 0.28.2 fixed the issue by using the type of (e.g.) `NativeSub` correctly.
0 commit comments