Open CookStar opened 1 year ago
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").
pointer.set_string_pointer("string")
Are there any other issues?
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")
.