|
|
@ -96,6 +96,7 @@ static afl_forkserver_t fsrv = {0}; /* The forkserver */
|
|
|
|
/* Classify tuple counts. This is a slow & naive version, but good enough here.
|
|
|
|
/* Classify tuple counts. This is a slow & naive version, but good enough here.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//将模糊测试的错误数进行归并,在不造成太大影响的情况下减少运算、提升性能
|
|
|
|
static u8 count_class_lookup[256] = {
|
|
|
|
static u8 count_class_lookup[256] = {
|
|
|
|
|
|
|
|
|
|
|
|
[0] = 0,
|
|
|
|
[0] = 0,
|
|
|
@ -110,6 +111,7 @@ static u8 count_class_lookup[256] = {
|
|
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//结束子进程
|
|
|
|
static void kill_child() {
|
|
|
|
static void kill_child() {
|
|
|
|
|
|
|
|
|
|
|
|
if (fsrv.child_pid > 0) {
|
|
|
|
if (fsrv.child_pid > 0) {
|
|
|
|