Bitcoin Core 28.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
descriptor.cpp File Reference
#include <test/fuzz/util/descriptor.h>
#include <ranges>
#include <stack>
Include dependency graph for descriptor.cpp:

Go to the source code of this file.

Functions

bool HasDeepDerivPath (const FuzzBufferType &buff, const int max_depth)
 Whether the buffer, if it represents a valid descriptor, contains a derivation path deeper than a given maximum depth.
 
bool HasTooManySubFrag (const FuzzBufferType &buff, const int max_subs, const size_t max_nested_subs)
 Whether the buffer, if it represents a valid descriptor, contains a fragment with more sub-fragments than the given maximum.
 
bool HasTooManyWrappers (const FuzzBufferType &buff, const int max_wrappers)
 Whether the buffer, if it represents a valid descriptor, contains a fragment with more wrappers than the given maximum.
 

Function Documentation

◆ HasDeepDerivPath()

bool HasDeepDerivPath ( const FuzzBufferType & buff,
const int max_depth = MAX_DEPTH )

Whether the buffer, if it represents a valid descriptor, contains a derivation path deeper than a given maximum depth.

Note this may also be hit for deriv paths in origins.

Definition at line 77 of file descriptor.cpp.

Here is the caller graph for this function:

◆ HasTooManySubFrag()

bool HasTooManySubFrag ( const FuzzBufferType & buff,
const int max_subs,
const size_t max_nested_subs )

Whether the buffer, if it represents a valid descriptor, contains a fragment with more sub-fragments than the given maximum.

Definition at line 91 of file descriptor.cpp.

Here is the caller graph for this function:

◆ HasTooManyWrappers()

bool HasTooManyWrappers ( const FuzzBufferType & buff,
const int max_wrappers )

Whether the buffer, if it represents a valid descriptor, contains a fragment with more wrappers than the given maximum.

Definition at line 115 of file descriptor.cpp.

Here is the caller graph for this function: