commit | 18f3327d9a99163a658697465eb00c31f86535eb | [log] [tgz] |
---|---|---|
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | Thu Nov 22 06:17:34 2018 -0800 |
committer | GitHub <noreply@github.com> | Thu Nov 22 06:17:34 2018 -0800 |
tree | 31580d810447f0da0c5c8039c4f5f00c28f79e96 | |
parent | df6374e15aadff7eb547fc210c0f4f28bbff7010 [diff] |
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>