`bytearray().__buffer__(256)` crashes · Issue #126980 · python/cpython · GitHub
Skip to content

bytearray().__buffer__(256) crashes  #126980

Description

@sobolevn

Crash report

Code says that it cannot fail:

But, it can:

cpython/Objects/abstract.c

Lines 770 to 774 in 4cd1076

I have a PR ready.

CC @JelleZijlstra

Linked PRs

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

interpreter-core(Objects, Python, Grammar, and Parser dirs)type-crashA hard crash of the interpreter, possibly with a core dump

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions