|
@@ -0,0 +1,19 @@
|
|
|
+/*
|
|
|
+ * Copyright (c) 2020-2023, the SerenityOS developers.
|
|
|
+ *
|
|
|
+ * SPDX-License-Identifier: BSD-2-Clause
|
|
|
+ */
|
|
|
+
|
|
|
+#include <AK/StringView.h>
|
|
|
+#include <Shell/PosixParser.h>
|
|
|
+#include <Shell/Shell.h>
|
|
|
+#include <stddef.h>
|
|
|
+#include <stdint.h>
|
|
|
+
|
|
|
+extern "C" int LLVMFuzzerTestOneInput(uint8_t const* data, size_t size)
|
|
|
+{
|
|
|
+ auto source = StringView(static_cast<unsigned char const*>(data), size);
|
|
|
+ Shell::Posix::Parser parser(source);
|
|
|
+ (void)parser.parse();
|
|
|
+ return 0;
|
|
|
+}
|