mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-14 11:08:06 +00:00
update xxh3 to 0.8.0, fix is_ascii
This commit is contained in:
2
TODO.md
2
TODO.md
@ -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?)
|
||||||
|
3187
include/xxh3.h
3187
include/xxh3.h
File diff suppressed because it is too large
Load Diff
3751
include/xxhash.h
3751
include/xxhash.h
File diff suppressed because it is too large
Load Diff
@ -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++;
|
||||||
|
@ -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. */
|
||||||
|
Reference in New Issue
Block a user