Source.Python icon indicating copy to clipboard operation
Source.Python copied to clipboard

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

Open CookStar opened this issue 2 years ago • 1 comments

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 avatar May 21 '23 08:05 CookStar

Are there any other issues?

CookStar avatar Jun 06 '23 02:06 CookStar