diff options
author | Roy Sundahl <rsundahl@apple.com> | 2023-03-15 18:56:11 -0700 |
---|---|---|
committer | Roy Sundahl <rsundahl@apple.com> | 2023-03-17 09:08:40 -0700 |
commit | 03aa02adb03c928ae4ec9d139b303348f81861c9 (patch) | |
tree | 9b1b58cae835ca9ed47581e96ead0aace1b53cab /llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp | |
parent | 2c78a9e65ccfe36d213a409592bebdd3ed8ba771 (diff) | |
download | llvm-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