summaryrefslogtreecommitdiff
path: root/compiler-rt/test/fuzzer/BigFileCopy.cpp
AgeCommit message (Collapse)Author
2023-03-28[fuzzer] Use puts() rather than printf() in CopyFileToErr()Roy Sundahl
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
2023-03-17Revert "[fuzzer] Use puts() rather than printf() in CopyFileToErr()"Matthew Voss
This reverts commit 03aa02adb03c928ae4ec9d139b303348f81861c9. Reverting due to bot failures: https://lab.llvm.org/buildbot/#/builders/247/builds/2653
2023-03-17[fuzzer] Use puts() rather than printf() in CopyFileToErr()Roy Sundahl
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