update xxh3 to 0.8.0, fix is_ascii

This commit is contained in:
van Hauser
2020-09-03 09:59:23 +02:00
parent 020b8a4964
commit 4c48d3a3ad
5 changed files with 3461 additions and 3502 deletions

View File

@ -7,7 +7,6 @@
- afl-plot to support multiple plot_data - afl-plot to support multiple plot_data
- afl_custom_fuzz_splice_optin() - afl_custom_fuzz_splice_optin()
- intel-pt tracer - intel-pt tracer
- honor -O flags and -fno-unroll-loops in afl-cc
## Further down the road ## Further down the road
@ -22,7 +21,6 @@ gcc_plugin:
- (wait for submission then decide) - (wait for submission then decide)
qemu_mode: qemu_mode:
- update to 5.x (if the performance bug is gone)
- non colliding instrumentation - non colliding instrumentation
- rename qemu specific envs to AFL_QEMU (AFL_ENTRYPOINT, AFL_CODE_START/END, - rename qemu specific envs to AFL_QEMU (AFL_ENTRYPOINT, AFL_CODE_START/END,
AFL_COMPCOV_LEVEL?) AFL_COMPCOV_LEVEL?)

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -138,9 +138,9 @@ static u8 check_if_text(struct queue_entry *q) {
} }
// non-overlong 2-byte // non-overlong 2-byte
if (((0xC2 <= buf[offset + 0] && buf[offset + 0] <= 0xDF) && if (len - offset > 1 &&
(0x80 <= buf[offset + 1] && buf[offset + 1] <= 0xBF)) && ((0xC2 <= buf[offset + 0] && buf[offset + 0] <= 0xDF) &&
len - offset > 1) { (0x80 <= buf[offset + 1] && buf[offset + 1] <= 0xBF))) {
offset += 2; offset += 2;
utf8++; utf8++;

View File

@ -22,7 +22,10 @@
#include <stdint.h> #include <stdint.h>
#include "afl-fuzz.h" #include "afl-fuzz.h"
#include "types.h" #include "types.h"
#include "xxh3.h"
#define XXH_INLINE_ALL
#include "xxhash.h"
#undef XXH_INLINE_ALL
/* we use xoshiro256** instead of rand/random because it is 10x faster and has /* we use xoshiro256** instead of rand/random because it is 10x faster and has
better randomness properties. */ better randomness properties. */