-
-
Notifications
You must be signed in to change notification settings - Fork 34.7k
bytearray().__buffer__(256) crashes #126980
Copy link
Copy link
Closed
Labels
interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)type-crashA hard crash of the interpreter, possibly with a core dumpA hard crash of the interpreter, possibly with a core dump
Metadata
Metadata
Assignees
Labels
interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)type-crashA hard crash of the interpreter, possibly with a core dumpA hard crash of the interpreter, possibly with a core dump
Fields
Give feedbackNo fields configured for issues without a type.
Crash report
Code says that it cannot fail:
cpython/Objects/bytearrayobject.c
Lines 44 to 56 in 4cd1076
But, it can:
cpython/Objects/abstract.c
Lines 770 to 774 in 4cd1076
I have a PR ready.
CC @JelleZijlstra
Linked PRs
bytearray.__buffer__crash onPyBUF_{READ,WRITE}#126981bytearray.__buffer__crash onPyBUF_{READ,WRITE}(GH-126981) #127023