Fix some compilation issues

This commit is contained in:
momo5502
2025-01-05 13:11:32 +01:00
parent c07fb2ca86
commit 05e75a20ba
5 changed files with 18 additions and 9 deletions

View File

@@ -8,7 +8,7 @@ namespace fuzzer
class fuzzing_context
{
public:
fuzzing_context(input_generator& generator, handler& handler)
fuzzing_context(input_generator& generator, fuzzing_handler& handler)
: generator(generator)
, handler(handler)
{
@@ -36,7 +36,7 @@ namespace fuzzer
}
input_generator& generator;
handler& handler;
fuzzing_handler& handler;
std::atomic_uint64_t executions{0};
private:
@@ -110,7 +110,7 @@ namespace fuzzer
};
}
void run(handler& handler, const size_t concurrency)
void run(fuzzing_handler& handler, const size_t concurrency)
{
input_generator generator{};
fuzzing_context context{generator, handler};

View File

@@ -23,9 +23,9 @@ namespace fuzzer
const std::function<coverage_functor>& coverage_handler) = 0;
};
struct handler
struct fuzzing_handler
{
virtual ~handler() = default;
virtual ~fuzzing_handler() = default;
virtual std::unique_ptr<executer> make_executer() = 0;
@@ -35,5 +35,5 @@ namespace fuzzer
}
};
void run(handler& handler, size_t concurrency = std::thread::hardware_concurrency());
void run(fuzzing_handler& handler, size_t concurrency = std::thread::hardware_concurrency());
}

View File

@@ -1,4 +1,5 @@
#include "random_generator.hpp"
#include <cstring>
namespace fuzzer
{