<feed xmlns='http://www.w3.org/2005/Atom'>
<title>llvm-project.git/compiler-rt/test/fuzzer/BigFileCopy.cpp, branch main</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/'/>
<entry>
<title>[fuzzer] Use puts() rather than printf() in CopyFileToErr()</title>
<updated>2023-03-28T21:19:35+00:00</updated>
<author>
<name>Roy Sundahl</name>
<email>rsundahl@apple.com</email>
</author>
<published>2023-03-16T01:56:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=90b4d1bcb20180c591385131b12fa90d2e4860b1'/>
<id>90b4d1bcb20180c591385131b12fa90d2e4860b1</id>
<content type='text'>
CopyFileToErr() uses Printf("%s", ...) which fails with a negative size on
files &gt;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 &gt;2Gb of output.

rdar://99384640

Reviewed By: yln, rsundahl

Differential Revision: https://reviews.llvm.org/D146189
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
CopyFileToErr() uses Printf("%s", ...) which fails with a negative size on
files &gt;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 &gt;2Gb of output.

rdar://99384640

Reviewed By: yln, rsundahl

Differential Revision: https://reviews.llvm.org/D146189
</pre>
</div>
</content>
</entry>
<entry>
<title>Revert "[fuzzer] Use puts() rather than printf() in CopyFileToErr()"</title>
<updated>2023-03-17T23:00:56+00:00</updated>
<author>
<name>Matthew Voss</name>
<email>matthew.voss@sony.com</email>
</author>
<published>2023-03-17T22:57:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=d02ff3d578312f4924b7d3926666ea454239bf25'/>
<id>d02ff3d578312f4924b7d3926666ea454239bf25</id>
<content type='text'>
This reverts commit 03aa02adb03c928ae4ec9d139b303348f81861c9.

Reverting due to bot failures:
https://lab.llvm.org/buildbot/#/builders/247/builds/2653
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reverts commit 03aa02adb03c928ae4ec9d139b303348f81861c9.

Reverting due to bot failures:
https://lab.llvm.org/buildbot/#/builders/247/builds/2653
</pre>
</div>
</content>
</entry>
<entry>
<title>[fuzzer] Use puts() rather than printf() in CopyFileToErr()</title>
<updated>2023-03-17T16:08:40+00:00</updated>
<author>
<name>Roy Sundahl</name>
<email>rsundahl@apple.com</email>
</author>
<published>2023-03-16T01:56:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=03aa02adb03c928ae4ec9d139b303348f81861c9'/>
<id>03aa02adb03c928ae4ec9d139b303348f81861c9</id>
<content type='text'>
CopyFileToErr() uses Printf("%s", ...) which fails with a negative size on
files &gt;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 &gt;2Gb of output.

rdar://99384640

Reviewed By: yln

Differential Revision: https://reviews.llvm.org/D146189
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
CopyFileToErr() uses Printf("%s", ...) which fails with a negative size on
files &gt;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 &gt;2Gb of output.

rdar://99384640

Reviewed By: yln

Differential Revision: https://reviews.llvm.org/D146189
</pre>
</div>
</content>
</entry>
</feed>
