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

heap memory corruption in Simple function #5

Closed
chrbsg opened this issue Jul 2, 2020 · 1 comment
Closed

heap memory corruption in Simple function #5

chrbsg opened this issue Jul 2, 2020 · 1 comment

Comments

@chrbsg
Copy link
Contributor

chrbsg commented Jul 2, 2020

The Simple function creates a C pointer to Go object, which becomes a dangling pointer if the Go gc frees the Go object while the cgo function is running.

There are two open pull requests both dealing with this issue (I just noticed there is an existing pull request for the same issue).

@dh1tw
Copy link
Owner

dh1tw commented Jul 10, 2020

thanks @chrbsg!

I just merged your PR #4.

@dh1tw dh1tw closed this as completed Jul 10, 2020
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

No branches or pull requests

2 participants