Page MenuHomePhabricator

fuzz: Update FuzzedDataProvider.h from upstream (LLVM)
ClosedPublic

Authored by Fabien on Tue, Apr 22, 09:04.

Details

Reviewers
PiRK
Group Reviewers
Restricted Project
Commits
rABC648527259e11: 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

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable