Skip to content
Snippets Groups Projects
Commit cae3e48e authored by Anh Nguyen-Tuong's avatar Anh Nguyen-Tuong
Browse files

Do not include afl config.h directly

parent 3aed3dfa
No related branches found
No related tags found
No related merge requests found
......@@ -5,8 +5,6 @@ extern "C" {
// config.h is a header from the afl distro
// make sure afl has been downloaded and AFL_PATH is set properly
#include "config.h"
extern void zafl_initAflForkServer();
extern void zafl_bbInstrument(unsigned short id);
......
......@@ -20,6 +20,7 @@
#include <stdlib.h>
#include <stdint.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/shm.h>
......@@ -27,7 +28,13 @@
#include <stdio.h>
#include <string.h>
#include "config.h"
// these must match config.h in AFL source code
#define SHM_ENV_VAR "__AFL_SHM_ID"
#define FORKSRV_FD 198
#define MAP_SIZE_POW2 16
#define MAP_SIZE (1 << MAP_SIZE_POW2)
typedef uint8_t u8;
typedef int32_t s32;
// externally visible so that Zipr transformations can access directly
u8* zafl_trace_map = NULL;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment