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

[mypyc] Fix fastcall positional fast path when parser is uninitialized #10834

Merged
merged 1 commit into from
Jul 18, 2021

Conversation

msullivan
Copy link
Collaborator

In CPyArg_ParseStackAndKeywordsSimple, we don't check if the parser is
initialized, so on the first call, min and max will be zero and so
zero arguments being passed will always pass the test. Add an initialization
check.

Fixes #872.

In `CPyArg_ParseStackAndKeywordsSimple`, we don't check if the parser is
initialized, so on the first call, `min` and `max` will be zero and so
zero arguments being passed will always pass the test. Add an initialization
check.

Fixes mypyc/mypyc#872.
@msullivan msullivan merged commit f5fab0d into master Jul 18, 2021
@msullivan msullivan deleted the fastcall-bug branch July 18, 2021 02:04
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.

Use stubgen to generate stubs for all standard library modules
1 participant