|
LLVM
4.0.0
|
#include "FuzzerDictionary.h"#include "FuzzerInternal.h"#include "FuzzerIO.h"#include "FuzzerMutate.h"#include "FuzzerRandom.h"#include "FuzzerTracePC.h"#include <algorithm>#include <cstring>#include <map>#include <set>#include <thread>Go to the source code of this file.
Classes | |
| struct | fuzzer::TraceBasedMutation |
| class | fuzzer::TraceState |
Namespaces | |
| fuzzer | |
Macros | |
| #define | LLVM_FUZZER_DEFINES_SANITIZER_WEAK_HOOOKS 1 |
Functions | |
| static size_t | fuzzer::InternalStrnlen (const char *S, size_t MaxLen) |
| void | __sanitizer_weak_hook_memcmp (void *caller_pc, const void *s1, const void *s2, size_t n, int result) |
| void | __sanitizer_weak_hook_strncmp (void *caller_pc, const char *s1, const char *s2, size_t n, int result) |
| void | __sanitizer_weak_hook_strcmp (void *caller_pc, const char *s1, const char *s2, int result) |
| void | __sanitizer_weak_hook_strncasecmp (void *called_pc, const char *s1, const char *s2, size_t n, int result) |
| void | __sanitizer_weak_hook_strcasecmp (void *called_pc, const char *s1, const char *s2, int result) |
| void | __sanitizer_weak_hook_strstr (void *called_pc, const char *s1, const char *s2, char *result) |
| void | __sanitizer_weak_hook_strcasestr (void *called_pc, const char *s1, const char *s2, char *result) |
| void | __sanitizer_weak_hook_memmem (void *called_pc, const void *s1, size_t len1, const void *s2, size_t len2, void *result) |
Variables | |
| static bool | fuzzer::RecordingMemcmp = false |
| static bool | fuzzer::RecordingMemmem = false |
| static bool | fuzzer::DoingMyOwnMemmem = false |
| static TraceState * | fuzzer::TS |
| #define LLVM_FUZZER_DEFINES_SANITIZER_WEAK_HOOOKS 1 |
Definition at line 214 of file FuzzerTraceState.cpp.
| void __sanitizer_weak_hook_memcmp | ( | void * | caller_pc, |
| const void * | s1, | ||
| const void * | s2, | ||
| size_t | n, | ||
| int | result | ||
| ) |
Definition at line 218 of file FuzzerTraceState.cpp.
References fuzzer::TracePC::AddValueForMemcmp(), fuzzer::RecordingMemcmp, fuzzer::TPC, fuzzer::TraceState::TraceMemcmpCallback(), and fuzzer::TS.
| void __sanitizer_weak_hook_memmem | ( | void * | called_pc, |
| const void * | s1, | ||
| size_t | len1, | ||
| const void * | s2, | ||
| size_t | len2, | ||
| void * | result | ||
| ) |
Definition at line 271 of file FuzzerTraceState.cpp.
References fuzzer::TraceState::AddInterestingWord(), fuzzer::DoingMyOwnMemmem, and fuzzer::TS.
| void __sanitizer_weak_hook_strcasecmp | ( | void * | called_pc, |
| const char * | s1, | ||
| const char * | s2, | ||
| int | result | ||
| ) |
Definition at line 259 of file FuzzerTraceState.cpp.
References __sanitizer_weak_hook_strcmp().
| void __sanitizer_weak_hook_strcasestr | ( | void * | called_pc, |
| const char * | s1, | ||
| const char * | s2, | ||
| char * | result | ||
| ) |
Definition at line 267 of file FuzzerTraceState.cpp.
References fuzzer::TraceState::AddInterestingWord(), and fuzzer::TS.
| void __sanitizer_weak_hook_strcmp | ( | void * | caller_pc, |
| const char * | s1, | ||
| const char * | s2, | ||
| int | result | ||
| ) |
Definition at line 242 of file FuzzerTraceState.cpp.
References fuzzer::TracePC::AddValueForStrcmp(), fuzzer::min(), N, fuzzer::RecordingMemcmp, fuzzer::TPC, fuzzer::TraceState::TraceMemcmpCallback(), and fuzzer::TS.
Referenced by __sanitizer_weak_hook_strcasecmp().
| void __sanitizer_weak_hook_strncasecmp | ( | void * | called_pc, |
| const char * | s1, | ||
| const char * | s2, | ||
| size_t | n, | ||
| int | result | ||
| ) |
Definition at line 255 of file FuzzerTraceState.cpp.
References __sanitizer_weak_hook_strncmp().
| void __sanitizer_weak_hook_strncmp | ( | void * | caller_pc, |
| const char * | s1, | ||
| const char * | s2, | ||
| size_t | n, | ||
| int | result | ||
| ) |
Definition at line 228 of file FuzzerTraceState.cpp.
References fuzzer::TracePC::AddValueForStrcmp(), fuzzer::InternalStrnlen(), fuzzer::min(), fuzzer::RecordingMemcmp, fuzzer::TPC, fuzzer::TraceState::TraceMemcmpCallback(), and fuzzer::TS.
Referenced by __sanitizer_weak_hook_strncasecmp().
| void __sanitizer_weak_hook_strstr | ( | void * | called_pc, |
| const char * | s1, | ||
| const char * | s2, | ||
| char * | result | ||
| ) |
Definition at line 263 of file FuzzerTraceState.cpp.
References fuzzer::TraceState::AddInterestingWord(), and fuzzer::TS.
1.8.6