mirror of
https://github.com/python/cpython.git
synced 2026-01-30 11:12:06 +00:00
PyObject_GetBuffer() can execute user code (e.g. via __buffer__), which may close or otherwise mutate a BytesIO object while write() or writelines() is in progress. This could invalidate the internal buffer and lead to a use-after-free. Ensure that PyObject_GetBuffer() is called before validation checks. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| __main__.py | ||
| test_bufferedio.py | ||
| test_file.py | ||
| test_fileio.py | ||
| test_general.py | ||
| test_largefile.py | ||
| test_memoryio.py | ||
| test_signals.py | ||
| test_textio.py | ||
| test_univnewlines.py | ||
| utils.py | ||