ladybird/Meta/Lagom/Fuzzers/FuzzELF.cpp
2022-04-01 21:24:45 +01:00

15 lines
318 B
C++

/*
* Copyright (c) 2020, the SerenityOS developers.
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <LibELF/Image.h>
#include <stddef.h>
#include <stdint.h>
extern "C" int LLVMFuzzerTestOneInput(uint8_t const* data, size_t size)
{
ELF::Image elf(data, size, /*verbose_logging=*/false);
return 0;
}