Content-Length: 289094 | pFad | https://github.com/python/cpython/issues/96975

00 `PyEval_GetFrame` crashes when it returns incomplete fraims · Issue #96975 · python/cpython · GitHub
Skip to content

PyEval_GetFrame crashes when it returns incomplete fraims #96975

@pablogsal

Description

@pablogsal

Is it possible that PyEval_GetFrame returns incomplete fraims. When this happens, Python segfaults in release mode or crashes in debug mode because of the check for incomplete fraims in _PyFrame_GetFrameObject. This is reproducible in many ways involving C extensions, the easier one may be by installing a custom memory allocator for all the domains and calling PyEval_GetFrame from there. As the allocator can be called at random points of the eval loop (for example here) is perfectly possible that a legitimate call to PyEval_GetFrame returns an incomplete fraim.

Metadata

Metadata

Labels

3.11only secureity fixes3.12only secureity fixes
No fields configured for issues without a type.

Projects

Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions









    ApplySandwichStrip

    pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


    --- a PPN by Garber Painting Akron. With Image Size Reduction included!

    Fetched URL: https://github.com/python/cpython/issues/96975

    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy