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

Fix ownership issue for string_pointer and buffer overrun issue for string_array. (#472) #474

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

CookStar
Copy link
Contributor

This fixes the issue(#472) of Python string object pointer being directly set during use of string_pointer and mitigates the problem of buffer overrun when using string_array at instance/pointer_attribute.

This change will cause memory leak when using string_pointer if the string is not properly managed, but this is necessary to maintain memory safety in statements such as pointer.set_string_pointer("string").

@CookStar CookStar marked this pull request as draft May 22, 2023 04:14
@CookStar CookStar marked this pull request as ready for review May 22, 2023 18:20
Fixed missing support for based_attribute.

Modified the description of SetStringPointer.
Added space to error description.
@CookStar
Copy link
Contributor Author

CookStar commented Jun 6, 2023

Are there any other issues?

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.

2 participants