diff options
author | vanhauser-thc <vh@thc.org> | 2021-07-19 10:58:19 +0200 |
---|---|---|
committer | vanhauser-thc <vh@thc.org> | 2021-07-19 10:58:19 +0200 |
commit | 32a0d6ac31554a47dca591f8978982758fb87677 (patch) | |
tree | be2ffd03f136dbecd408c73e4bc250ae249a4180 /src/afl-fuzz-one.c | |
parent | 815161827689c339d335233b7b232ac9b120b79b (diff) | |
download | afl++-32a0d6ac31554a47dca591f8978982758fb87677.tar.gz |
Revert "Merge branch 'release' into stable"
This reverts commit 815161827689c339d335233b7b232ac9b120b79b, reversing changes made to 9321a24e682b5c8bf6278961bd014cb883b87295.
Diffstat (limited to 'src/afl-fuzz-one.c')
-rw-r--r-- | src/afl-fuzz-one.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/afl-fuzz-one.c b/src/afl-fuzz-one.c index 1bc5854e..7274f679 100644 --- a/src/afl-fuzz-one.c +++ b/src/afl-fuzz-one.c @@ -2102,10 +2102,10 @@ havoc_stage: case 8 ... 9: { - case 8 ... 9: { - /* Set word to interesting value, little endian. */ + if (temp_len < 2) { break; } + #ifdef INTROSPECTION snprintf(afl->m_tmp, sizeof(afl->m_tmp), " INTERESTING16"); strcat(afl->mutation, afl->m_tmp); @@ -2119,7 +2119,7 @@ havoc_stage: case 10 ... 11: { - /* Set word to interesting value, randomly choosing endian. */ + /* Set word to interesting value, big endian. */ if (temp_len < 2) { break; } @@ -2136,10 +2136,10 @@ havoc_stage: case 12 ... 13: { - case 12 ... 13: { - /* Set dword to interesting value, little endian. */ + if (temp_len < 4) { break; } + #ifdef INTROSPECTION snprintf(afl->m_tmp, sizeof(afl->m_tmp), " INTERESTING32"); strcat(afl->mutation, afl->m_tmp); @@ -2153,7 +2153,7 @@ havoc_stage: case 14 ... 15: { - /* Set dword to interesting value, randomly choosing endian. */ + /* Set dword to interesting value, big endian. */ if (temp_len < 4) { break; } |