ladybird/Meta/Lagom/Fuzzers/FuzzPEM.cpp

17 lines
360 B
C++
Raw Normal View History

/*
* Copyright (c) 2021, Brian Gianforcaro <bgianf@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <LibCrypto/ASN1/PEM.h>
#include <stddef.h>
#include <stdint.h>
2022-04-01 17:58:27 +00:00
extern "C" int LLVMFuzzerTestOneInput(uint8_t const* data, size_t size)
{
AK::set_debug_enabled(false);
(void)Crypto::decode_pem({ data, size });
return 0;
}