about summary refs log tree commit diff
path: root/src/afl-fuzz-mutators.c
diff options
context:
space:
mode:
authorDominik Maier <domenukk@gmail.com>2020-03-10 22:04:05 +0100
committerDominik Maier <domenukk@gmail.com>2020-03-10 22:04:05 +0100
commitcc1d6b33b1524d52b21a6e9794ee6b0d6a2a9d50 (patch)
tree717c62b52076b37cb9d4e4efc9f33cf09dea723b /src/afl-fuzz-mutators.c
parent2832cb643d90ff6bad7a6ba4ff139988f10b171a (diff)
downloadafl++-cc1d6b33b1524d52b21a6e9794ee6b0d6a2a9d50.tar.gz
unified pointer placement
Diffstat (limited to 'src/afl-fuzz-mutators.c')
-rw-r--r--src/afl-fuzz-mutators.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/afl-fuzz-mutators.c b/src/afl-fuzz-mutators.c
index 02d7661e..159b40c3 100644
--- a/src/afl-fuzz-mutators.c
+++ b/src/afl-fuzz-mutators.c
@@ -25,15 +25,15 @@
 
 #include "afl-fuzz.h"
 
-void load_custom_mutator(afl_state_t*, const char*);
+void load_custom_mutator(afl_state_t *, const char *);
 #ifdef USE_PYTHON
-void load_custom_mutator_py(afl_state_t*, const char*);
+void load_custom_mutator_py(afl_state_t *, const char *);
 #endif
 
-void setup_custom_mutator(afl_state_t* afl) {
+void setup_custom_mutator(afl_state_t *afl) {
 
   /* Try mutator library first */
-  u8* fn = getenv("AFL_CUSTOM_MUTATOR_LIBRARY");
+  u8 *fn = getenv("AFL_CUSTOM_MUTATOR_LIBRARY");
 
   if (fn) {
 
@@ -51,7 +51,7 @@ void setup_custom_mutator(afl_state_t* afl) {
 
   /* Try Python module */
 #ifdef USE_PYTHON
-  u8* module_name = getenv("AFL_PYTHON_MODULE");
+  u8 *module_name = getenv("AFL_PYTHON_MODULE");
 
   if (module_name) {
 
@@ -75,7 +75,7 @@ void setup_custom_mutator(afl_state_t* afl) {
 
 }
 
-void destroy_custom_mutator(afl_state_t* afl) {
+void destroy_custom_mutator(afl_state_t *afl) {
 
   if (afl->mutator) {
 
@@ -96,9 +96,9 @@ void destroy_custom_mutator(afl_state_t* afl) {
 
 }
 
-void load_custom_mutator(afl_state_t* afl, const char* fn) {
+void load_custom_mutator(afl_state_t *afl, const char *fn) {
 
-  void* dh;
+  void *dh;
   afl->mutator = ck_alloc(sizeof(struct custom_mutator));
 
   afl->mutator->name = fn;
@@ -190,7 +190,7 @@ void load_custom_mutator(afl_state_t* afl, const char* fn) {
 
 }
 
-u8 trim_case_custom(afl_state_t* afl, struct queue_entry* q, u8* in_buf) {
+u8 trim_case_custom(afl_state_t *afl, struct queue_entry *q, u8 *in_buf) {
 
   static u8 tmp[64];
   static u8 clean_trace[MAP_SIZE];
@@ -216,7 +216,7 @@ u8 trim_case_custom(afl_state_t* afl, struct queue_entry* q, u8* in_buf) {
 
     u32 cksum;
 
-    u8*    retbuf = NULL;
+    u8 *retbuf = NULL;
     size_t retlen = 0;
 
     afl->mutator->afl_custom_trim(afl, &retbuf, &retlen);
@@ -312,9 +312,9 @@ abort_trimming:
 }
 
 #ifdef USE_PYTHON
-void load_custom_mutator_py(afl_state_t* afl, const char* module_name) {
+void load_custom_mutator_py(afl_state_t *afl, const char *module_name) {
 
-  PyObject** py_functions = afl->py_functions;
+  PyObject **py_functions = afl->py_functions;
 
   afl->mutator = ck_alloc(sizeof(struct custom_mutator));