Fuzzers: Add HID Report Descriptor fuzzer

This commit is contained in:
Sönke Holz committed 2025-02-14 21:58:17 +01:00
1 parent 61aad6e90d
commit 6f6822084f
3 files changed
+18

No files matched your search

@@ -0,0 +1,15 @@
/*
* Copyright (c) 2025, Sönke Holz <[email protected]>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <LibHID/ReportDescriptorParser.h>
extern "C" int LLVMFuzzerTestOneInput(u8 const* data, size_t size)
{
AK::set_debug_enabled(false);
HID::ReportDescriptorParser parser { { data, size } };
(void)parser.parse();
return 0;
}
+2
View File
@@ -14,6 +14,7 @@ set(FUZZER_TARGETS
GIFLoader
GzipDecompression
GzipRoundtrip
HIDReportDescriptor
HttpRequest
ICCProfile
ICOLoader
@@ -89,6 +90,7 @@ set(FUZZER_DEPENDENCIES_Gemini LibGemini)
set(FUZZER_DEPENDENCIES_GIFLoader LibGfx)
set(FUZZER_DEPENDENCIES_GzipDecompression LibCompress)
set(FUZZER_DEPENDENCIES_GzipRoundtrip LibCompress)
set(FUZZER_DEPENDENCIES_HIDReportDescriptor LibHID)
set(FUZZER_DEPENDENCIES_HttpRequest LibHTTP)
set(FUZZER_DEPENDENCIES_ICCProfile LibGfx)
set(FUZZER_DEPENDENCIES_ICOLoader LibGfx)
+1
View File
@@ -28,6 +28,7 @@
T(GIFLoader) \
T(GzipDecompression) \
T(GzipRoundtrip) \
T(HIDReportDescriptor) \
T(HttpRequest) \
T(ICCProfile) \
T(ICOLoader) \