LLVM  3.7.0
Public Member Functions | List of all members
MyFuzzer Class Reference
Inheritance diagram for MyFuzzer:
[legend]
Collaboration diagram for MyFuzzer:
[legend]

Public Member Functions

void TargetFunction (const uint8_t *Data, size_t Size)
 Executes the target function on 'Size' bytes of 'Data'. More...
 
virtual size_t Mutate (uint8_t *Data, size_t Size, size_t MaxSize)
 Mutates 'Size' bytes of data in 'Data' inplace into up to 'MaxSize' bytes, returns the new size of the data, which should be positive. More...
 
- Public Member Functions inherited from fuzzer::UserSuppliedFuzzer
virtual size_t CrossOver (const uint8_t *Data1, size_t Size1, const uint8_t *Data2, size_t Size2, uint8_t *Out, size_t MaxOutSize)
 Crosses 'Data1' and 'Data2', writes up to 'MaxOutSize' bytes into Out, returns the number of bytes written, which should be positive. More...
 
virtual ~UserSuppliedFuzzer ()
 

Additional Inherited Members

- Protected Member Functions inherited from fuzzer::UserSuppliedFuzzer
size_t BasicMutate (uint8_t *Data, size_t Size, size_t MaxSize)
 These can be called internally by Mutate and CrossOver. More...
 
size_t BasicCrossOver (const uint8_t *Data1, size_t Size1, const uint8_t *Data2, size_t Size2, uint8_t *Out, size_t MaxOutSize)
 

Detailed Description

Definition at line 15 of file UserSuppliedFuzzerTest.cpp.

Member Function Documentation

virtual size_t MyFuzzer::Mutate ( uint8_t *  Data,
size_t  Size,
size_t  MaxSize 
)
inlinevirtual

Mutates 'Size' bytes of data in 'Data' inplace into up to 'MaxSize' bytes, returns the new size of the data, which should be positive.

Reimplemented from fuzzer::UserSuppliedFuzzer.

Definition at line 32 of file UserSuppliedFuzzerTest.cpp.

References fuzzer::UserSuppliedFuzzer::BasicMutate(), kMagic, and fuzzer::min().

void MyFuzzer::TargetFunction ( const uint8_t *  Data,
size_t  Size 
)
inlinevirtual

Executes the target function on 'Size' bytes of 'Data'.

Implements fuzzer::UserSuppliedFuzzer.

Definition at line 17 of file UserSuppliedFuzzerTest.cpp.

References kMagic.


The documentation for this class was generated from the following file: