diff options
author | Robert Swiecki <robert@swiecki.net> | 2020-03-25 15:46:33 +0100 |
---|---|---|
committer | Robert Swiecki <robert@swiecki.net> | 2020-03-25 16:17:41 +0100 |
commit | 6c70071872703e5ef4ec621a53842e6d3bb987a1 (patch) | |
tree | 540271eb54251e19336931eff3e41c7a6a24ea7c /honggfuzz.h | |
parent | 6c71dfdf329a6171e7661313dfc462e8ce3f2b15 (diff) | |
download | honggfuzz-6c70071872703e5ef4ec621a53842e6d3bb987a1.tar.gz |
all: use struct dynfile_t inside run_t
Diffstat (limited to 'honggfuzz.h')
-rw-r--r-- | honggfuzz.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/honggfuzz.h b/honggfuzz.h index e55f6418..af36cf2b 100644 --- a/honggfuzz.h +++ b/honggfuzz.h @@ -169,11 +169,12 @@ struct dynfile_t { size_t size; uint64_t cov[4]; size_t idx; + int fd; int64_t timeAddedMillis; uint64_t timeExecMillis; char path[PATH_MAX]; + uint8_t* data; TAILQ_ENTRY(dynfile_t) pointers; - uint8_t data[]; }; struct strings_t { @@ -355,7 +356,6 @@ typedef struct { honggfuzz_t* global; pid_t pid; int64_t timeStartedMillis; - char origFileName[PATH_MAX]; char crashFileName[PATH_MAX]; uint64_t pc; uint64_t backtrace; @@ -364,10 +364,8 @@ typedef struct { char report[_HF_REPORT_SIZE]; bool mainWorker; unsigned mutationsPerRun; - uint8_t* dynamicFile; - size_t dynamicFileSz; + struct dynfile_t* dynfile; bool staticFileTryMore; - int dynamicFileFd; uint32_t fuzzNo; int persistentSock; bool waitingForReady; |