mirror of
https://github.com/SerenityOS/serenity.git
synced 2026-11-07 04:29:30 -10:00
Fuzzers: Add HID Report Descriptor fuzzer
This commit is contained in:
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;
|
||||
}
|
||||
@@ -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)
|
||||
|
||||
@@ -28,6 +28,7 @@
|
||||
T(GIFLoader) \
|
||||
T(GzipDecompression) \
|
||||
T(GzipRoundtrip) \
|
||||
T(HIDReportDescriptor) \
|
||||
T(HttpRequest) \
|
||||
T(ICCProfile) \
|
||||
T(ICOLoader) \
|
||||
|
||||
Reference in new issue
Block a user