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

Calling SyscallN directly when dealing with pointer-pointers #42

Merged
merged 2 commits into from
May 15, 2023

Conversation

danieljoos
Copy link
Owner

@danieljoos danieljoos commented May 14, 2023

This PR is trying to address #32 by calling syscall.SyscallN directly when dealing with pointer-pointers.
With that, the Go runtime seems to keep the given pointer alive.

It also moves the required Go version up to 1.18!

@danieljoos danieljoos force-pushed the danieljoos-syscall branch from e1519b6 to 68f44ad Compare May 14, 2023 18:57
Copy link

@mislav mislav left a comment

Choose a reason for hiding this comment

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

Thank you! I could not reproduce the original bug with this patch applied.

@danieljoos danieljoos merged commit 5bfc9e5 into master May 15, 2023
@danieljoos danieljoos deleted the danieljoos-syscall branch May 15, 2023 11:51
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