From e7508839afdd59619342a25c0c39c11fa934fd72 Mon Sep 17 00:00:00 2001 From: Jan Janssen Date: Fri, 23 Sep 2022 09:47:26 +0200 Subject: [PATCH] fuzz-bcd: Do not include bcd.c This is not needed anymore, so do it the proper way now. --- src/boot/efi/fuzz-bcd.c | 3 +-- src/boot/efi/meson.build | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/boot/efi/fuzz-bcd.c b/src/boot/efi/fuzz-bcd.c index e56183c4f0..6d76533e8f 100644 --- a/src/boot/efi/fuzz-bcd.c +++ b/src/boot/efi/fuzz-bcd.c @@ -1,12 +1,11 @@ /* SPDX-License-Identifier: LGPL-2.1-or-later */ #include "alloc-util.h" +#include "bcd.h" #include "fd-util.h" #include "fuzz.h" #include "utf8.h" -#include "bcd.c" - int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { _cleanup_free_ void *p = NULL; diff --git a/src/boot/efi/meson.build b/src/boot/efi/meson.build index 22d28e4197..3bb0827f8c 100644 --- a/src/boot/efi/meson.build +++ b/src/boot/efi/meson.build @@ -419,7 +419,7 @@ if efi_arch[1] in ['ia32', 'x86_64', 'arm', 'aarch64'] 'HAVE_ZSTD'], ] fuzzers += [ - [files('fuzz-bcd.c', 'efi-string.c')], + [files('fuzz-bcd.c', 'bcd.c', 'efi-string.c')], ] endif -- 2.25.1