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

idl: Fix potential panic on external type resolution #2954

Conversation

acheroncrypto
Copy link
Collaborator

Problem

find_path function used in non-Anchor external type resolution can potentially panic if the file we're looking for doesn't exist in any of the ancestors.

This can happen in rare cases such as the recursive external type resolution described in #2946.

Summary of changes

Rewrite the find_path function without a potential panic.

Copy link

vercel bot commented May 9, 2024

@acheroncrypto is attempting to deploy a commit to the coral-xyz Team on Vercel.

A member of the Team first needs to authorize it.

@acheroncrypto acheroncrypto added the idl related to the IDL, either program or client side label May 9, 2024
@acheroncrypto acheroncrypto merged commit 14309ea into coral-xyz:master May 9, 2024
48 of 49 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
idl related to the IDL, either program or client side
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant