8000 [3.12] Fix possible null pointer dereference of freevars in _PyCompile_LookupArg (gh-126238) by federicovalenso · Pull Request #126474 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

[3.12] Fix possible null pointer dereference of freevars in _PyCompile_LookupArg (gh-126238) #126474

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

Merged
merged 1 commit into from
Nov 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
[3.12] gh-126238: Fix possible null pointer dereference of freevars i…
…n _PyCompile_LookupArg (GH-126239)

* Replace Py_DECREF by Py_XDECREF

(cherry picked from commit 8525c93)

Co-authored-by: Valery Fedorenko <federicovalenso@gmail.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
  • Loading branch information
3 people committed Nov 6, 2024
commit 8293188f044304997e6630b18b3879123f4bd0b3
2 changes: 1 addition & 1 deletion Python/compile.c
Original file line number Diff line number Diff line change
Expand Up @@ -1835,7 +1835,7 @@ compiler_make_closure(struct compiler *c, location loc,
c->u->u_metadata.u_name,
co->co_name,
freevars);
Py_DECREF(freevars);
Py_XDECREF(freevars);
return ERROR;
}
ADDOP_I(c, loc, LOAD_CLOSURE, arg);
Expand Down
Loading
0