SIGN IN SIGN UP

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).
V
Victor Stinner committed
9a0d7a7648547ffb77144bf2480155f6d7940dea
Parent: 4d73ae7
Committed by GitHub <noreply@github.com> on 11/22/2018, 2:03:40 PM