diff options
| author | Jonas Devlieghere <jonas@devlieghere.com> | 2020-10-26 20:31:33 -0700 |
|---|---|---|
| committer | Jonas Devlieghere <jonas@devlieghere.com> | 2020-10-26 20:51:44 -0700 |
| commit | c4ef3115b4296321090ce33987d6fdf7fa337fc1 (patch) | |
| tree | c040f340ab7943b18084b0aef32c0e9f1cab729e /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp | |
| parent | 42f76e193b696219d43ceb40ee61e4e07ccf0d42 (diff) | |
Fix calls to (p)read on macOS when size > INT32_MAX
On macOS, the read and pread syscalls return EINVAL when the number of
bytes to read exceeds INT32_MAX:
https://github.com/apple/darwin-xnu/blob/a449c6a3b8014d9406c2ddbdc81795da24aa7443/bsd/kern/sys_generic.c#L355
rdar://68751407
Differential revision: https://reviews.llvm.org/D90201
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions
