Commit 9a0d7a7
authored
bpo-24658: os.read() reuses _PY_READ_MAX (pythonGH-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).1 parent 4d73ae7 commit 9a0d7a7
1 file changed
Lines changed: 1 addition & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8410 | 8410 | | |
8411 | 8411 | | |
8412 | 8412 | | |
8413 | | - | |
8414 | | - | |
8415 | | - | |
8416 | | - | |
8417 | | - | |
| 8413 | + | |
8418 | 8414 | | |
8419 | 8415 | | |
8420 | 8416 | | |
| |||
0 commit comments