bpo-44285: Assert that the env_file variable in getpath.c is NULL during an error check#26486
Conversation
…ing an error check
vstinner
left a comment
There was a problem hiding this comment.
LGTM. The assertion is correct. I wrote this code ;-)
I cannot say it fix https://bugs.python.org/issue44285 I trust you ;-)
|
Backports would be nice as well, but not necessary. |
|
I created https://bugs.python.org/issue44290 |
|
Thanks @stratakis for the PR, and @encukou for merging it 🌮🎉.. I'm working now to backport this PR to: 3.10. |
|
Thanks @stratakis for the PR, and @encukou for merging it 🌮🎉.. I'm working now to backport this PR to: 3.9. |
|
GH-26495 is a backport of this pull request to the 3.10 branch. |
…eck (pythonGH-26486) This was flagged by a static analyzer, but the logic of why this is NULL on error is hard to follow for humans as well. (cherry picked from commit bdb5690) Co-authored-by: stratakis <cstratak@redhat.com>
…eck (pythonGH-26486) This was flagged by a static analyzer, but the logic of why this is NULL on error is hard to follow for humans as well. (cherry picked from commit bdb5690) Co-authored-by: stratakis <cstratak@redhat.com>
|
GH-26496 is a backport of this pull request to the 3.9 branch. |
https://bugs.python.org/issue44285