2020-08-10 10:55:17 -03:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2020, the SerenityOS developers.
|
|
|
|
|
*
|
2021-04-22 05:24:48 -03:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
2020-08-10 10:55:17 -03:00
|
|
|
*/
|
|
|
|
|
|
2020-12-24 22:14:56 -03:00
|
|
|
#include <LibELF/Image.h>
|
2020-08-10 10:55:17 -03:00
|
|
|
#include <stddef.h>
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
|
|
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size)
|
|
|
|
|
{
|
2020-12-24 22:14:56 -03:00
|
|
|
ELF::Image elf(data, size, /*verbose_logging=*/false);
|
2020-08-10 10:55:17 -03:00
|
|
|
return 0;
|
|
|
|
|
}
|