hanchenye-llvm-project/compiler-rt
Max Moroz a0eb49c26e [libFuzzer] Improve FuzzedDataProvider helper.
Summary:
The following changes are made based on the feedback from Tim King:
- Removed default template parameters, to have less assumptions.
- Implemented `ConsumeBytesWithTerminator` method.
- Made `PickValueInArray` method work with `initializer_list` argument.
- Got rid of `data_type` type alias, that was redundant.
- Refactored `ConsumeBytes` logic into a private method for better code reuse.
- Replaced implementation defined unsigned to signed conversion.
- Fixed `ConsumeRandomLengthString` to always call `shrink_to_fit`.
- Clarified and fixed some commments.
- Applied clang-format to both the library and the unittest source.

Tested on Linux, Mac, Windows.

Reviewers: morehouse, metzman

Reviewed By: morehouse

Subscribers: delcypher, #sanitizers, llvm-commits, kcc

Tags: #llvm, #sanitizers

Differential Revision: https://reviews.llvm.org/D63348

llvm-svn: 363735
2019-06-18 20:29:11 +00:00
..
cmake [compiler-rt][SystemZ] Work around ASAN failures via -fno-partial-inlining 2019-06-18 13:26:27 +00:00
docs
include [dfsan] Introduce dfsan_flush(). 2019-06-13 20:11:06 +00:00
lib [libFuzzer] Improve FuzzedDataProvider helper. 2019-06-18 20:29:11 +00:00
test Disable recently added Darwin symbolization tests for iOS. 2019-06-18 01:38:03 +00:00
unittests [Darwin][NFC] Refactor throttling of 64bit sanitizer tests on Darwin 2019-02-27 19:06:20 +00:00
utils Update the ioctl(2) list in sanitizers with NetBSD 8.99.34 2019-02-05 22:20:25 +00:00
www Adjust documentation for git migration. 2019-01-29 16:37:27 +00:00
.arcconfig
.gitignore
CMakeLists.txt [compiler-rt][SystemZ] Work around ASAN failures via -fno-partial-inlining 2019-06-18 13:26:27 +00:00
CODE_OWNERS.TXT
CREDITS.TXT
LICENSE.TXT Fix typos throughout the license files that somehow I and my reviewers 2019-01-21 09:52:34 +00:00
README.txt

README.txt

Compiler-RT
================================

This directory and its subdirectories contain source code for the compiler
support routines.

Compiler-RT is open source software. You may freely distribute it under the
terms of the license agreement found in LICENSE.txt.

================================