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

Avoid panic due to interface conversion without check #457

Merged

Conversation

nicolasbouffard
Copy link
Contributor

I came across panics due to missing safety checks for accessing a map key and casting a variable. This PR doesn't prevent the situation(s) that caused the panics to happen, but it avoids the panics by returning errors.

@nicolasbouffard nicolasbouffard changed the title fix: avoid panic due to interface conversion without check Avoid panic due to interface conversion without check Aug 10, 2024
@danielpaulus danielpaulus merged commit 418699b into danielpaulus:main Aug 19, 2024
2 checks passed
@nicolasbouffard nicolasbouffard deleted the fix-panic-interface-conversion branch August 20, 2024 09:12
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