<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/llvm.git/libc/fuzzing, branch scripted-process</title>
<subtitle>github.com: llvm/llvm-project.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/llvm.git/'/>
<entry>
<title>[libc] Add implementations of nextafter[f|l] functions.</title>
<updated>2021-01-06T06:32:39+00:00</updated>
<author>
<name>Siva Chandra Reddy</name>
<email>sivachandra@google.com</email>
</author>
<published>2021-01-04T06:33:48+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/llvm.git/commit/?id=7f7b0dc4e15fac5f91f8f6dcc7f91c9025f41ae0'/>
<id>7f7b0dc4e15fac5f91f8f6dcc7f91c9025f41ae0</id>
<content type='text'>
A differential fuzzer for these functions has also been added.
Along the way, a small correction has been done to the normal/subnormal
limits of x86 long double values.

Reviewed By: lntue

Differential Revision: https://reviews.llvm.org/D94109
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
A differential fuzzer for these functions has also been added.
Along the way, a small correction has been done to the normal/subnormal
limits of x86 long double values.

Reviewed By: lntue

Differential Revision: https://reviews.llvm.org/D94109
</pre>
</div>
</content>
</entry>
<entry>
<title>[libc] Combine all math differential fuzzers into one target.</title>
<updated>2020-11-20T15:46:15+00:00</updated>
<author>
<name>Siva Chandra Reddy</name>
<email>sivachandra@google.com</email>
</author>
<published>2020-11-19T20:51:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/llvm.git/commit/?id=4766a86cf2f9ac47b1a0288fde84dc74f55b3f11'/>
<id>4766a86cf2f9ac47b1a0288fde84dc74f55b3f11</id>
<content type='text'>
Also added diffing of a few more math functions. Combining the diff check
for all of these functions helps us meet the OSS fuzz bar of a minimum of
100 program edges.

Reviewed By: lntue

Differential Revision: https://reviews.llvm.org/D91817
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Also added diffing of a few more math functions. Combining the diff check
for all of these functions helps us meet the OSS fuzz bar of a minimum of
100 program edges.

Reviewed By: lntue

Differential Revision: https://reviews.llvm.org/D91817
</pre>
</div>
</content>
</entry>
<entry>
<title>[libc] Add differential fuzzers for ldexp and remquo.</title>
<updated>2020-11-19T16:32:05+00:00</updated>
<author>
<name>Siva Chandra Reddy</name>
<email>sivachandra@google.com</email>
</author>
<published>2020-11-18T15:28:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/llvm.git/commit/?id=892ed1f15076251dd94d1e4783033d34ed69a3ed'/>
<id>892ed1f15076251dd94d1e4783033d34ed69a3ed</id>
<content type='text'>
Reviewed By: lntue

Differential Revision: https://reviews.llvm.org/D91763
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reviewed By: lntue

Differential Revision: https://reviews.llvm.org/D91763
</pre>
</div>
</content>
</entry>
<entry>
<title>[libc] Adds fuzz test for strstr and alphabetizes string fuzz CMakeList.</title>
<updated>2020-07-29T20:35:59+00:00</updated>
<author>
<name>cgyurgyik</name>
<email>gyurgyikcp@gmail.com</email>
</author>
<published>2020-07-29T20:29:19+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/llvm.git/commit/?id=e14a7ff7627500eb4d4f58041d9f5288d9c78659'/>
<id>e14a7ff7627500eb4d4f58041d9f5288d9c78659</id>
<content type='text'>
Reviewed By: sivachandra

Differential Revision: https://reviews.llvm.org/D84611
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reviewed By: sivachandra

Differential Revision: https://reviews.llvm.org/D84611
</pre>
</div>
</content>
</entry>
<entry>
<title>[libc] This commit fixes the strcmp fuzzing test. It uses a single input and</title>
<updated>2020-06-28T17:50:04+00:00</updated>
<author>
<name>cgyurgyik</name>
<email>gyurgyikcp@gmail.com</email>
</author>
<published>2020-06-28T17:33:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/llvm.git/commit/?id=b07feef8736d52e11c41631d3813a57a3b3ce6e5'/>
<id>b07feef8736d52e11c41631d3813a57a3b3ce6e5</id>
<content type='text'>
splits it into two by using the value of the first byte to determine the
length of the first string. Reviewed-by: PaulkaToast, Differential
Revision: https://reviews.llvm.org/D82427

Summary:
[libc] Since only one input is given, it is necessary to split the string into two containers so that they can be compared for the purposes of this fuzz test. This is done in the following manner:

1. Take the value of the first byte; this is size1. (Credits to @PaulkaToast for this idea).
2. size2 is the value of size - size1.
3. Copy the characters to new containers, data1 and data2 with corresponding sizes.
4. Add a null terminator to the first container, and verify the second container has a null terminator.
5. Verify output of strcmp.

A simpler alternative considered was simply splitting the input data into two, but this means the two strings are always within +- 1 character of each other. This above implementation avoids this.

ninja check-libc was run; no issues.

Reviewers: PaulkaToast, sivachandra

Reviewed By: PaulkaToast

Subscribers: mgorny, tschuett, ecnelises, libc-commits, PaulkaToast

Tags: #libc-project

Differential Revision: https://reviews.llvm.org/D82427
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
splits it into two by using the value of the first byte to determine the
length of the first string. Reviewed-by: PaulkaToast, Differential
Revision: https://reviews.llvm.org/D82427

Summary:
[libc] Since only one input is given, it is necessary to split the string into two containers so that they can be compared for the purposes of this fuzz test. This is done in the following manner:

1. Take the value of the first byte; this is size1. (Credits to @PaulkaToast for this idea).
2. size2 is the value of size - size1.
3. Copy the characters to new containers, data1 and data2 with corresponding sizes.
4. Add a null terminator to the first container, and verify the second container has a null terminator.
5. Verify output of strcmp.

A simpler alternative considered was simply splitting the input data into two, but this means the two strings are always within +- 1 character of each other. This above implementation avoids this.

ninja check-libc was run; no issues.

Reviewers: PaulkaToast, sivachandra

Reviewed By: PaulkaToast

Subscribers: mgorny, tschuett, ecnelises, libc-commits, PaulkaToast

Tags: #libc-project

Differential Revision: https://reviews.llvm.org/D82427
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove strcmp fuzz from CMakeList since it breaks build.</title>
<updated>2020-06-23T16:52:36+00:00</updated>
<author>
<name>cgyurgyik</name>
<email>gyurgyikcp@gmail.com</email>
</author>
<published>2020-06-23T16:51:06+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/llvm.git/commit/?id=8bec88e638481f9f9a1f2d1d3c2349d7bc366e9f'/>
<id>8bec88e638481f9f9a1f2d1d3c2349d7bc366e9f</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Add stddef.h to fix missing size_t type build errors.</title>
<updated>2020-06-23T12:12:18+00:00</updated>
<author>
<name>Simon Pilgrim</name>
<email>llvm-dev@redking.me.uk</email>
</author>
<published>2020-06-23T12:12:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/llvm.git/commit/?id=f1c671925b1c60ded3e4e7b3c6b1ec984b2d9b93'/>
<id>f1c671925b1c60ded3e4e7b3c6b1ec984b2d9b93</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[libc] Add fuzz test for strcmp.</title>
<updated>2020-06-23T11:24:03+00:00</updated>
<author>
<name>cgyurgyik</name>
<email>gyurgyikcp@gmail.com</email>
</author>
<published>2020-06-23T11:19:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/llvm.git/commit/?id=4ffe2b24f5c7a856e607370e1e559e4c94803809'/>
<id>4ffe2b24f5c7a856e607370e1e559e4c94803809</id>
<content type='text'>
Summary:
Adds a fuzz test for string comparison.

This takes in two strings with associated lengths.
Verifies each string contains at least one character, and that the last character is the null terminator.
Then, finds the first instance where one of the following does not hold:
1. i &lt; min(size1, size2)
2. s1[i] == s2[i]
3. s1[i] != '\0'

The result of strcmp is then compared to the value of the difference between s1[i] and s2[i]. For thoroughness, the operands are reversed and also checked.

Reviewers: sivachandra, PaulkaToast

Reviewed By: sivachandra, PaulkaToast

Subscribers: mgorny, tschuett, ecnelises, libc-commits

Tags: #libc-project

Differential Revision: https://reviews.llvm.org/D82247
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Summary:
Adds a fuzz test for string comparison.

This takes in two strings with associated lengths.
Verifies each string contains at least one character, and that the last character is the null terminator.
Then, finds the first instance where one of the following does not hold:
1. i &lt; min(size1, size2)
2. s1[i] == s2[i]
3. s1[i] != '\0'

The result of strcmp is then compared to the value of the difference between s1[i] and s2[i]. For thoroughness, the operands are reversed and also checked.

Reviewers: sivachandra, PaulkaToast

Reviewed By: sivachandra, PaulkaToast

Subscribers: mgorny, tschuett, ecnelises, libc-commits

Tags: #libc-project

Differential Revision: https://reviews.llvm.org/D82247
</pre>
</div>
</content>
</entry>
<entry>
<title>Add strcmp fuzz test.</title>
<updated>2020-06-23T11:20:39+00:00</updated>
<author>
<name>cgyurgyik</name>
<email>gyurgyikcp@gmail.com</email>
</author>
<published>2020-06-20T00:15:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/llvm.git/commit/?id=5540765be603676a6e93745bce0ca9f3cce3e6a0'/>
<id>5540765be603676a6e93745bce0ca9f3cce3e6a0</id>
<content type='text'>
Reviewed-by: todo
Differential Revision: https://reviews.llvm.org/D82247
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reviewed-by: todo
Differential Revision: https://reviews.llvm.org/D82247
</pre>
</div>
</content>
</entry>
<entry>
<title>[libc] Add fully-qualified target names.</title>
<updated>2020-04-11T01:01:52+00:00</updated>
<author>
<name>Siva Chandra Reddy</name>
<email>sivachandra@google.com</email>
</author>
<published>2020-03-04T23:45:51+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/llvm.git/commit/?id=e4767a6f1435164e6eb65c71a0a847812390a55e'/>
<id>e4767a6f1435164e6eb65c71a0a847812390a55e</id>
<content type='text'>
Only targets setup by the special LLVM libc rules now have fully
qualified names. The naming style is similar to fully qualified names in
Python.

Reviewers: abrachet, PaulkaToast, phosek

Differential Revision: https://reviews.llvm.org/D77340
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Only targets setup by the special LLVM libc rules now have fully
qualified names. The naming style is similar to fully qualified names in
Python.

Reviewers: abrachet, PaulkaToast, phosek

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