mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-29 16:21:29 +00:00
Lagom/Fuzzers: Add fuzzer for the LibTLS ASN1 parser
This commit is contained in:
parent
3f5a6be69f
commit
4f5d71b4e8
Notes:
sideshowbarker
2024-07-18 03:43:27 +09:00
Author: https://github.com/bgianfo Commit: https://github.com/SerenityOS/serenity/commit/4f5d71b4e85 Pull-request: https://github.com/SerenityOS/serenity/pull/10108 Reviewed-by: https://github.com/alimpfard
|
@ -43,6 +43,7 @@ add_simple_fuzzer(FuzzMarkdown LagomMarkdown)
|
|||
add_simple_fuzzer(FuzzRegexECMA262 LagomRegex)
|
||||
add_simple_fuzzer(FuzzRegexPosixBasic LagomRegex)
|
||||
add_simple_fuzzer(FuzzRegexPosixExtended LagomRegex)
|
||||
add_simple_fuzzer(FuzzASN1 LagomCrypto LagomTLS)
|
||||
add_simple_fuzzer(FuzzSHA1 LagomCrypto)
|
||||
add_simple_fuzzer(FuzzSHA256 LagomCrypto)
|
||||
add_simple_fuzzer(FuzzSHA384 LagomCrypto)
|
||||
|
|
16
Meta/Lagom/Fuzzers/FuzzASN1.cpp
Normal file
16
Meta/Lagom/Fuzzers/FuzzASN1.cpp
Normal file
|
@ -0,0 +1,16 @@
|
|||
/*
|
||||
* Copyright (c) 2021, Brian Gianforcaro <bgianf@serenityos.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#include <LibTLS/Certificate.h>
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
|
||||
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size)
|
||||
{
|
||||
(void)TLS::Certificate::parse_asn1({ data, size });
|
||||
|
||||
return 0;
|
||||
}
|
Loading…
Reference in a new issue