Skip to content

Fuzz fixes #7891

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Fuzz fixes #7891

wants to merge 2 commits into from

Conversation

lukewilliamboswell
Copy link
Collaborator

No description provided.

// This index doesn't point to a type annotation node - skip it gracefully
return;
},
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Hrm, this seems suspicious. It seems like if we ever call this function on something that isn't an annotation, that indicates a compiler bug (as opposed to e.g. malformed source code from the end user).

Copy link
Contributor

Choose a reason for hiding this comment

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

I think a better way to handle this would be to do a debug assertion, and then if we hit that debug assertion, look at the stack trace to figure out what sequence of events led us to call this function on something that wasn't a type annotation, and apply a fix there.

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