Skip to content

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

Merged
Zuzu-Typ merged 5 commits intoZuzu-Typ:masterfrom
jimy-byerley:master
Jan 8, 2023
Merged

fixed memory use after free in vec_getattr and vec_setattr (#181)#192
Zuzu-Typ merged 5 commits intoZuzu-Typ:masterfrom
jimy-byerley:master

Conversation

@jimy-byerley
Copy link
Copy Markdown
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