Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitcebae97

Browse files
authored
gh-133891: Add missing error check toSET_COUNT macro in_testinternalcapi.c (#133892)
1 parent3704171 commitcebae97

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

‎Modules/_testinternalcapi.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1045,6 +1045,9 @@ get_code_var_counts(PyObject *self, PyObject *_args, PyObject *_kwargs)
10451045
#defineSET_COUNT(DICT,STRUCT,NAME) \
10461046
do { \
10471047
PyObject *count = PyLong_FromLong(STRUCT.NAME); \
1048+
if (count == NULL) { \
1049+
goto error; \
1050+
} \
10481051
int res = PyDict_SetItemString(DICT, #NAME, count); \
10491052
Py_DECREF(count); \
10501053
if (res < 0) { \

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp