Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
fuzz_dynarray.cc File Reference

Compare DynArray operations with a vector reference model. More...

#include <algorithm>
#include <cstddef>
#include <cstdint>
#include <cstdlib>
#include <vector>
#include <tpl_dynArray.H>
Include dependency graph for fuzz_dynarray.cc:

Go to the source code of this file.

Functions

int LLVMFuzzerTestOneInput (const uint8_t *data, size_t size)
 Exercise bounded sequences of DynArray mutations.
 

Detailed Description

Compare DynArray operations with a vector reference model.

Definition in file fuzz_dynarray.cc.

Function Documentation

◆ LLVMFuzzerTestOneInput()

int LLVMFuzzerTestOneInput ( const uint8_t *  data,
size_t  size 
)

Exercise bounded sequences of DynArray mutations.

Parameters
dataFuzzer-generated operation bytes.
sizeNumber of available bytes.
Returns
Zero when every state matches the reference model.
Note
Processes at most 256 operations and holds at most 64 elements.

Definition at line 50 of file fuzz_dynarray.cc.

References Aleph::DynArray< T >::append(), Aleph::DynArray< T >::cut(), Aleph::DynArray< T >::pop(), Aleph::DynArray< T >::reverse(), Aleph::DynArray< T >::size(), Aleph::size(), and value.