| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
[libc] Adds fuzz test for strstr and alphabetizes string fuzz CMakeList. Reviewed By: sivachandra Differential Revision: https://reviews.llvm.org/D84611 | 5 年前 | |
[libc] This commit fixes the strcmp fuzzing test. It uses a single input and 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 | 5 年前 | |
[libc][NFC] Make all top of file comments consistent. Summary: Made all header files consistent based of this documentation: https://llvm.org/docs/CodingStandards.html#file-headers. And did the same for all source files top of file comments. Reviewers: sivachandra, abrachet Reviewed By: sivachandra, abrachet Subscribers: MaskRay, tschuett, libc-commits Tags: #libc-project Differential Revision: https://reviews.llvm.org/D77533 | 6 年前 | |
[libc] Adds fuzz test for strstr and alphabetizes string fuzz CMakeList. Reviewed By: sivachandra Differential Revision: https://reviews.llvm.org/D84611 | 5 年前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 5 年前 | ||
| 5 年前 | ||
| 6 年前 | ||
| 5 年前 |