-
-
Notifications
You must be signed in to change notification settings - Fork 33.5k
Closed as not planned
Labels
extension-modulesC modules in the Modules dirC modules in the Modules dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Bug report
Bug description:
import tempfile
import os
import fcntl
nbytes = 2024
tf = tempfile.NamedTemporaryFile(delete=2**15 - 1)
tf_name = tf.name
with open(tf_name, 'wb') as f:
get_result = fcntl.fcntl(f, fcntl.F_GETOWN_EX, b'' * nbytes)SystemError: buffer overflow
cpython/Lib/tempfile.py:484: ResourceWarning: Implicitly cleaning up <_TemporaryFileWrapper file=<_io.BufferedRandom name='/tmp/tmp_o0z83c9'>>
CPython versions tested on:
CPython main branch
Operating systems tested on:
Linux
Abhi210
Metadata
Metadata
Assignees
Labels
extension-modulesC modules in the Modules dirC modules in the Modules dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error