summaryrefslogtreecommitdiffstats
path: root/Python/sysmodule.c
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2018-11-22 14:17:34 (GMT)
committerGitHub <noreply@github.com>2018-11-22 14:17:34 (GMT)
commit18f3327d9a99163a658697465eb00c31f86535eb (patch)
tree31580d810447f0da0c5c8039c4f5f00c28f79e96 /Python/sysmodule.c
parentdf6374e15aadff7eb547fc210c0f4f28bbff7010 (diff)
downloadcpython-18f3327d9a99163a658697465eb00c31f86535eb.zip
cpython-18f3327d9a99163a658697465eb00c31f86535eb.tar.gz
cpython-18f3327d9a99163a658697465eb00c31f86535eb.tar.bz2
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 'Python/sysmodule.c')
0 files changed, 0 insertions, 0 deletions