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

fixed memory use after free in vec_getattr and vec_setattr (#181) #192

Merged
merged 5 commits into from Jan 8, 2023

Conversation

jimy-byerley
Copy link
Contributor

@jimy-byerley jimy-byerley commented Dec 6, 2022

This is a small patch to fix issue #181 :)
I just expanded macro PyGLM_String_AsString where it was used, and released the temporary bytes object after all checks are done.
It works fine on my side (linux x86_64, python 3.8) and fixes the issue

@Zuzu-Typ Zuzu-Typ linked an issue Jan 8, 2023 that may be closed by this pull request
@Zuzu-Typ Zuzu-Typ merged commit 3fcb38e into Zuzu-Typ:master Jan 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

segfault in vec_getattr due to memory use after free
2 participants