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-83004: Harden msvcrt init by erlend-aasland · Pull Request #103383 · python/cpython Conversation
|
|
Darn, I forgot to add error handling for |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| if (version == NULL) { | ||
| goto error; | ||
| } | ||
| st = PyModule_AddObjectRef(m, "CRT_ASSEMBLY_VERSION", version); |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
@erlend-aasland Just FYI, the modsupport functions allow passing in NULL provided an error has already occurred, and they just let it chain. So the code here was fine before.
No need to revert now though.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
TIL! Sorry for not waiting on your review.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
However, there was a leak if PyModule_AddObject failed, since that API only eat refs if successful.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Sorry I should have been more careful in this.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.