1
Fork 0
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:
Brian Gianforcaro 2021-09-18 00:35:28 -07:00 committed by Brian Gianforcaro
parent 3f5a6be69f
commit 4f5d71b4e8
2 changed files with 17 additions and 0 deletions

View 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;
}