aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Tooling/JSONCompilationDatabase.cpp
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2020-10-26 20:31:33 -0700
committerJonas Devlieghere <jonas@devlieghere.com>2020-10-26 20:51:44 -0700
commitc4ef3115b4296321090ce33987d6fdf7fa337fc1 (patch)
treec040f340ab7943b18084b0aef32c0e9f1cab729e /clang/lib/Tooling/JSONCompilationDatabase.cpp
parent42f76e193b696219d43ceb40ee61e4e07ccf0d42 (diff)
downloadllvm-c4ef3115b4296321090ce33987d6fdf7fa337fc1.zip
llvm-c4ef3115b4296321090ce33987d6fdf7fa337fc1.tar.gz
llvm-c4ef3115b4296321090ce33987d6fdf7fa337fc1.tar.bz2
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 'clang/lib/Tooling/JSONCompilationDatabase.cpp')
0 files changed, 0 insertions, 0 deletions