GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||
GeezerVison is showing github.com — gh-155752: Do not crash when GenericAlias parameters change during substitution by dariushoule · Pull Request #155761 · python/cpython Conversation
|
|
Thanks @dariushoule for the PR, and @JelleZijlstra for merging it 🌮🎉.. I'm working now to backport this PR to: 3.10, 3.11, 3.12, 3.13, 3.14, 3.15. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
GH-155770 is a backport of this pull request to the 3.15 branch. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
GH-155771 is a backport of this pull request to the 3.14 branch. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Sorry, @dariushoule and @JelleZijlstra, I could not cleanly backport this to |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
GH-155772 is a backport of this pull request to the 3.13 branch. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Sorry, @dariushoule and @JelleZijlstra, I could not cleanly backport this to |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Sorry, @dariushoule and @JelleZijlstra, I could not cleanly backport this to |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@JelleZijlstra @picnixz |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…ring substitution (GH-155761) (#155770) gh-155752: Do not crash when GenericAlias parameters change during substitution (GH-155761) An alias argument can gain __typing_subst__ after __parameters__ has been cached, including during a preparation or substitution callback. Check that the argument is present before indexing the substitution arguments. (cherry picked from commit c0006fa) Co-authored-by: Darius Houle <[email protected]>
…ing substitution (python#155761) An alias argument can gain __typing_subst__ after __parameters__ has been cached, including during a preparation or substitution callback. Check that the argument is present before indexing the substitution arguments.
|
I'm assuming they were added by accident so I've removed them, this seems like a regular bug to me. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I think we usually backport crashes as far as we can since they can be security vulnerabilities; segfaults can corrupt memory, etc |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Under our security policy I don't see how this qualifies, I don't think a bug is a vulnerability simply because it causes a segfault. Vulnerabilities can be exploited, whereas this does not seem like something exploitable in code that may exist in the real world. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…ring substitution (GH-155761) (#155771) gh-155752: Do not crash when GenericAlias parameters change during substitution (GH-155761) An alias argument can gain __typing_subst__ after __parameters__ has been cached, including during a preparation or substitution callback. Check that the argument is present before indexing the substitution arguments. (cherry picked from commit c0006fa) Co-authored-by: Darius Houle <[email protected]>
…ring substitution (GH-155761) (#155772) gh-155752: Do not crash when GenericAlias parameters change during substitution (GH-155761) An alias argument can gain __typing_subst__ after __parameters__ has been cached, including during a preparation or substitution callback. Check that the argument is present before indexing the substitution arguments. (cherry picked from commit c0006fa) Co-authored-by: Darius Houle <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
GenericAlias crashes when an argument gains __typing_subst__ after parameters are cached
There was an error while loading. Please reload this page.