-
Notifications
You must be signed in to change notification settings - Fork 831
PyRawObject API unsafe #664
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
Comments
I think it would be pretty common to forget to call |
Thank you for reporting. |
Would you be open to a pull request that just fixes initialization tracking so it panics, doesn't drop uninitialized memory, and/or doesn't double-initialize memory? That should be pretty easy to do without a user-facing API change, would catch the most common mistake (forgetting to initialize), and can be replaced with your rewritten code when you're ready. |
OK. |
Fixed by #683 |
PyRawObject
doesn't track initialization:PyRawObject
doesn't check types:The text was updated successfully, but these errors were encountered: