Failed assertion in typeobject.c::wrap_buffer for b"".__buffer__(-2**31 - 1)
#126594
Labels
interpreter-core
(Objects, Python, Grammar, and Parser dirs)
type-crash
A hard crash of the interpreter, possibly with a core dump
Crash report
What happened?
Calling
bytes_object.__buffer__(large_negative_number)
in a debug build aborts with this message:Found using fusil by @vstinner.
CPython versions tested on:
CPython main branch
Operating systems tested on:
Linux, Windows
Output from running 'python -VV' on the command line:
Python 3.14.0a1+ (heads/main:4ea214ea982, Nov 6 2024, 00:52:15) [MSC v.1941 64 bit (AMD64)]
Linked PRs
The text was updated successfully, but these errors were encountered: