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

PyObject_GC_Resize doesn't check preheader size #101408

Closed
Labels
3.12only security fixestopic-C-APItype-bugAn unexpected behavior, bug, or error
@colesbury

Description

@colesbury

ThePyObject_GC_Resize implementation in the main branch doesn't check if the object has a preheader:

cpython/Modules/gcmodule.c

Lines 2357 to 2358 in0ef92d9

PyGC_Head*g=AS_GC(op);
g= (PyGC_Head*)PyObject_Realloc(g,sizeof(PyGC_Head)+basicsize);

The only internal use I see is by_PyTuple_Resize which doesn't have a preheader, but thePyObject_GC_Resize function is publicly documented.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.12only security fixestopic-C-APItype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp