aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorroot <root@localhost.localdomain>2020-06-29 18:48:17 +0200
committerroot <root@localhost.localdomain>2020-06-29 18:48:17 +0200
commit4b99ebbf22fa7a9d4fe43056c641e71af04133be (patch)
tree5996de2ac10cb0a4effb295c2f667f54f31e57aa /include
parent6d9b29daca46c8912aa9ddf6c053bc8554e9e9f7 (diff)
downloadafl++-4b99ebbf22fa7a9d4fe43056c641e71af04133be.tar.gz
Revert "Merge branch 'text_inputs' into dev"
This reverts commit 6d9b29daca46c8912aa9ddf6c053bc8554e9e9f7, reversing changes made to 07648f75ea5ef8f03a92db0c7566da8c229dc27b.
Diffstat (limited to 'include')
-rw-r--r--include/afl-fuzz.h7
-rw-r--r--include/config.h26
2 files changed, 4 insertions, 29 deletions
diff --git a/include/afl-fuzz.h b/include/afl-fuzz.h
index ca785e47..c9f84c61 100644
--- a/include/afl-fuzz.h
+++ b/include/afl-fuzz.h
@@ -139,8 +139,7 @@ struct queue_entry {
var_behavior, /* Variable behavior? */
favored, /* Currently favored? */
fs_redundant, /* Marked as redundant in the fs? */
- fully_colorized, /* Do not run redqueen stage again */
- is_ascii; /* Is the input just ascii text? */
+ fully_colorized; /* Do not run redqueen stage again */
u32 bitmap_size, /* Number of bits set in bitmap */
fuzz_level; /* Number of fuzzing iterations */
@@ -948,7 +947,7 @@ u8 input_to_state_stage(afl_state_t *afl, u8 *orig_buf, u8 *buf, u32 len,
u64 exec_cksum);
/* xoshiro256** */
-uint32_t rand_next(afl_state_t *afl);
+uint64_t rand_next(afl_state_t *afl);
/**** Inline routines ****/
@@ -968,7 +967,7 @@ static inline u32 rand_below(afl_state_t *afl, u32 limit) {
}
- return (rand_next(afl) % limit);
+ return rand_next(afl) % limit;
}
diff --git a/include/config.h b/include/config.h
index 09405a22..087e0a76 100644
--- a/include/config.h
+++ b/include/config.h
@@ -293,7 +293,7 @@
/* Call count interval between reseeding the libc PRNG from /dev/urandom: */
-#define RESEED_RNG 256000
+#define RESEED_RNG 100000
/* Maximum line length passed from GCC to 'as' and used for parsing
configuration files: */
@@ -397,29 +397,5 @@
// #define IGNORE_FINDS
-/* Text mutations */
-
-/* What is the minimum length of a queue input to be evaluated for "is_ascii"?
- */
-
-#define AFL_TXT_MIN_LEN 12
-
-/* What is the minimum percentage of ascii characters present to be classifed
- as "is_ascii"? */
-
-#define AFL_TXT_MIN_PERCENT 95
-
-/* How often to perform ASCII mutations 0 = disable, 1-8 are good values */
-
-#define AFL_TXT_BIAS 8
-
-/* Maximum length of a string to tamper with */
-
-#define AFL_TXT_STRING_MAX_LEN 1024
-
-/* Maximum mutations on a string */
-
-#define AFL_TXT_STRING_MAX_MUTATIONS 6
-
#endif /* ! _HAVE_CONFIG_H */