aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.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-17 09:08:40 -0700
commit03aa02adb03c928ae4ec9d139b303348f81861c9 (patch)
tree9b1b58cae835ca9ed47581e96ead0aace1b53cab /llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
parent2c78a9e65ccfe36d213a409592bebdd3ed8ba771 (diff)
downloadllvm-03aa02adb03c928ae4ec9d139b303348f81861c9.zip
llvm-03aa02adb03c928ae4ec9d139b303348f81861c9.tar.gz
llvm-03aa02adb03c928ae4ec9d139b303348f81861c9.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 Differential Revision: https://reviews.llvm.org/D146189
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp')
0 files changed, 0 insertions, 0 deletions