2021-09-18 14:02:52 -03:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2021, Brian Gianforcaro <bgianf@serenityos.org>
|
|
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
|
*/
|
|
|
|
|
|
2024-11-20 19:10:48 -03:00
|
|
|
#include <AK/Format.h>
|
2021-09-18 14:02:52 -03:00
|
|
|
#include <LibCrypto/ASN1/PEM.h>
|
|
|
|
|
#include <stddef.h>
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
2022-04-01 14:58:27 -03:00
|
|
|
extern "C" int LLVMFuzzerTestOneInput(uint8_t const* data, size_t size)
|
2021-09-18 14:02:52 -03:00
|
|
|
{
|
2023-11-03 14:49:54 -03:00
|
|
|
AK::set_debug_enabled(false);
|
2021-09-18 14:02:52 -03:00
|
|
|
(void)Crypto::decode_pem({ data, size });
|
|
|
|
|
return 0;
|
|
|
|
|
}
|