srdusr
aboutsummaryrefslogtreecommitdiffstats
path: root/fuzz/fuzz_ethernet.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'fuzz/fuzz_ethernet.cpp')
-rw-r--r--fuzz/fuzz_ethernet.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/fuzz/fuzz_ethernet.cpp b/fuzz/fuzz_ethernet.cpp
new file mode 100644
index 0000000..91aa6d5
--- /dev/null
+++ b/fuzz/fuzz_ethernet.cpp
@@ -0,0 +1,9 @@
+#include <cstddef>
+#include <cstdint>
+
+#include "wireframe/net/ethernet.hpp"
+
+extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
+ wireframe::net::parse_ethernet({data, size});
+ return 0;
+}