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

[Applications.WidgetControl] Use Marshal.FreeHGlobal() instead of Lib… #5629

Merged
merged 3 commits into from
Nov 13, 2023

Conversation

kilig
Copy link
Contributor

@kilig kilig commented Oct 17, 2023

Description of Change

This patch changes using free() to using Marshal.FreeHGlobal().
To avoid crash issues in the asan binary, the library should not use Libc.Free() function directly as possible.

@github-actions github-actions bot added the API12 Platform : Tizen 9.0 / TFM: net6.0-tizen9.0 label Oct 17, 2023
Copy link
Collaborator

@devusr-sw-kim devusr-sw-kim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With this change, no crash issue on asan built environment for both Tizen.Applications.WidgetControl and Tizen.Applications.Cion. LGTM.

@pjh9216 pjh9216 merged commit 7d08a4a into Samsung:master Nov 13, 2023
3 checks passed
jaehyun0cho pushed a commit that referenced this pull request Nov 15, 2023
#5629)

* [Applications.WidgetControl] Use Marshal.FreeHGlobal() instead of Libc.Free()

Signed-off-by: Inkyun Kil <[email protected]>

* [Applications.Cion] Use Marshal.AllocHGlobal() instead of Libc.Malloc()

Signed-off-by: Inkyun Kil <[email protected]>

---------

Signed-off-by: Inkyun Kil <[email protected]>
Co-authored-by: pjh9216 <[email protected]>
devusr-sw-kim pushed a commit that referenced this pull request Nov 17, 2023
#5629)

* [Applications.WidgetControl] Use Marshal.FreeHGlobal() instead of Libc.Free()

Signed-off-by: Inkyun Kil <[email protected]>

* [Applications.Cion] Use Marshal.AllocHGlobal() instead of Libc.Malloc()

Signed-off-by: Inkyun Kil <[email protected]>

---------

Signed-off-by: Inkyun Kil <[email protected]>
Co-authored-by: pjh9216 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API12 Platform : Tizen 9.0 / TFM: net6.0-tizen9.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants