HomePhabricator

fuzz: Update FuzzedDataProvider.h from upstream (LLVM)

Description

fuzz: Update FuzzedDataProvider.h from upstream (LLVM)

Summary:

Upstream revision: https://github.com/llvm/llvm-project/blob/6d0488f75bb2f37bcfe93fc8f59f6e78c9a0c939/compiler-rt/include/fuzzer/FuzzedDataProvider.h

Changes:
* [compiler-rt] FuzzedDataProvider: add ConsumeData and method.
* [compiler-rt] Fix a typo in a comment in FuzzedDataProvider.h.
* [compiler-rt] Add ConsumeRandomLengthString() version without arguments.
* [compiler-rt] Refactor FuzzedDataProvider for better readability.
* [compiler-rt] FuzzedDataProvider: make linter happy.
* [compiler-rt] Mark FDP non-template methods inline to avoid ODR violations.

Backport of core#20740 and core#20812.

Test Plan:

ninja bitcoin-fuzzers

Reviewers: #bitcoin_abc, PiRK

Reviewed By: #bitcoin_abc, PiRK

Differential Revision: https://reviews.bitcoinabc.org/D17963

Details

Provenance
practicalswift <practicalswift@users.noreply.github.com>Authored on Dec 21 2020, 23:19
FabienCommitted on Tue, Apr 22, 09:31
FabienPushed on Tue, Apr 22, 09:31
Reviewer
Restricted Project
Differential Revision
D17963: fuzz: Update FuzzedDataProvider.h from upstream (LLVM)
Parents
rABCb59ed33b3ac1: refactor: remove ::vpwallets and related global variables
Branches
Unknown
Tags
Unknown