Skip to content

bpo-46528: Check PyMem_Malloc call for NULL#30998

Merged
brandtbucher merged 1 commit into
python:mainfrom
brandtbucher:swap-fix
Feb 9, 2022
Merged

bpo-46528: Check PyMem_Malloc call for NULL#30998
brandtbucher merged 1 commit into
python:mainfrom
brandtbucher:swap-fix

Conversation

@brandtbucher

@brandtbucher brandtbucher commented Jan 28, 2022

Copy link
Copy Markdown
Member

@brandtbucher brandtbucher changed the title bpo-45628: Check PyMem_Malloc call for NULL bpo-46528: Check PyMem_Malloc call for NULL Jan 28, 2022
Comment thread Python/compile.c
break;
}
i += swaptimize(bb, i);
if (swaptimize(bb, &i)) {

Copy link
Copy Markdown
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.

5 participants