8000 gh-136053: Memory Safety Issue in marshal.c TYPE_SLICE Case by akshat62 · Pull Request #136054 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-136053: Memory Safety Issue in marshal.c TYPE_SLICE Case #136054

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
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Moving up condition
  • Loading branch information
akshat62 committed Jun 28, 2025
commit 9aa277bfa4f24837ef8bbae19f0de37242474a34
6 changes: 3 additions & 3 deletions Python/marshal.c
Original file line number Diff line number Diff line change
Expand Up @@ -1656,12 +1656,12 @@ r_object(RFILE *p)
case TYPE_SLICE:
{
Py_ssize_t idx = r_ref_reserve(flag, p);
PyObject *stop = NULL;
PyObject *step = NULL;
PyObject *start = NULL;
if (idx < 0) {
break;
}
PyObject *stop = NULL;
PyObject *step = NULL;
PyObject *start = NULL;
start = r_object(p);
if (start == NULL) {
goto cleanup;
Expand Down
Loading
0