mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 16:17:45 +00:00
Lagom/Fuzzers: Add fuzzer for the LibCrypto PEM parser
This commit is contained in:
parent
4f5d71b4e8
commit
aa118642aa
2 changed files with 16 additions and 0 deletions
15
Meta/Lagom/Fuzzers/FuzzPEM.cpp
Normal file
15
Meta/Lagom/Fuzzers/FuzzPEM.cpp
Normal file
|
@ -0,0 +1,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;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue