aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorRoy Sundahl <rsundahl@apple.com>2023-03-15 18:56:11 -0700
committerRoy Sundahl <rsundahl@apple.com>2023-03-28 14:19:35 -0700
commit90b4d1bcb20180c591385131b12fa90d2e4860b1 (patch)
tree4bf2fc62e1f40ffb2fa4d0d6599022cf3458924c /clang/lib/CodeGen/CodeGenModule.cpp
parent2fe49ea0d07d503aedd0872bf0a66724552d4dcf (diff)
downloadllvm-90b4d1bcb20180c591385131b12fa90d2e4860b1.zip
llvm-90b4d1bcb20180c591385131b12fa90d2e4860b1.tar.gz
llvm-90b4d1bcb20180c591385131b12fa90d2e4860b1.tar.bz2
[fuzzer] Use puts() rather than printf() in CopyFileToErr()
CopyFileToErr() uses Printf("%s", ...) which fails with a negative size on files >2Gb (Its path is through var-args wrappers to an unnecessary "%s" expansion and subject to int overflows) Using puts() in place of printf() bypasses this path and writes the string directly to stderr. This avoids the present loss of data when a crashed worker has generated >2Gb of output. rdar://99384640 Reviewed By: yln, rsundahl Differential Revision: https://reviews.llvm.org/D146189
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions