Skip to content

any reason Py::from_owned_ptr_or_err is unsafe but all function it calls are safe? #4208

Closed Answered by adamreichold
trim21 asked this question in Questions
Discussion options

You must be logged in to vote

Being non-null is not sufficient for a pointer to point to a valid object in the Python heap. It could be dangling or not point into the Python heap at all.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@trim21
Comment options

Answer selected by trim21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants