Crate bitcoin_fuzz
source ·Modules
Structs
- | Track blocks mined for test |
- | In addition to the comments below, the | API is also briefly documented at | https://github.com/google/fuzzing/blob/master/docs/split-inputs.md#fuzzed-data-provider |
- | Tester class for TxRequestTracker | | It includes a naive reimplementation | of its behavior, for a limited set of | MAX_TXHASHES distinct txids, and MAX_PEERS | peer identifiers. | | All of the public member functions perform | the same operation on an actual TxRequestTracker | and on the state of the reimplementation. | | The output of GetRequestable is compared | with the expected value as well. | | Check() calls the TxRequestTracker’s | sanity check, plus compares the output | of the constant accessors (Size(), | CountLoad(), CountTracked()) with | expected values. |
Constants
- | asmap code that consumes nothing |
Traits
Functions
- | For backwards compatibility checking. |
- | Returns a byte vector of specified size | regardless of the number of remaining | bytes available from the fuzzer. Pads | with zero value bytes if needed to achieve | the specified size. |
- | Fill addrman with lots of addresses | from lots of sources. |
- | This function is used by libFuzzer |
- | This function is used by libFuzzer |
- | Generate a random address. Always returns | a valid address. |
- | Sets a fuzzed errno in the range [0, 133 | (EHWPOISON)]. Can be used from functions | emulating standard library functions | that set errno, or in other contexts | where the value of errno might be relevant | for the execution path that will be taken. |
- | Sets errno to a value selected from the | given std::array
errnos
. |