diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2018-11-22 06:25:25 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-22 06:25:25 -0800 |
commit | 0c15e508baec7e542933db2b31ea950a646cd968 (patch) | |
tree | a023877f975ec1e180571c9caa969c62a83f1fc9 /Objects/obmalloc.c | |
parent | c487cf9261c61f0db4e5d1df3c83a60384b330db (diff) | |
download | cpython-git-0c15e508baec7e542933db2b31ea950a646cd968.tar.gz |
bpo-24658: os.read() reuses _PY_READ_MAX (GH-10657)
os_read_impl() now also truncates the size to _PY_READ_MAX
on macOS, to avoid to allocate a larger buffer even if _Py_read() is
limited to _PY_READ_MAX bytes (ex: INT_MAX on macOS).
(cherry picked from commit 9a0d7a7648547ffb77144bf2480155f6d7940dea)
Co-authored-by: Victor Stinner <vstinner@redhat.com>
Diffstat (limited to 'Objects/obmalloc.c')
0 files changed, 0 insertions, 0 deletions