mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-14 11:08:06 +00:00
code-format
This commit is contained in:
@ -27,6 +27,7 @@ sending a mail to <afl-users+subscribe@googlegroups.com>.
|
||||
- if determinstic mode is active (-D, or -M without -d) then we sync
|
||||
after every queue entry as this can take very long time otherwise
|
||||
- better detection if a target needs a large shared map
|
||||
- fix for -Z
|
||||
- switched to an even faster RNG
|
||||
- added hghwng's patch for faster trace map analysis
|
||||
- afl-cc
|
||||
|
@ -287,7 +287,7 @@ typedef uint32_t XXH32_hash_t;
|
||||
#else
|
||||
#include <limits.h>
|
||||
#if UINT_MAX == 0xFFFFFFFFUL
|
||||
typedef unsigned int XXH32_hash_t;
|
||||
typedef unsigned int XXH32_hash_t;
|
||||
#else
|
||||
#if ULONG_MAX == 0xFFFFFFFFUL
|
||||
typedef unsigned long XXH32_hash_t;
|
||||
|
@ -68,7 +68,7 @@ class CompareTransform : public ModulePass {
|
||||
const char *getPassName() const override {
|
||||
|
||||
#else
|
||||
StringRef getPassName() const override {
|
||||
StringRef getPassName() const override {
|
||||
|
||||
#endif
|
||||
return "transforms compare functions";
|
||||
|
@ -1632,8 +1632,11 @@ int main(int argc, char **argv_orig, char **envp) {
|
||||
|
||||
afl->current_entry = 0;
|
||||
while (unlikely(afl->queue_buf[afl->current_entry]->disabled)) {
|
||||
|
||||
++afl->current_entry;
|
||||
|
||||
}
|
||||
|
||||
afl->queue_cur = afl->queue_buf[afl->current_entry];
|
||||
|
||||
if (unlikely(seek_to)) {
|
||||
|
@ -284,7 +284,7 @@ library_list_t *find_library(char *name) {
|
||||
// this seems to work for clang too. nice :) requires gcc 4.4+
|
||||
#pragma GCC push_options
|
||||
#pragma GCC optimize("O0")
|
||||
void breakpoint(void) {
|
||||
void breakpoint(void) {
|
||||
|
||||
if (debug) fprintf(stderr, "Breakpoint function \"breakpoint\" reached.\n");
|
||||
|
||||
|
@ -161,8 +161,8 @@ static void __tokencap_load_mappings(void) {
|
||||
|
||||
#elif defined __FreeBSD__ || defined __OpenBSD__ || defined __NetBSD__
|
||||
|
||||
#if defined __FreeBSD__
|
||||
int mib[] = {CTL_KERN, KERN_PROC, KERN_PROC_VMMAP, __tokencap_pid};
|
||||
#if defined __FreeBSD__
|
||||
int mib[] = {CTL_KERN, KERN_PROC, KERN_PROC_VMMAP, __tokencap_pid};
|
||||
#elif defined __OpenBSD__
|
||||
int mib[] = {CTL_KERN, KERN_PROC_VMMAP, __tokencap_pid};
|
||||
#elif defined __NetBSD__
|
||||
@ -177,7 +177,7 @@ static void __tokencap_load_mappings(void) {
|
||||
|
||||
#if defined __FreeBSD__ || defined __NetBSD__
|
||||
len = len * 4 / 3;
|
||||
#elif defined __OpenBSD__
|
||||
#elif defined __OpenBSD__
|
||||
len -= len % sizeof(struct kinfo_vmentry);
|
||||
#endif
|
||||
|
||||
@ -202,8 +202,8 @@ static void __tokencap_load_mappings(void) {
|
||||
|
||||
#if defined __FreeBSD__ || defined __NetBSD__
|
||||
|
||||
#if defined __FreeBSD__
|
||||
size_t size = region->kve_structsize;
|
||||
#if defined __FreeBSD__
|
||||
size_t size = region->kve_structsize;
|
||||
|
||||
if (size == 0) break;
|
||||
#elif defined __NetBSD__
|
||||
|
@ -51,7 +51,7 @@ __AFL_FUZZ_INIT();
|
||||
/* To ensure checks are not optimized out it is recommended to disable
|
||||
code optimization for the fuzzer harness main() */
|
||||
#pragma clang optimize off
|
||||
#pragma GCC optimize("O0")
|
||||
#pragma GCC optimize("O0")
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
|
||||
|
@ -24,7 +24,7 @@ __AFL_FUZZ_INIT();
|
||||
/* To ensure checks are not optimized out it is recommended to disable
|
||||
code optimization for the fuzzer harness main() */
|
||||
#pragma clang optimize off
|
||||
#pragma GCC optimize("O0")
|
||||
#pragma GCC optimize("O0")
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
|
||||
|
Reference in New Issue
Block a user