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

bpo-46528: Check PyMem_Malloc call for NULL #30998

Merged
merged 1 commit into from Feb 9, 2022

Conversation

brandtbucher
Copy link
Member

@brandtbucher brandtbucher commented Jan 28, 2022

@brandtbucher brandtbucher changed the title bpo-45628: Check PyMem_Malloc call for NULL bpo-46528: Check PyMem_Malloc call for NULL Jan 28, 2022
@@ -8783,7 +8788,9 @@ optimize_basic_block(struct compiler *c, basicblock *bb, PyObject *consts)
inst->i_opcode = NOP;
break;
}
i += swaptimize(bb, i);
if (swaptimize(bb, &i)) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
if (swaptimize(bb, &i)) {
if (swaptimize(bb, &i) < 0) {

This is much common in the codebase.

@brandtbucher brandtbucher merged commit 46328d8 into python:main Feb 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip news type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants