Commit 18f3327
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 9a0d7a7)
Co-authored-by: Victor Stinner <[email protected]>
1 parent df6374e commit 18f3327
1 file changed
+1
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8021 | 8021 | | |
8022 | 8022 | | |
8023 | 8023 | | |
8024 | | - | |
8025 | | - | |
8026 | | - | |
8027 | | - | |
8028 | | - | |
| 8024 | + | |
8029 | 8025 | | |
8030 | 8026 | | |
8031 | 8027 | | |
| |||
0 commit comments