summaryrefslogtreecommitdiff
path: root/Meta/Lagom/Fuzzers/FuzzPEM.cpp
blob: cf950ebda0a5e16d6069a1c2c16e72683f798675 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/*
 * 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>

extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size)
{
    (void)Crypto::decode_pem({ data, size });
    return 0;
}