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

Add panic handler for COFF execution #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

chvancooten
Copy link

Hi! Thanks for your excellent repository, it works amazing in my testing. However, for my use case I need to be able to 'catch' unexpected BOF crashes - something that's only possible from the current goroutine. As such, I needed to make a small adjustment to the library which I may as well contribute back! :)

This PR introduces a simple panic handler that propagates any unexpected errors (BOF crashes) upstream as output. This prevents the caller from crashing, and allows the error to be handled downstream if needed. The changes should not affect normal execution in any way.

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.

1 participant