Staging
v0.8.1
https://github.com/python/cpython
Revision 0c15e508baec7e542933db2b31ea950a646cd968 authored by Miss Islington (bot) on 22 November 2018, 14:25:25 UTC, committed by GitHub on 22 November 2018, 14:25:25 UTC

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>
1 parent c487cf9
History
Tip revision: 0c15e508baec7e542933db2b31ea950a646cd968 authored by Miss Islington (bot) on 22 November 2018, 14:25:25 UTC
bpo-24658: os.read() reuses _PY_READ_MAX (GH-10657)
Tip revision: 0c15e50

README

back to top