mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 15:57:34 +00:00
Lagom/Fuzzers: Add fuzzer for the LibTLS ASN1 parser
This commit is contained in:
parent
3f5a6be69f
commit
4f5d71b4e8
2 changed files with 17 additions and 0 deletions
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…
Add table
Add a link
Reference in a new issue